While on foot, press and hold U to ragdoll (or using a controller, UP on the D-Pad), release to stand back up. This script is meant to replace the ragdoll option on the Enhanced Reborn Trainer as that one is not synced for all players (yet!).
client.lua
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlPressed(1, 303) then
SetPedToRagdoll(GetPlayerPed(-1), 1000, 1000, 0, 0, 0, 0)
end
end
end)
I’m sure a toggle feature would be possible, but would require a bit more in-depth scripting. I’m still learning so the process is slow. If someone else would like to take my script and make it into a version that toggles, that is fine. Otherwise it may be awhile before I release one.
When the server side version of the trainer comes out, all functions will be synced for all players so then this script will be useless.
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlPressed(2, 303) then
ragdol = 1 end
if ragdol == 1 then
SetPedToRagdoll(GetPlayerPed(-1), 1000, 1000, 0, 0, 0, 0)
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlPressed(2, 246) then
ragdol = 0 end
if ragdol == 1 then
SetPedToRagdoll(GetPlayerPed(-1), 1000, 1000, 0, 0, 0, 0)
end
end
end)
this part of script don’t work for me, the script ragdoll work but no stay ragdoll after tazer
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlPressed(1, 20) then
SetPedToRagdoll(GetPlayerPed(-1), 1000, 1000, 0, 0, 0, 0)
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsPedBeingStunned(GetPlayerPed(-1)) then
ragdol = 1
end
end
end)
Nice option for rp, like ambulance and operations. Maybe someone can include items? Like eat sleeping item, ragdoll. Eat wakeup item or press button Y stand up,
You make the resource yourself. Make a folder, make a file in the folder called __resource.lua and another file called client.lua. Take the code from here and put it in the files you just make. Simple.
any one know how i can make the ragdoll repeat itself every 40 seconds or so because sometimes EMS cant see players so the ragdoll refresh would fix this i just dont know what im doing