DestroyVehicle
#2

Move your code from OnPlayerKeyStateChange to OnPlayerStateChange, Check if the player's state changes from PLAYER_STATE_DRIVER to PLAYER_STATE_ONFOOT

PHP код:
if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
{
// Your code here

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)