no way he released that paid. heres a code doing the same for free lol and I also explained what it does
Citizen.CreateThread(function()
local sleep = 1000
while true do
local playerPed = PlayerPedId()
local isFalling = IsPedFalling(playerPed)
if isFalling then
-- If the player is falling, apply effects with a shorter waiting time
SetEntityInvincible(playerPed, true)
SetPlayerInvincible(PlayerId(), true)
SetPedCanRagdoll(playerPed, false)
SetEntityProofs(playerPed, true, true, true, true, true, true, true, true)
SetEntityCanBeDamaged(playerPed, false)
sleep = 5
else
-- If the player is not falling, reset effects with a longer waiting time
SetEntityInvincible(playerPed, false)
SetPlayerInvincible(PlayerId(), false)
SetPedCanRagdoll(playerPed, true)
SetEntityProofs(playerPed, false, false, false, false, false, false, false, false)
SetEntityCanBeDamaged(playerPed, true)
sleep = 1000
end
ClearPedLastWeaponDamage(playerPed) -- This can be outside the if-else since it's common to both states
Citizen.Wait(sleep)
end
end)