Drakath Posted February 1, 2014 Share Posted February 1, 2014 if not getVehicleOccupants(getElementData (source, "car")) == 0 then Bad argument @ 'getVehicleOccupants' What's wrong? Link to comment
DNL291 Posted February 1, 2014 Share Posted February 1, 2014 getElementData should not be returning a vehicle. Also, getVehicleOccupants returns a table. Link to comment
Moderators IIYAMA Posted February 2, 2014 Moderators Share Posted February 2, 2014 Just as DNL291 said. local thisVehicle = getElementData (source, "car") if isElement(thisVehicle) and #getVehicleOccupants(thisVehicle) ~= 0 then 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