22.02.2014, 14:39
use SetVehicleToRespawn after setting the plate.
https://sampwiki.blast.hk/wiki/Function:SetVehicleToRespawn
"The vehicle must be respawned or restreamed for the changes to take effect."
from the wiki: https://sampwiki.blast.hk/wiki/SetVehiclePlate
if you want the vehicle to go back to a specific position, just get it's X, Y, Z and angle coords from it BEFORE respawning it.
then after respawning it, set it back to those coords.
https://sampwiki.blast.hk/wiki/Function:SetVehicleToRespawn
"The vehicle must be respawned or restreamed for the changes to take effect."
from the wiki: https://sampwiki.blast.hk/wiki/SetVehiclePlate
if you want the vehicle to go back to a specific position, just get it's X, Y, Z and angle coords from it BEFORE respawning it.
then after respawning it, set it back to those coords.