/// <summary> /// Raises the <see cref="PlayerSelectGlobalObject" /> event. /// </summary> /// <param name="player">The player triggering the event.</param> /// <param name="e">An <see cref="SelectGlobalObjectEventArgs" /> that contains the event data.</param> protected virtual void OnPlayerSelectGlobalObject(GtaPlayer player, SelectGlobalObjectEventArgs e) { if (PlayerSelectGlobalObject != null) PlayerSelectGlobalObject(player, e); }
/// <summary> /// Raises the <see cref="PlayerSelectGlobalObject" /> event. /// </summary> /// <param name="player">The player triggering the event.</param> /// <param name="e">An <see cref="SelectGlobalObjectEventArgs" /> that contains the event data.</param> protected virtual void OnPlayerSelectGlobalObject(BasePlayer player, SelectGlobalObjectEventArgs e) { PlayerSelectGlobalObject?.Invoke(player, e); }