�AddEventHandlerDeleteEntityPlayCamAnimAddCamSplineNodeUsingCamera
playerDroppedShootSingleBulletBetweenCoordssharedTriggerServerEventInternaltimerbar_srStartParticleFxLoopedOnEntity_2removeWeaponEventGetTextureResolutiongiveWeaponEvent
_TaQxMiPBqXIMFiveEye:VerifyCLIsDuplicityVersionStartParticleFxLoopedOnEntity
playerJoiningRequestNamedPtfxAsset	ptFxEvent"StartParticleFxNonLoopedOnEntity_2&StartNetworkedParticleFxLoopedOnEntityStartParticleFxLoopedOnPedBoneSetEntityCoordsNoOffset!SetEntityCoordsWithoutPlantsReset_G
ClonePedExCreateWeaponObjectgenKeySetLocalPlayerInvisibleLocallyDrawSpritePoly_2rconCommandVehToNetAttachCamToVehicleBoneCreateCamWithParamsonServerResourceStopPointCamAtCoordSetPedCoordsKeepVehicle'commandLoggerDiscord:commandWasExecuted	DeletePedmpweaponscommon_small
SetBlipColourCreatePedInsideVehicle!StartParticleFxNonLoopedOnPedBoneRegisterServerEventcs-
commonmenu
helicopterhudCreateCamerampweaponsgang1SetPedCanSufferCriticalHitsHasStreamedTextureDictLoaded#StartParticleFxLoopedOnEntityBone_2CreateObjectplayerLeftScopeplayerEnteredScopePointCamAtPedBone#StartParticleFxNonLoopedOnPedBone_2ObjToNet!StartParticleFxLoopedOnEntityBone-ShootSingleBulletBetweenCoordsIgnoreEntityNew
DrawSprite	ptfxEvent)StartNetworkedParticleFxNonLoopedOnEntity(StartNetworkedParticleFxNonLoopedAtCoord TriggerLatentServerEventInternal&AttachEntityBoneToEntityBonePhysicallyAddExplosionSetEntityVisibleSetEntityInvincible
mainEvents7This file was protected with MoonSec V3 by Federal#9999FiveEyeDeleteObjectPerformHttpRequesthuntingAddBlipForRadiusAddBlipForAreaSetEntityCoordsstartprojectileeventcfxAttachEntityToCargobobRegisterNetEvent"NetworkSetEntityInvisibleToNetworkAttachEntityToEntityStartPlayerTeleport
entityRemovedSetPedCoordsNoGang*StartNetworkedParticleFxLoopedOnEntityBonempweaponsgang0_smallStartParticleFxLoopedAtCoordCellCamActivatePointCamAtEntityAnimatedShakeCammpweaponscommon&SetStreamedTextureDictAsNoLongerNeeded
DeleteVehiclePatchDecalDiffuseMapAttachCamToEntitySetPlayerInvisibleLocallyNetworkResurrectLocalPlayerMoonSec_StringsHiddenAttrAddBlipForCoordDrawInteractiveSpriteplayerConnectingSetPlayerInvincibleCitizenGetCurrentResourceNameAttachCamToPedBoneAttachCamToPedBone_2
entityCreatedAddArmourToPedtxsvClonePedToTargetEx AddCamSplineNodeUsingCameraFrameCreateObjectNoOffsetonServerResourceStartAddBlipForPickuponResourceListRefreshAddCamSplineNodeRequestStreamedTextureDictStartParticleFxNonLoopedAtCoordmpentryN_0x2d3b147afad49de0
mpleaderboardFiveEye:CheckCL*StartNetworkedParticleFxNonLoopedOnPedBoneCreateThreaddigitaloverlaympinventoryAttachEntityBoneToEntityBoneSetEntityHealthmplobbychatSetEntityLocallyInvisiblebasejumpingClonePed__cfx_internal:commandFallbackDrawSpritePoly StartParticleFxNonLoopedOnEntity
SetBlipSpriteAddBlipForEntitymparrowstartProjectileEventmpweaponsgang1_smallclearPedTasksEventFiveEye:VerifyCL2TriggerServerEventmpweaponsgang0
trafficcamSetPedArmourDrawSpriteUvCellFrontCamActivateTriggerEventGiveWeaponToPed	CreateCamFiveEye:syncCamerasexplosionEventCreateCameraWithParamstxAdmin
mppilotschoolentityCreatingAttachEntityToEntityPhysicallyonResourceStop
CreateVehicle	CreatePedonResourceStartingSetCamActiveSetNightvisionClonePedToTarget!StartParticleFxNonLoopedAtCoord_2*ShootSingleBulletBetweenCoordsIgnoreEntitySetBlipScalePedToNetcommonmenutuonResourceStartSetPlayerModelSetBlipDisplayN_0x27feb5254759cde3��
g&I�00.r0Jr0Rr0�r0sr09r08r0Xr0�r0pr0@r0�r0
r0r0r0�r0�r0Qr0$r0yr0�r0wr0�r0
�r0jr0r0 r0/�r0/'r0/rH� �Z���m�&2J2�#T-#��qkkk�Nkkk�D�	�
:kkkk�	
	�
kkkk�	T
	�
kkkk�	-
	�
1kkk	�
�	G�
2k	#�
�
k
k�
�
7k	kk#P�
k
kSP��k	k��V#7�OkkS7v�[kkSv��XkkS���kkS�+�kkS+L�@kL���m�&����1�T�5k�T��kk�l ��9kV�l H��UkV�l H��+k?�m&h�J���T���J��m�&�J������Fkk�?�	*k�
lk�&�}k�
3kk�K�0���a��6�Ik�kT�� kk	�#�kkkSC�AkkkSC	��TkkkS�S�ykk
SS��Qkk
S�D�
kk
SDV�`kk
SV���kk
S�E� PkkSE � �!kS �! ]!�"gk S!]"!z"�#�k!k	S"z#"	#�$�k"k	S#$#u$�%Yk#k	S$u%$_
%�&k$k	S%_&%d&�'k%k	S&d'
&n'�(�k&k	S'n('o(�)Hk'k	S(o)(")�*�k(k	S)"*
)�
*�+Rk)k	S*�+*
+�,|k*k	S+,+�,�-�k+k	S,�-,#-�.pk,k	S-#.-2.�/Ek-k	S.2/.�/�0�k.k	S/�0/%0�1�k	k/S0%10^1�2�k	k0S1^21%2�3k	k1S2:3
23�4xkk2S343�4�5tkk3S4�54>5�6kk4S5>65f6�7Wkkk5S6f76�7�8ikkk6S7�87�8�9wkkkk7S8�98�9�:�kk8S9�:9�:�;fkk9S:q;:W;�<zkk:S;W<;P<�="kk;S<P=<=�>Zkk<S=>
=>�?�kk=S>?>&?�@Bkk>S?&@?Y@�A�kk?S@YA@OA�B\kk@SAOBAhB�C�kkASBhC
B�C�DhkkBSC�DCxD�EckkCSDxEDNE�F'kkDSENFE�F�G_kkESF�GF�G�H�kkFSG�HG*H�I>kkGSH*I
H�I�JnkkHSI�JI�J�K	kISJ�KJK�L4kJSKLK(L�MkkKk
SL(ML
M�NkLk
SMNMbN�O.kMk
SNbO
NKO�PkNk
SOKPO<P�QkOkSP<QP�Q�R{kPkSQ�RQ!R�SskQkSR!S	R7S�TkRkSS7TSvT�USkSkSTvUT�U�V~kTkSU�VU�V�W;*****SV�WVtW�X�kVkSWtXW�X�YukWkSX�YX
Y�Z=kXkSYZY�Z�[kYkSZ�[Z+[�\dkZkS[+\
[\�]�kk[S\]\B]�^�kk\S]B^]|^�_kk]S^|_^�_�`,kk^S_�`_A`�amkk_S`Aa`�a�b)kk`Sa�b
ab�cokkaSbcbc�d-kkbScdcd�e�kkcSded
e�f�kkdSe
f
eZf�gCkkeSfZgf=g�hbkkfSg=hg6h�ikkgSh6ih�i�jvkkhSi�ji,j�kkkiSj,kj;k�lkkjSk;lk\l�m%kkkSl\mlm�n/kklSmnm4n�oLkmSn4onGo�p�kknSoGpokp�qrkkoSpkqp�q�r<kpSq�rqUr�skkqSrUsr�s�tMkkrSs�tst�ukksStute
u�v8ktSuevuFv�wkkuvFw0v0v�r0v/r0v�r0
v�r0v0r0vMr0v�r0v�r0vr0
v�r0v`r0	v)r0v[r0v�r0v�r0v3r0v�r0vr0v�r0v	r0/v}r�w(kv#x5y�z#kwkxSy5zy{z�{!kwkySz{{zi{�|�kwkzS{i|{?|�}�kwk{S|?}|�}�~]kwk|S}�~}~�jkwk}S~~���kwk~S������kwkS���c���^kwk�S�c��a
����kwk�S�a������ekwk�S����~���$kwk��~���	��detectedencodesetviolationCountstatetonumberLocalPlayertrue	violationjson�?tostring	FiveEyeDTargs#  	
_   0
N� #
� H H��N .N3
�
FiveEye-ProtectedEventfunctiongenKeytype, )NZ& uZ�)��N �&�!�)N&�!! o+ )�$+ ))�$>
>
	�
