DestroyVehicle
#1

So i`m making a job system when you type /work it spawn a car,and if you exit the car it destroys.

the car is spawning ,but it isnt destroying.

here`s what i got at onplayerkeystatechange when he leaves the car.

PHP код:
        if(PTruckerCP[playerid] >= 0)
        {
            
DisablePlayerCheckpoint(playerid);
            
RemoveDestination(playerid);
            
DestroyVehicle(VJob[playerid]);
            
PTruckerCP[playerid] = -1;
            
VJob[playerid] = -1;
            
SendClientMessage(playeridCOLOR_WHITE"{FFFFFF}Job: {FFFFFF}You canceled the job because you got out of your car.");
        } 
Reply


Messages In This Thread
DestroyVehicle - by PepsiCola23 - 08.02.2018, 14:23
Re: DestroyVehicle - by JaKe Elite - 08.02.2018, 14:28
Re: DestroyVehicle - by ISmokezU - 08.02.2018, 14:30
Re: DestroyVehicle - by PepsiCola23 - 08.02.2018, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)