Lloyd Logan Posted January 15, 2013 Share Posted January 15, 2013 How would i put setTimer ( paynspray, 2000, 1 ) into this code? So that when the player enters the marker, it takes a bit of time before it repair the vehicle? function paynspray(hitElement) fixVehicle(hitElement) end addEventHandler("onMarkerHit", dutymarker, paynspray) Link to comment
Castillo Posted January 15, 2013 Share Posted January 15, 2013 function paynspray(hitElement) setTimer ( fixVehicle, 2000, 1, hitElement ) end addEventHandler("onMarkerHit", dutymarker, paynspray) Link to comment
3NAD Posted January 15, 2013 Share Posted January 15, 2013 You must use getPedOccupiedVehicle Link to comment
psydomin Posted January 15, 2013 Share Posted January 15, 2013 You must use getPedOccupiedVehicle Not need be there should be a check for the hitElement type so that it doesnt try to fixVehicle the player outputing an error Link to comment
Lloyd Logan Posted January 15, 2013 Author Share Posted January 15, 2013 function paynspray(hitElement) setTimer ( fixVehicle, 2000, 1, hitElement ) end addEventHandler("onMarkerHit", dutymarker, paynspray) So where is the fixVehicle in this? Link to comment
iPrestege Posted January 15, 2013 Share Posted January 15, 2013 function paynspray(hitElement) setTimer ( fixVehicle, 2000, 1, hitElement ) end addEventHandler("onMarkerHit", dutymarker, paynspray) So where is the fixVehicle in this? setTimer ( fixVehicle, 2000, 1, hitElement ) Link to comment
Lloyd Logan Posted January 15, 2013 Author Share Posted January 15, 2013 Oh, sorry! Thanks alot! 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