Help With Licence Plate
#1

Hi everybody !

Today i need your help for an easy thing ( in think ^^ ). I just want to make some licence plates in my server, with some colours. I know it is possible because i saw this on a server but i don't know how to do that ^^

Can you help me ?

PS: Sorry for my bad english i'm french ^^
Reply
#2

You mean license plates using 3d labels?
Reply
#3

No, real licence plates, wich are on vehicles
Reply
#4

Only thing i know, is that you can set the numberplate by "SetVehicleNumberPlate(vehicleid, numberplate);"
Dont know what to do with colors in it, never seen it before
Reply
#5

You can use the standard colour embedding in number plates, though there are some things you should note:
  • Number plates can only contain 7 characters, however with colour embedding you can have 7 characters with the other 25 characters being used to preserve the colour embedding
  • You need to re-stream a vehicle after setting its plate (so for example, change it's virtual world to something else then change it back to the original one), or if nobody is near the car spawn it'll be fine
  • Number plates are strings, you can use letters and numbers, unsure about symbols
An example of a white number plate with colour embedding would be:
pawn Код:
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), "{FFFFFF}A0AO0A");
Reply
#6

Thanks i'll test !
Reply
#7

public OnVehicleSpawn(vehicleid)
{
new rand = random(3000); rand += 1500;
new string[32];
format(string, sizeof(string), "{D20000}RENAMEME", rand);
SetVehicleNumberPlate(vehicleid, string);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)