Posts: 106
Threads: 19
Joined: Jan 2009
Reputation:
0
What is the reasoning behind changing the way vehicles are locked, and setvehicleplate?
Cause I have over 300 vehicles that require locking and no one has supplied the way to lock numerous vehicles. I've been given ideas, but none have worked. Also my script really needs setvehicleplate.
Posts: 80
Threads: 2
Joined: Feb 2007
Reputation:
0
To lock vehicles, just use SetVehiclePrams on OnVehicleStreamIn. Simple
Posts: 6,129
Threads: 36
Joined: Jan 2009
You can simply re-apply the lock (using SetVehicleParams), everytime it streams in. You just need to create an additional variable, to clarify that it needs to be locked once streamed in for another player.
Then re-apply the SetVehicleParams if Locked is 1.
Posts: 106
Threads: 19
Joined: Jan 2009
Reputation:
0
May be simple to you, although every time I've tried doing this, and every person gives me different ideas it failes. I understand almost everything else, except this haha.
Say I have 1 - 25 that need to be locked for anyone else but <desiredname> how would this be accomplished? Cause right now to unlock vehicles for the desired name, say I type /loginlspd below that command in the line of code would be "UnlockLSPDCars" and it unlocked the id's I provide in a line such as
Unlock<Name>cars
Setveh.....1,0
....
setveh.....15,0
ect
Posts: 106
Threads: 19
Joined: Jan 2009
Reputation:
0
See, it is easy to lock one... but not alot lol
Posts: 106
Threads: 12
Joined: Sep 2009
Reputation:
0
look, you use normal lock unlock, just add that it should be reapplied when vehicle streams in and thats it