Перейти к содержанию

OnPlayerEnterColShape

Материал из RAGE MP Wiki Archive

This event is triggered when a player enters a colshape.


<syntaxhighlight lang="csharp"> [ServerEvent(Event.PlayerEnterColshape)] </syntaxhighlight>

Parameters

  • shape: parameter input should be in ColShape type
  • player: parameter input should be in Player type

Example

<syntaxhighlight lang="csharp"> [ServerEvent(Event.PlayerEnterColshape)] public void OnPlayerEnterColshape(ColShape shape, Player player) { player.SendChatMessage($"You entered {shape.Id}."); } </syntaxhighlight>