SA-MP Forums Archive
How to set a vehicle plate in OnDialogResponse with inputtext. - 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)
+--- Thread: How to set a vehicle plate in OnDialogResponse with inputtext. (/showthread.php?tid=351668)



How to set a vehicle plate in OnDialogResponse with inputtext. - stormchaser206 - 16.06.2012

I tried this:
pawn Код:
SetVehicleNumberPlate(vehicleid, inputtext[1]);
And the vehice plate wouldn't change in-game.
Why won't it work?


Respuesta: How to set a vehicle plate in OnDialogResponse with inputtext. - OxyG3N - 16.06.2012

Also you need to Respawn vehicle.

pawn Код:
SetVehicleNumberPlate(vehicleid, inputtext[1]);
SetVehicleToRespawn(vehicleid);