OnPickupRespawn

From GT-MP
Jump to: navigation, search
OnPickupRespawn
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

This type of event is used for handling code when a pickup entity respawn.

Requirements

First of all, it should be defined in your Main constructor for it to be called, otherwise it wouldn't be initiated at all!

public Main()
{
    API.onPickupRespawn += OnPickupRespawnHandler;
}

Usage example(s)

private void OnPickupRespawnHandler(NetHandle pickup)
{
    //Code
}

References