Hi. i want a plugin for [ESX] where a player pressed a buttom on their keyboard the ingame character falls down to the ground.
EXAMPLE: player presses [X] to put their hands up
i want: Player presses [?] to fall down on the ground and the character to be unable to move until animation is done.
//HeyZReD
you get this script i looking for this//
Hi there u can try something like this:
Citizen.CreateThread(function() while true do Citizen.Wait(0) if IsControlPressed(1, 38) then --key to press SetPedToRagdoll(GetPlayerPed(-1), 1000, 1000, 0, true, true, true) – SET_PED_TO_RAGDOLL - Cfx.re Docs end end end)