EnableVehicleFriendlyFire

From SA-MP Wiki

Jump to: navigation, search


EnableVehicleFriendlyFire was added in SA-MP 0.3x 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!).


Parameters:
This function has no parameters.


Return Values:

This function does not return any specific values.


Example Usage:

public OnGameModeInit()
{
    EnableVehicleFriendlyFire();
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
Navigation
Toolbox
In other languages