Skip to content

Optimise Code#4

Open
SPKReality wants to merge 1 commit intoJellyJamm:mainfrom
SPKReality:patch-1
Open

Optimise Code#4
SPKReality wants to merge 1 commit intoJellyJamm:mainfrom
SPKReality:patch-1

Conversation

@SPKReality
Copy link

No description provided.

@gullithisouza
Copy link

Correct functionality!

CreateThread(function ()
	while true do 
		local Ped 	 = GetPlayerPed(-1)
		local Player = PlayerId()

		Wait(0)

		if IsPedArmed(Ped, 4 | 2) or IsPlayerFreeAiming(Player) or IsControlJustPressed(0, 22) then
			DisableControlAction(0, 22, true)
		end
	end
end)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants