ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setTeamFriendlyFire

Function

setTeamFriendlyFire

ServerTeamsIdentical to MTA:SA

Turns damage between members of the same team on or off.

Syntax

bool setTeamFriendlyFire(team team, bool enabled)

Arguments

teamteam
The team.
enabledbool
true allows hurting teammates.

Returns

true on success.

Example

local police = createTeam("Policja", 40, 90, 255)
setTeamFriendlyFire(police, false)

See also