Jump to content

[HELP]setWorldSpecialPropertyEnabled


Mr.OmG

Recommended Posts

Hi ! I don't know how to use it... On wiki is this :

bool setWorldSpecialPropertyEnabled ( string propname, bool enable ) 

But I don't understand it.... I used the following :

marker = createMarker(3461,0,0,"corona",6,255,0,0,255) 
  
function hevercars(player) 
if source == marker then 
setWorldSpecialPropertyEnabled(hovercars,hoveron) 
end 
end 
addEventHandler("onClientMarkerHit", getRootElement(), hovercars)  

But it doesn't work ! Pls help and sry for bad english :(

Link to comment

Try this:

marker = createMarker(3461,0,0,"corona",6,255,0,0,255) 
  
function hovercars(hitElement,matchingDimension) 
setWorldSpecialPropertyEnabled('hovercars',true) 
outputChatBox('It worked!') -- if it outputs this it works (delete if you dont want it - its just debug) 
end 
addEventHandler("onClientMarkerHit", marker, hovercars) 

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