Sign in to follow this  
TorNix~|nR

elementType

Recommended Posts

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!

Share this post


Link to post
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

 

  • Thanks 1

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.