Files
Jacob 319786501d Improved Emote Menu
+ Added banner
+ Fixed keybinds
2022-07-06 20:30:38 +01:00

25 lines
604 B
Lua

local isInRagdoll = false
Citizen.CreateThread(function()
while true do
Citizen.Wait(10)
if isInRagdoll then
SetPedToRagdoll(PlayerPedId(), 1000, 1000, 0, 0, 0, 0)
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlJustPressed(2, Config.RagdollKeybind) and Config.RagdollEnabled and IsPedOnFoot(PlayerPedId()) then
if isInRagdoll then
isInRagdoll = false
else
isInRagdoll = true
Wait(500)
end
end
end
end)