vehicle jacking your own vehicle fix

This commit is contained in:
Steven Howard 2018-10-14 09:53:49 +01:00
parent 6dc23cb749
commit 2dc9ea5335

View File

@ -53,7 +53,7 @@ hook OnPlayerDriveVehicle( playerid, vehicleid )
new new
iVehiclePrice = calculateVehicleSellPrice( vehicleid ); iVehiclePrice = calculateVehicleSellPrice( vehicleid );
if ( IsPlayerJob( playerid, JOB_DIRTY_MECHANIC ) && p_Class[ playerid ] == CLASS_CIVILIAN ) if ( IsPlayerJob( playerid, JOB_DIRTY_MECHANIC ) && p_Class[ playerid ] == CLASS_CIVILIAN && iVehiclePrice )
{ {
if ( g_LastExportModel[ playerid ] == GetVehicleModel( vehicleid ) ) if ( g_LastExportModel[ playerid ] == GetVehicleModel( vehicleid ) )
{ {