Jump to content

Marker trigger command


Captain Cody

Recommended Posts

I while ago I made a marker that made the script hedit pop up on the screen that used exports, but I updated hedit to latest version and now it wont show up, Is there any way to make it so it triggers command?

marker = createMarker( -1179, -1087.21875, 128, "cylinder", 2 ) 
  
addEventHandler('onClientMarkerHit', marker, function( hitElement) 
    if hitElement == localPlayer or hitElement == getPedOccupiedVehicle ( localPlayer ) then 
        exports.handlingeditor:toggleEditor() 
    end 
end) 

Btw, I have a custom command and I dont want any one using hedit with out going to garage

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