SolidJuho Posted October 25, 2014 Posted October 25, 2014 ---secrertlabin secretlabin = createMarker(-1500, 1961.5, 48.4, "cylinder", 1, 255, 255, 255, 255) function secretin_func ( player, dim ) if dim == true and getPedOccupiedVehicle ( player ) == false then setElementPosition ( player,-1478.6999511719, 1962.8000488281, 30.89999961853) end end addEventHandler ( "onMarkerHit", secretlabin, secrertlabin_func ) ---secretlabout secretlabout = createMarker(-1475.7001953125, 1962, 30.6, "cylinder", 1, 255, 255, 255, 255) function secretlab_func ( player, dim ) if dim == true and getPedOccupiedVehicle ( player ) == false then setElementPosition ( player,-1500, 1964.3000488281, 48) end end addEventHandler ( "onMarkerHit", secretlabout, secretlab_func ) It just not work, i checked debug script and no errors, or warnings, it create markers, but not tp? Can you guys help?
TAPL Posted October 25, 2014 Posted October 25, 2014 Line 4 and 10, the function name does not match.
SolidJuho Posted October 25, 2014 Author Posted October 25, 2014 How in the world in fact, I actually noticed? Thank you
TAPL Posted October 25, 2014 Posted October 25, 2014 Happen sometimes, but if you have the debug opened you would have noticed the error easily. https://wiki.multitheftauto.com/wiki/Debugging
SolidJuho Posted October 25, 2014 Author Posted October 25, 2014 Still not work, but it now gives debug warning: Bad Arguments @ 'addEventHandler' [Expected function at argument 3, got nil]
SolidJuho Posted October 25, 2014 Author Posted October 25, 2014 ---secrertlabin secretlabin = createMarker(-1500, 1961.5, 48.4, "cylinder", 1, 255, 255, 255, 255) function secretlabin_func ( player, dim ) if dim == true and getPedOccupiedVehicle ( player ) == false then setElementPosition ( player,-1478.6999511719, 1962.8000488281, 30.89999961853) end end addEventHandler ( "onMarkerHit", secretlabin, secretlabin_func ) ---secretlabout secretlabout = createMarker(-1475.7001953125, 1962, 30.6, "cylinder", 1, 255, 255, 255, 255) function secretlab_func ( player, dim ) if dim == true and getPedOccupiedVehicle ( player ) == false then setElementPosition ( player,-1500, 1964.3000488281, 48) end end addEventHandler ( "onMarkerHit", secretlabout, secretlab_func )
TAPL Posted October 25, 2014 Posted October 25, 2014 I don't see any error, make sure you have saved the file and restarted the resource to apply the change.
SolidJuho Posted October 25, 2014 Author Posted October 25, 2014 Debug no errors or warnings, No TP. I am trying to do this for almost 2 hours, but it just does not work
SolidJuho Posted October 25, 2014 Author Posted October 25, 2014 Finally! it working I was so dump, it was client side not Server side script (facepalm) But thank for helping
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