[HELP] About Vehicles Licenses Plates!
#1

Hello, i need some help. Put on GameModeInit to set the license plate of some cars. Well it works But.. If they respawn, The license plate its normal. So.. its possible to make a code when this car respawns to set the license plate?
Reply
#2

Hi, please use the Searchbox. In this Forum you can find
a lot of these Scripts.

- LJ
Reply
#3

You probably don't save the plate.
Reply
#4

You could use a timer to reset the number plate to what ever you want it to be every X seconds
Reply
#5

I Searched a bit, but i cant find anything.
Reply
#6

Use this:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
    SetVehicleNumberPlate(vehicleid, "text");
    SetVehicleToRespawn(vehicleid);
    return 1;
}
Reply
#7

Quote:
Originally Posted by Marcel
Use this:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
    SetVehicleNumberPlate(vehicleid, "text");
    SetVehicleToRespawn(vehicleid);
    return 1;
}
Its not working.
Reply
#8

Quote:
Originally Posted by Marcel
Use this:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
    SetVehicleNumberPlate(vehicleid, "text");
    SetVehicleToRespawn(vehicleid);
    return 1;
}
fail, thatll call onvehiclespawn again, and itll go in a loop for all cars if you has like 500 cars in your server, itll crash the server completely.

for this,

delete the code above.

and show the code where your cars are being spawned. (that r needing to be license plated)
Reply
#9

When you set a vehicle plate you have to respawn the car to have effect, that's what the wiki says.
Reply
#10

Quote:
Originally Posted by Marcel
When you set a vehicle plate you have to respawn the car to have effect, that's what the wiki says.
maybe it shud occcur on a different event, such as a command text? on game mode ?
OnPlayerCommand
and
OnGameModeInit
are the best places to put it in
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)