OnPlayerPickup

From GTA Network Wiki
Jump to: navigation, search

OnPlayerPickup
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

This type of event is used for handling code when the character picks up a pickup entity.

Attribute

[ServerEvent(Event.PlayerPickup)]

Required Parameters

  • Client: the player.
  • Pickup: the pickup.

Usage example(s)

[ServerEvent(Event.PlayerPickup)]
public void OnPlayerPickup(Client player, Pickup pickup)
{
    // Some code
}

Changelog

Version Description
1.0 Release.

References