OnPlayerPickup
Внешний вид
This event is triggered when a player enters a pickup.
<syntaxhighlight lang="csharp"> [ServerEvent(Event.PlayerPickup)] </syntaxhighlight>
Parameters
- player: parameter input should be in Player type
- pickup: parameter input should be in Pickup type
Example
<syntaxhighlight lang="csharp"> [ServerEvent(Event.PlayerPickup)] public void OnPlayerPickup(Player player, Pickup pickup) { player.SendChatMessage($"You have entered {pickup.Id}."); } </syntaxhighlight>