Example #1
0
 /// <summary>
 ///     Raises the <see cref="PlayerEditAttachedObject" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="EditAttachedObjectEventArgs" /> that contains the event data. </param>
 protected virtual void OnPlayerEditAttachedObject(GtaPlayer player, EditAttachedObjectEventArgs e)
 {
     if (PlayerEditAttachedObject != null)
         PlayerEditAttachedObject(player, e);
 }
Example #2
0
 /// <summary>
 ///     Raises the <see cref="PlayerEditAttachedObject" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="EditAttachedObjectEventArgs" /> that contains the event data. </param>
 protected virtual void OnPlayerEditAttachedObject(BasePlayer player, EditAttachedObjectEventArgs e)
 {
     PlayerEditAttachedObject?.Invoke(player, e);
 }