Small question about SetVehicleNumberPlate
#1

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;
}
Reply
#2

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

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
Reply
#4

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..
Reply
#5

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.
Reply
#6

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.
Reply
#7

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
Reply
#8

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)