As Thug Development, we have decided to remove this product from sale for some reasons.
1 Like
SetWeaponDamageModifier(`WEAPON_FALL`, 0.0)
or find WEAPON_FALL weapon metafile edit damage value and re stream ![]()
1 Like
just disable ragdolling if the ped is falling? Doesnt seem like much to charge for. Took a whole 2 minutes to write this:
local ragDollDisabled = false
RegisterCommand("nofall", function(source, args, rawCommand)
ragDollDisabled = not ragDollDisabled
startNoFall()
end)
startNoFall = function()
Citizen.CreateThread(function()
while ragDollDisabled do
local ped = PlayerPedId()
if IsPedFalling(ped) then
SetPedCanRagdoll(ped, false)
else
SetPedCanRagdoll(ped, true)
end
Citizen.Wait(1)
end
end)
end
This code checks if the player is close to the ground and disables the ragdoll if it falls from a high place (took 1 minute)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local player = GetPlayerPed(-1)
local playerPos = GetEntityCoords(player, true)
local playerHeight = GetEntityHeightAboveGround(player)
if playerHeight > 50.0 then
SetPedCanRagdoll(player, false)
else
SetPedCanRagdoll(player, true)
end
end
end)