Posts: 43
Threads: 10
Joined: Jun 2015
Reputation:
0
Hey, I've been trying to script a system which spawns locked vehicles, depending on their ID. I tried using SetVehicleParamsForPlayer in the callbacks OnVehicleStreamIn and OnVehicleStreamOut, but they still are unlocked. Anyone knows what's wrong?
Thanks!
Posts: 561
Threads: 27
Joined: Sep 2012
Posts: 43
Threads: 10
Joined: Jun 2015
Reputation:
0
I understand the code and everything, but I'd like not to use GetPlayerVehicleID since the cars should be locked as soon as they spawn, without needing to check the player's seat or if they're inside a car or not. Oh and also without an ownership system, just spawn locked vehicles. Thanks!
Posts: 561
Threads: 27
Joined: Sep 2012
So call this CallBack :
PHP код:
public OnVehicleSpawn(vehicleid)
{
return 1;
}
Posts: 43
Threads: 10
Joined: Jun 2015
Reputation:
0
Does anyone know another way to do it?