319786501d
+ Added banner + Fixed keybinds
25 lines
604 B
Lua
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)
|