Jump to content

no jetpack in marker


kevin11

Recommended Posts

this is what i have (not made by me) but how can i add a jetpack

like on markerhit then ur jetpack = disabled

function markerHit (hitPlayer, matchingDimension)

if (source == hayMarker) then

if (getElementType (hitPlayer) == "player") then

toggleControl (hitPlayer, "fire", false)

toggleControl (hitPlayer, "next_weapon", false)

toggleControl (hitPlayer, "previous_weapon", false)

toggleControl (hitPlayer, "aim_weapon", false)

toggleControl (hitPlayer, "vehicle_fire", false)

toggleControl (hitPlayer, "vehicle_secondarry_fire", false)

toggleControl (hitPlayer, "vehicle_fire", false)

showPlayerHudComponent (hitPlayer, "ammo", false)

showPlayerHudComponent (hitPlayer, "weapon", false)

elseif (getElementType (hitPlayer) == "vehicle") then

destroyElement (hitPlayer)

end

end

end

addEventHandler ("onMarkerHit", getRootElement(), markerHit)

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...