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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player that invoked the event. |
$evFirearmType | ItemType enum value | The ItemType of the firearm. |
$evOldAttachments | number value | Gets previous attachments code stored on the server. |
$evNewAttachments | number value | Gets the new attachments code stored on the server. |