Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

feat(client/utils): add function to suppress item notifications#9

Merged
antond15 merged 1 commit into
mainfrom
item-notify-toggle
May 8, 2025
Merged

feat(client/utils): add function to suppress item notifications#9
antond15 merged 1 commit into
mainfrom
item-notify-toggle

Conversation

@antond15

@antond15 antond15 commented May 8, 2025

Copy link
Copy Markdown
Member

Added net event (ox_inventory:suppressItemNotifications) and export (suppressItemNotifications) to temporarily suppress item notifications.

local playerId = 1
TriggerClientEvent('ox_inventory:suppressItemNotifications', playerId , true)
exports.ox_inventory:AddItem(playerId, 'water', 1)
TriggerClientEvent('ox_inventory:suppressItemNotifications', playerId , false)

I will create docs PR once this gets approved.

@antond15 antond15 merged commit 7e2bb54 into main May 8, 2025
@antond15 antond15 deleted the item-notify-toggle branch May 8, 2025 18:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants