CityRP Documentation Repository

cityrp.teamaccess

Team access groups for doors and vehicles.

Functions

Sharedcityrp.teamaccess.InClanOf(ply, owner) → booleanSource ☍

Check if a player is in the same clan as another player.

Parameters

  • plyPlayerThe player asking for access.
  • ownerPlayerThe owner whose clan is compared.

Returns

  1. booleanif both are in the same clan.
Sharedcityrp.teamaccess.InGroupOf(ply, owner) → booleanSource ☍

Check if a player is in the door team group of another player's team. A team with no group gives no team access. Takes the players as arguments rather than as self so the vehicle checks can call it on anything with :Team().

Parameters

  • plyPlayerThe player asking for access.
  • ownerPlayerThe owner whose team group is checked.

Returns

  1. booleanif the player's team is in the owner's team group.

Classes

Sharedcityrp.teamaccessSource ☍

Door and vehicle team access.

Fields

Sharedcityrp.teamaccessSource ☍

Door and vehicle team access.

Sharedcityrp.teamaccess.groupsSource ☍

Teams grouped for team access, keyed by the owner's team.

Sharedcityrp.teamaccess.groupsSource ☍

Teams grouped for door and vehicle team access, keyed by the owner's team. Filled once the TEAM_* constants exist; a team with no entry has no group.