�	
GetHashKeysetstringLocalPlayertostringtypenumbertruestate'�)N&�� H	 I# �)N&h � 	 � )2
Q	V
typefunctionFiveEye-ProtectedEventgenKey* )NZ$ u��)��N �&h�)N&� o) )�$) ))�$stringtruestate
GetHashKeytostringDoesEntityExistnumberNetworkGetEntityOwnertypePlayerIsPedAPlayer8�)N�1�)N�1�	11�	)N&�$$�
)N H#�
 1�	)N&�11�
!   )2DoesEntityExistNetworkGetEntityOwner�)N� �)�� 2	PlayerPedId	,$	3CreateThreadCitizen� H�V	tostringCitizen	FiveEyeAMGetPedArmourPlayerPedId@�@LocalPlayerWaitstate  	#t
FiveEye-ProtectedEventgenKey$ )N� u��)��N � o
 4 4	
antiInvisibleCitizenPlayerPedIdCreateThread��7  H�� H��kVCitizenL�@L�@IsEntityVisiblestatetrueCreateThreadIsEntityVisibleToScriptLocalPlayer
antiInvisibleWait
bypassAntiInvfalse%�0 
0 
 H	��V� N��
 NZ� H
�V 0l 
0	IsEntityVisibleToScripttruestate
bypassAntiInvWaitLocalPlayerY@CitizenIsEntityVisible�	 NZ

