Client Listeners
This section lists all available event listeners, detailing each events's purpose to help you integrate with the resource effectively.
These events should not be triggered by any other scripts.
Creation Events
div_tape/client/tapeCreated
This event is triggered when a tape object is successfully created in the world. It provides detailed information about the placement, including the player who created it, the coordinates, and the tape's identifier.
Payload
| Prop | Type | Default |
|---|---|---|
source | number | - |
coords | vector3 | - |
rotation | vector3 | - |
tapeId | number | - |
texture | string | - |
timestamp | number | - |
Example Usage
RegisterNetEvent('div_tape/client/tapeCreated', function(payload)
print(json.encode(payload, { indent = true }))
end)div_tape/client/creationStarted
This event is triggered when the creation process has started. It provides information about the situation, including the player who started it, the player's position and time of the event.
Payload
| Prop | Type | Default |
|---|---|---|
source | number | - |
coords | vector3 | - |
timestamp | number | - |
Example Usage
RegisterNetEvent('div_tape/client/creationStarted', function(payload)
print(json.encode(payload, { indent = true }))
end)div_tape/client/creationStopped
This event is triggered when the creation process has stopped. It provides information about the situation, including the player who stopped it, the player's position and time of the event.
Payload
| Prop | Type | Default |
|---|---|---|
source | number | - |
coords | vector3 | - |
timestamp | number | - |
Example Usage
RegisterNetEvent('div_tape/client/creationStopped', function(payload)
print(json.encode(payload, { indent = true }))
end)Deletion Events
div_tape/client/tapeDeleted
This event is triggered when a tape object is deleted from the world. It provides information about the removal, including the player who deleted it and the identifier of the deleted tape.
Payload
| Prop | Type | Default |
|---|---|---|
source | number | - |
coords | vector3 | - |
tapeId | number | - |
texture | string | - |
method | manual | decayed | tool | script | - |
timestamp | number | - |
Example Usage
RegisterNetEvent('div_tape/client/tapeDeleted', function(payload)
print(json.encode(payload, { indent = true }))
end)div_tape/client/deletionStarted
This event is triggered when the deletion process has started. It provides information about the situation, including the player who started it, the player's position and time of the event.
Payload
| Prop | Type | Default |
|---|---|---|
source | number | - |
coords | vector3 | - |
method | manual | - |
timestamp | number | - |
Example Usage
RegisterNetEvent('div_tape/client/deletionStarted', function(payload)
print(json.encode(payload, { indent = true }))
end)div_tape/client/deletionStopped
This event is triggered when the creation process has stopped. It provides information about the situation, including the player who stopped it, the player's position and time of the event.
Payload
| Prop | Type | Default |
|---|---|---|
source | number | - |
coords | vector3 | - |
timestamp | number | - |
Example Usage
RegisterNetEvent('div_tape/client/deletionStopped', function(payload)
print(json.encode(payload, { indent = true }))
end)Server Events
This section lists all available events, detailing each events's purpose, arguments, and return values to help you integrate with the resource effectively.
Server Listeners
This section lists all available event listeners, detailing each events's purpose to help you integrate with the resource effectively.