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

OnPlayerExitColShape

Материал из RAGE MP Wiki Archive
Версия от 05:48, 9 мая 2023; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

This event is triggered when a player exits a colshape.


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

Parameters

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

Example

<syntaxhighlight lang="csharp"> [ServerEvent(Event.PlayerExitColshape)] public void OnPlayerExitColshape(ColShape shape, Player player) { player.SendChatMessage($"You exited {shape.id}."); } </syntaxhighlight>