EnableVehicleFriendlyFire

Tags: vehicle

WARNING

This function was added in SA-MP 0.3x and will not work in earlier versions!

Description

Enable friendly fire for team vehicles. Players will be unable to damage teammates' vehicles (SetPlayerTeam must be used!).

Name Description

Examples

public OnGameModeInit()
{
    EnableVehicleFriendlyFire();
    return 1;
}
  • SetPlayerTeam: Set a player's team.