MarxVen Posted November 21, 2012 Share Posted November 21, 2012 How to use the function setVehicleLocked to open all cars of a model 438 and 420 (taxi, cabbie)? Link to comment
myonlake Posted November 21, 2012 Share Posted November 21, 2012 Well, just an example. local vehicles = {[420]=true, [438]=true} for i,v in ipairs(getElementsByType("vehicle")) do if vehicles[getElementModel(v)] then setVehicleLocked(v, false) end end 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