This repository has been archived on 2022-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
ragdoll-keybind/client.lua

10 lines
325 B
Lua

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