Client
Library
Updated 2 months ago ·
v1.3.7lib.registerGroupTask
Register a task that can be started by the group leader from the server. When the server calls lib.startGroupTask, the execute callback runs on every group member's client.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Unique task identifier (must match the server-side task ID) |
| data | table | yes | Task definition |
Task Data
| Field | Type | Description |
|---|---|---|
execute | function(args) | Called when the task starts on this client. Receives the args passed from startGroupTask |
kill | function(args) | Called when the task is ended via endGroupTask |
Example
Was this page helpful?
This page was last updated on 12 March 2026