Help with SetVehicleNumberPlate
#1

I need to change the plate of my car, but do not understand how using SetVehicleNumberPlate. Already looked on the wiki and did not understand. Could you explain and how?

OBS: Using ****** Translate xD
Reply
#2

Quote:
Originally Posted by Wiki
This function does not work in the current SA:MP version.
Reply
#3

Current is 0.3, mine is 0.2
Reply
#4

After setting it, you have to respawn the vehicle.
Reply
#5

But I don't know how to set, I simply don't have any idea of how to use this function. Can give me an example?
Reply
#6

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

There's your example. This is exactly how you do It.
Reply
#7

But for example: I have 34 cars in my script. As the function will know which set the car plate? And in public that I should put the function? I'm really confused.
Reply
#8

public OnUserSeeThisTopic
{
SendClientMessage(userid, COLOR_RED, "BUMP");
return 1;
}
Reply
#9

Quote:
Originally Posted by [BEP
GeoPilot ]
public OnUserSeeThisTopic
{
SendClientMessage(userid, COLOR_RED, "BUMP");
return 1;
}
pawn Код:
public OnUserBumpThisTopic(userid)
{
  SendUserMessage(userid, COLOR_RED, "[url]http://forum.sa-mp.com/index.php?topic=67900.0"[/url]);
  return true;
}
Reply
#10

Stop screwing guys:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) {
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), "TEXT");
return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)