Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(event/targers): multiple IDs method #464

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix
PsychoShock committed Jul 15, 2024
commit 8d4652b2c8c13584338e6a713f2f8dbbfcebc5fc
Original file line number Diff line number Diff line change
@@ -46,6 +46,6 @@ To call an event for multiple players, you need to include their IDs in an array
local playerIds = {1, 3, 5} -- Replace with actual player IDs

-- Trigger the event for the specified players
TriggerClientEvent('eventName', -1, playerIds, { example = 0 })
TriggerClientEvent('eventName', playerIds, { example = 0 })
```
This format ensures that the event is called for each player specified in the `playerIds` array.