Vehicle Lock doesn't work
#1

I want to lock some vehicles and i have this code but it doesn't work.
Code:
for(new i = 0; i < MAX_PLAYERS; i++)
         {
	        if (IsPlayerConnected(i))
		{
			SetVehicleParamsForPlayer(barracks,i,0,1);
		}
	 }
Reply
#2

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer

Read this again. The answer is there.
Reply
#3

omg I don't know what's wrong. It looks good.
Is the 'barracks' defined to an CreateVehicle / AddStaticVehicle or something else?
Reply
#4

Yes it is.
Reply
#5

I know what's wrong.
But I will not tell you as the very first thing you should do is to check the Wiki, BEFORE asking questions.
The answer is there, in my link i posted above.
Reply
#6

Oyeah that was it

Quote:

Note: You will have to respawn the vehicle to properly remove the objective.

Quote:

Note: From 0.3 you will have to re-apply this function when OnVehicleStreamIn is called!

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)