SA-MP Forums Archive
Small question about SetVehicleNumberPlate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Small question about SetVehicleNumberPlate (/showthread.php?tid=194734)



Small question about SetVehicleNumberPlate - DVDK - 30.11.2010

So we all know that we have to "reset" the vehicle before SetVehicleNumberPlate actually works,
but on the Wiki it says: "Note: The vehicle must be respawned or restreamed for the changes to take effect. ".

Does that mean that it will also work this way?
Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    SetVehicleNumberPlate(vehicleid, "SAMPFTW");
    return 1;
}



Re: Small question about SetVehicleNumberPlate - leong124 - 30.11.2010

Even if it's work, the players who are near the vehicle cannot instantly see the changes.


Re: Small question about SetVehicleNumberPlate - Memoryz - 30.11.2010

No, you need to respawn the vehicle.

What's so hard about knowing that like really, is it in a different language?

THE VEHICLE MUST BE RESPAWNED IN ORDER TO SEE THE NEW LICENSE PLATE


Re: Small question about SetVehicleNumberPlate - DVDK - 30.11.2010

Quote:
Originally Posted by Memoryz
Посмотреть сообщение
No, you need to respawn the vehicle.

What's so hard about knowing that like really, is it in a different language?

THE VEHICLE MUST BE RESPAWNED IN ORDER TO SEE THE NEW LICENSE PLATE
Because the Wiki said so..


Re: Small question about SetVehicleNumberPlate - Memoryz - 30.11.2010

Quote:
Originally Posted by DVDK
Посмотреть сообщение
Because the Wiki said so..
EXACTLY!

The wiki says that the VEHICE MUST BE RESPAWNED TO SEE THE NEW LICENSE PLATE!

It ain't rocket science.


Re: Small question about SetVehicleNumberPlate - DVDK - 30.11.2010

Quote:
Originally Posted by Memoryz
Посмотреть сообщение
EXACTLY!

The wiki says that the VEHICE MUST BE RESPAWNED TO SEE THE NEW LICENSE PLATE!

It ain't rocket science.
Can't you read?

https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate
Note: The vehicle must be respawned or restreamed for the changes to take effect.


Re: Small question about SetVehicleNumberPlate - Grim_ - 30.11.2010

Re-streamed means the player has left the streaming area of that vehicle, so when they come back, the new license plate and changes to it are applied. If you want to reset the license plate of the vehicle, and put it back in it's rightful place:

- Get the XYZ & A of the vehicle
- Set the license plate
- Re-spawn the vehicle
- Set the vehicle back at XYZ & A


Re: Small question about SetVehicleNumberPlate - Sergei - 30.11.2010

Or just put vehicle in another virtual world for a second (or whatever your settings are) and that's it.


Re: Small question about SetVehicleNumberPlate - Blacklite - 01.12.2010

It actually worked fine when I did CreateVehicle(players x y and z) and SetPlayerNumberPlate straight after each other.. But the example you supplied should work fine.