11.10.2017, 07:04
I don't see why that would cause lag. There's nothing to optimize.
Only problem I see is that you're using IsPlayerInAnyVehicle which could cause complications. If a player's the passenger of a vehicle and the driver doesn't have their autofix on, it'll still repair that car. Use GetPlayerState to see if the player is the driver of the vehicle.
Only problem I see is that you're using IsPlayerInAnyVehicle which could cause complications. If a player's the passenger of a vehicle and the driver doesn't have their autofix on, it'll still repair that car. Use GetPlayerState to see if the player is the driver of the vehicle.