Example #1
0
 /// <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);
 }
Example #2
0
 /// <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);
 }