Slight Problem
#1

Im having a small problem with my plate change commend:

Код:
COMMAND:mplate(playerid, params[])
    {
	new pr0veh;
	pr0veh = GetPlayerVehicleID(playerid);
        if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFFFF, "/mplate [text]");
        new string[128];
        format(string, sizeof(string), "%s",params);
        SetVehicleNumberPlate(pr0veh,string);
        SendClientMessage(playerid, 0xFFFFFFFF, "Plate Customized!");
        return 1;
     }
It works but the person who types it has to respawn to see it (and sometimes still sees default) I tried respawning the car but then it goes back to where it was spawned and the paintjob/mods are lost.Anybody have a solution please?
Reply
#2

As stated on the wiki, vehicles need to be respawned in order for the changes to be applied. There is no clean solution. Only way to do it is to get all the mods, respawn the car and then re-apply all the mods.
Reply
#3

Oh ok,well thanks anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)