TorNix~|nR Posted March 27, 2019 Posted March 27, 2019 Hello guys, I wanted to ask where is the problem in this? I'm getting debug expected argument... how can I fix it? local veh = (getElementType(source) == "vehicle") if veh and isVehicleDamageProof(veh) == false then help please!
Moderators Patrick Posted March 27, 2019 Moderators Posted March 27, 2019 local veh = (getElementType(source) == "vehicle") -- if 'source' is a vehicle, 'veh' is true, if not 'veh' is false if veh and isVehicleDamageProof(veh) == false then -- 'veh' is a boolean (true/false) and a boolean can't be damageproof. Fixed local veh = (getElementType(source) == "vehicle") if veh and isVehicleDamageProof(source) == false then 1
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