Jump to content

Parachutes system


Recommended Posts

I think your native language is not english, so it's kinda hard to understand what you are trying to say.

local posY = 0

addEventHandler("onClientPlayerDamage", localPlayer, function(attackerP, dmgType)
	local _, _, posN = getElementPosition(localPlayer)
	if (posN + 10 < posY) and dmgType == 54 and attackerP == localPlayer then
		cancelEvent()
	end
end)

setTimer(function()
	if isPedOnGround(localPlayer) then
		_, _, posY = getElementPosition(localPlayer)
	end
end, 100, 0)

This one should work I think, but not sure. It meant to block all damage from falling, if he jumped from a height from the ground of 10.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...