Lloyd Logan Posted January 17, 2013 Share Posted January 17, 2013 Hey, the errors this code outputs it : 69 attempt to compare number with boolean, and 68 bad pointer at getPlayerMoney function paynspray(hitElement) local money = getPlayerMoney(hitElement) if ( money > 1000 ) then outputChatBox("Please wait whilst we work on your vehicle!", hitElement) setTimer ( fixVehicle, 5000, 1, hitElement ) end end addEventHandler("onMarkerHit", dutymarker, paynspray, hitElement) Link to comment
MR.S3D Posted January 17, 2013 Share Posted January 17, 2013 function paynspray(hitElement,matchingDimension) if (hitElement and getElementType(hitElement) == "player" and matchingDimension) then local money = getPlayerMoney(hitElement) if ( money>=1000 ) then outputChatBox("Please wait whilst we work on your vehicle!", hitElement) setTimer (fixVehicle, 5000, 1, getPedOccupiedVehicle(hitElement)) end end end addEventHandler("onMarkerHit", dutymarker, paynspray) Link to comment
Lloyd Logan Posted January 17, 2013 Author Share Posted January 17, 2013 Thank you very much! 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