Jump to content

Script not working


Lloyd Logan

Recommended Posts

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

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