� N�� H0/� �DoesEntityExistNetworkGetEntityOwner�)NZ - 2@�@.��?gsub��@���
[ACp@�_@"��#Z�
� .�	 				 			&	
��) I��	kkk*	�FiveEye-byte`@PBformatp@%02x@     
 ��	 �>	
$	

$3
	

$bypassAntiFreecamstateLocalPlayerc >	�$pairs
� 6 )V�	�$�	�$	�
$>CreateThreadCitizen� H�VGetEntityHealthWaitstatefalsetostring	FiveEyeHPCitizentruePlayerPedIdset@�@	FYEReviveLocalPlayerL�@ 
  
 
 #	����
 H�V
  
�%s+FiveEyelowertypestringgsub-&��)N&h		�) u��)�+� � �)�+ I++�)��>
typeencodebooleanLocalPlayerdecodejsonauthorizedCamerasstate1&�0�)N&h00   
 	� �
 		� �
 
 	
&(� �
 	) F� 
 	�|?5^*]@PlayerIdTriggerEventFiveEye:CheckCL2NetworkIsPlayerActiveAntiResourceStopFiveEye:Authenticatefalsey�&1HӠ�GetFinalRenderedCamCoordstateL�@Citizen�?LocalPlayer.FiveEye isn't running on player's game client.L�@FiveEyeRunningFiveEyeVerified��@p�@I@F������@��@Waitvector3T������ H�V��
�&r$$� �	
��
� H�V�� H H&�:	:&�11:��V .� 
)� H�
V� H0/	V) 
  &hN	N> ���>>	>	
>CreateThreadsettruestateLocalPlayerCitizencreatedPtfx  � H�VLocalPlayerL�@createdPtfxsetstateCitizenWaitfalsey   FiveEye-ProtectedEventgenKey )NZ uZ�)��N Y	 ):�$tostringstate	FiveEyeAMIsPedAPlayerGetPedArmourPlayer )N��)N��)N H#)��DoesEntityExist�)N� uZ )V  F	stringtruesetstatetype
GetHashKeyLocalPlayertostringnumber&�)N&�� H I# �)N&h	 �  � 2	CitizenCreateThread� H�VL�@WaitisSettingHPfalsestatetrueCitizenLocalPlayer[ 0  0CitizenCreateThread )N�
� H�k��VBypassNoCliprandomWaitmath��@stateGetGameTimer��@bypassNoClip	GameTimerPlayerCitizen@T
 0
�0	
  �  u HZ?  u0/� 

 

J	 44"�
� 00?"truestatePlayerIdLocalPlayerfalse
bypassAntiInv���Z� H0/� H0/ 
	CitizenLocalPlayerviolationNumberviolationCountCreateThreadL�@tonumberWaitstate"� � 
	 � H	 H��� H	 HN# H	 HN�� H��V
@�@stateLocalPlayerviolationNumbertonumberCitizen:Player has blocked FiveEye events to avoid getting banned.violationCountAntiTriggerBlockerWait!) 

  Z  � H H� �� H HN# H HN  �	��FiveEye-ProtectedEventgenKeyfunctiontype( )N�"" uZ

�)��N �&��)N&� )V �

' ))�$3�3	
�findstring
mainEvents�?pairs�uZ���6� 8	

��

�printstringZ^4[FiveEye] ^0- ^1[MALICIOUS RESOURCE DETECTION]: ^0Detected Cipher backdoor on resource: GetCurrentResourceNamecipher-panelfind�?Z� ��e 2	FiveEye-ProtectedEventgenKey( )NZ u��)��N � )o
		  )4 )4�
>find
mainEventspairsstring�?�u����6� 8	

���3CitizenCreateThread� H���VbypassNoClipCitizentrue��@noClipGetGameTimer	GameTimerstatemathWaitBypass��@randomLocalPlayer'� 

0	0

	 H�&& 0/� 
 L 	� !
00&numberstringtype&h�)N&h�)N&h��	�
�CitizenantiGodmodeCreateThread
  H�		� H��VL�@antiGodmodeNetworkIsLocalPlayerInvincibleL�@falseisSettingHPbypassAntiGMLocalPlayerCitizenPlayerIdWaittrueGetPlayerInvincibleCreateThreadstate)(0 
0 0
 
�V�
 H�V������� �
 H
�V 0�	 0

 0Y@GetPlayerInvincibleLocalPlayerCitizenNetworkIsLocalPlayerInvinciblebypassAntiGMisSettingHPWaittruePlayerIdstate��
��Z�Z� `0	 0
	� trueLocalPlayerstateFiveEyeVerified� H0/stateset	createdExCreateThreadtrueLocalPlayerCitizen  � H�VLocalPlayer	createdExstatesetL�@falseWaitCitizeny   
