Posts: 118
Threads: 26
Joined: Jul 2010
Reputation:
0
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 ^^
Posts: 740
Threads: 63
Joined: Oct 2009
Reputation:
0
You mean license plates using 3d labels?
Posts: 118
Threads: 26
Joined: Jul 2010
Reputation:
0
No, real licence plates, wich are on vehicles
Posts: 1,564
Threads: 98
Joined: Apr 2011
Reputation:
0
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
Posts: 6,129
Threads: 36
Joined: Jan 2009
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");
public OnVehicleSpawn(vehicleid)
{
new rand = random(3000); rand += 1500;
new string[32];
format(string, sizeof(string), "{D20000}RENAMEME", rand);
SetVehicleNumberPlate(vehicleid, string);
}