Skip to main content

SentAttachmentsPrefs

Gets called when player has changed weapon attachments preferences.

Start a script section

!-- OnEvent SentAttachmentsPrefs
-- require @evPlayer $evFirearmType $evOldAttachments $evNewAttachments

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerSentAttachmentsPrefsEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player that invoked the event.
$evFirearmTypeItemType enum valueThe ItemType of the firearm.
$evOldAttachmentsnumber valueGets previous attachments code stored on the server.
$evNewAttachmentsnumber valueGets the new attachments code stored on the server.