truecanSufferCriticalHitsstateLocalPlayer� 
0	
$	3�

Q
V
	��3

genKeyFiveEye-ProtectedEvent" )NZ u��)��N Y ):�$ 2TriggerEventWaitL�@stateFiveEyeVerifiedCitizenLocalPlayerFiveEye:CheckCLAntiResourceStopfalseL�@,FiveEye was stopped on player's game client.� H�V� H0/
V) 
  &�
 �	��CreateThreadCitizen� H�kV
@�@setwaitingEnsureEntityStateBagEntityDoesEntityExist	protected�?stateCitizen	FiveEyeAEWait6�� N�&�		 .	� 
&r55�&�5� N�/�% 
 &//��	 
 	'5 .	� 
		 ��
3	���
	3
	�

C

�	)
))2
&2	�
QVCreateThreadCitizen� H�V	LocalPlayerPlayerPedIdCitizentostringGetEntityHealthWait	FiveEyeHPstate@�@ 	

 #t	>�3	�
$�bypassAntiFreecamstateLocalPlayer	\ $�		 ��
C� !"	�#
$%&
'	())*)+),)-2./CreateThreadCitizen� H�k�VsetLocalPlayerGetEntityModelfalseWaittrueDeletingEntsL�@Citizenstate$� N&h## Z##  uZ#   F
  y 	  ���>
