Create client.lua

This commit is contained in:
ethancantcode 2020-03-26 23:26:31 -07:00 committed by GitHub
parent 159b08200c
commit f0af1afc29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

9
client.lua Normal file
View File

@ -0,0 +1,9 @@
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlPressed(1, 73 --[[ "x" key ]]) then
-- https://runtime.fivem.net/doc/natives/#_0xAE99FB955581844A
SetPedToRagdoll(GetPlayerPed(-1), 1000, 1000, 0, true, true, false)
end
end
end)