Posts: 230
Threads: 67
Joined: Jun 2012
Reputation:
0
I want to be able to allow players 5to break into cars, by using VehicleParams, but how could I do this, I've tried getting the closest vehicle but can't get it's vehicle id to set its params..
I want players to be able to /carbreakin and then the vehicleparams of the closest vehicle become unlocked..
Posts: 285
Threads: 39
Joined: Oct 2009
Reputation:
0
Get the ID with a loop (loop through MAX_VEHICLES, I think I saw you had that)
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(i, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParams or w/e the function is.
I finds the closest vehicle so yes you do have the ID
Posts: 285
Threads: 39
Joined: Oct 2009
Reputation:
0
No, it will set the closest vehicles only if ur using the if statements which you are
Posts: 285
Threads: 39
Joined: Oct 2009
Reputation:
0
if(doors == 0 or alternatively 1)
That's what you're asking right?