SetVehicleNumberPlate() not work in init?
#1

in ongamemodeinit() i use:
for(new i=0;i<=MAX_VEHICLES;i++)
{
SetVehicleNumberPlate(i, "SAMPFTW");
SetVehicleToRespawn(i);
}
but it not work... why?
Reply
#2

works fine for me
Reply
#3

Also:

Quote:

Please use this function with care and don't go assigning custom numberplates to vehicles that don't have plates (like planes/boats etc), as this would result in unneeded processing time on the client.

8char
Reply
#4

Put in OnGameModeInit after CreateVehicle,AddStaticVehicle and AddStaticVehicleEx that:
Код:
for(new i=0;i<=MAX_VEHICLES;i++) SetVehicleNumberPlate(i, "SAMPFTW");
Reply
#5

You must also remember that the vehicles needs to be created before you can set the plates
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)