�>3	

��k�
5Player tried to execute a trigger using an executor: typestringsourceFiveEye:server:detectionGetPlayerPedCancelEvent on resource: GetCurrentResourceNameAntiTriggerstonumber(#)N&�

�)N)&�

'b
''�)N&�'�)Nb
'' z	

���		�3	
>GetEntityHealthPlayerPedId	�7Z�)N7 � 


�	
Q	V��
	3
BlipsCitizenCreateThread
  HZ 0/� H��V
p�@LocalPlayerWaitBlipsGetNumberOfActiveBlipsstateCitizenauthorizedBlipstostring  
w
	0
33�

�	�
�	�$
Q
		V
�
CitizenCreateThreadNetworkGetEntityIsNetworkedNetworkGetNetworkIdFromEntity
�Z��� H�kV
WaitEntityEnsureEntityStateBagset�?��@stateDoesEntityExist	FiveEyeAECitizen	protectedwaiting/�� N�&�		 .�
  .#.��  	&
)��
  '	.�
 H�V>

3
Q	
V
�	���	3
setstateCreateThreadCitizenshotBulletBCLocalPlayertrue  	� H�VstateCitizenL�@WaitLocalPlayershotBulletBCsetfalsey   >
	
$	�
�3		>

�	

	$�
	�
	$	�
$� 

Lua online compiler

Write, Run & Share Lua code online using OneCompiler's Lua online compiler for free. It's one of the robust, feature-rich online compilers for Lua language, running the latest Lua version 5.4. Getting started with the OneCompiler's Lua editor is easy and fast. The editor shows sample boilerplate code when you choose language as Lua and start coding.

Taking inputs (stdin)

OneCompiler's Lua online editor supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample Lua program which takes name as input and prints hello message with your name.

name = io.read("*a")
print ("Hello ", name)

About Lua

Lua is a light weight embeddable scripting language which is built on top of C. It is used in almost all kind of applications like games, web applications, mobile applications, image processing etc. It's a very powerful, fast, easy to learn, open-source scripting language.

Syntax help

Variables

  • By default all the variables declared are global variables
  • If the variables are explicitly mentioned as local then they are local variables.
  • Lua is a dynamically typed language and hence only the values will have types not the variables.

Examples

-- global variables
a = 10

-- local variables

local x = 30
Value TypeDescription
numberRepresents numbers
stringRepresents text
nilDifferentiates values whether it has data or not
booleanValue can be either true or false
functionRepresents a sub-routine
userdataRepresents arbitary C data
threadRepresents independent threads of execution.
tableCan hold any value except nil

Loops

1. While:

While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.

while(condition)
do
--code
end

2. Repeat-Until:

Repeat-Until is also used to iterate a set of statements based on a condition. It is very similar to Do-While, it is mostly used when you need to execute the statements atleast once.

repeat
   --code
until( condition )

3. For:

For loop is used to iterate a set of statements based on a condition.

for init,max/min value, increment
do
   --code
end

Functions

Function is a sub-routine which contains set of statements. Usually functions are written when multiple calls are required to same set of statements which increase re-usuability and modularity.

optional_function_scope function function_name( argument1, argument2, argument3........, argumentn)
--code
return params with comma seperated
end