Class PlayerGangZone
Represents a gang zone that is logically owned by a single player. Created via CreatePlayerGangZone(Player, Vector2, Vector2, EntityId), which binds the gang zone's legacy ID to the owning player.
public class PlayerGangZone : BaseGangZone
- Inheritance
-
PlayerGangZone
- Inherited Members
Remarks
open.mp does not have a dedicated per-player gang zone creation API; under the hood this is
a regular gang zone with SetLegacyPlayer set to the owner. Use Show(Player)
/ Hide(Player) for explicit per-player visibility.
Constructors
PlayerGangZone(IOmpEntityProvider, IGangZonesComponent, IGangZone)
Initializes a new instance of the PlayerGangZone class.
protected PlayerGangZone(IOmpEntityProvider entityProvider, IGangZonesComponent gangZones, IGangZone gangZone)
Parameters
entityProviderIOmpEntityProvidergangZonesIGangZonesComponentgangZoneIGangZone