TorNix~|nR Posted March 27, 2019 Share 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! Link to comment
Moderators Patrick Posted March 27, 2019 Moderators Share 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 Link to comment
TorNix~|nR Posted March 27, 2019 Author Share Posted March 27, 2019 Thank you so 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