Skip to content

Commit

Permalink
no longer ragdoll when in vehicles
Browse files Browse the repository at this point in the history
  • Loading branch information
andristum committed Oct 30, 2019
1 parent 285584b commit a3458ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Client/Ragdoll.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlJustPressed(2, Config.RagdollKeybind) and Config.RagdollEnabled then
if IsControlJustPressed(2, Config.RagdollKeybind) and Config.RagdollEnabled and IsPedOnFoot(PlayerPedId()) then
if isInRagdoll then
isInRagdoll = false
else
Expand Down
4 changes: 2 additions & 2 deletions Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Config = {
MenuKeybindEnabled = true,
-- You can disable the Favorite emote keybinding here.
FavKeybindEnabled = true,
FavKeybind = 171,
FavKeybind = 171, -- Get the button number here https://docs.fivem.net/game-references/controls/
-- You can disable the Ragdoll keybinding here.
RagdollEnabled = true,
RagdollKeybind = 303,
RagdollKeybind = 303, -- Get the button number here https://docs.fivem.net/game-references/controls/
-- You can change the header image for the f3 menu here
-- Use a 512 x 128 image!
-- NOte this might cause an issue of the image getting stuck on peoples screens
Expand Down

0 comments on commit a3458ac

Please sign in to comment.