Nadav Posted July 5, 2012 Share Posted July 5, 2012 How can I check if the vehicle is a motor-vehicle? Thanks. Link to comment
qaisjp Posted July 5, 2012 Share Posted July 5, 2012 local notMotor = { [id] = true, [id] = true } function isMotorVehicle(veh) return not notMotor[getElementModel(veh)] end add ur own vehicle id's Link to comment
Nadav Posted July 5, 2012 Author Share Posted July 5, 2012 Uh, thanks. I thought there is a built-in function. Link to comment
robhol Posted July 5, 2012 Share Posted July 5, 2012 Err... yes, there is. https://wiki.multitheftauto.com/wiki/GetVehicleType Link to comment
qaisjp Posted July 5, 2012 Share Posted July 5, 2012 Well, specific model id check (around 2-3 model id) or type check (3-5) 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