Mr.OmG Posted April 12, 2011 Share Posted April 12, 2011 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
proracer Posted April 12, 2011 Share Posted April 12, 2011 Can't you see it must be a string not a variable, also 2nd var is wrong too. Link to comment
Mr.OmG Posted April 12, 2011 Author Share Posted April 12, 2011 Sorry but I do not understand very Lua, you could write me how it should look like? pls Link to comment
proracer Posted April 12, 2011 Share Posted April 12, 2011 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
Mr.OmG Posted April 12, 2011 Author Share Posted April 12, 2011 It works! Thank you !! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now