Skip to content

Triggering events from external resource

Christopher M edited this page Nov 21, 2020 · 1 revision

How to trigger attachment events from an external resource.

> Warning: Advanced Tutorial

Triggering the client event Inferno-Collection:Vehicle-Attachment:NewAttachment will start a new attachment.

Triggering the client event Inferno-Collection:Vehicle-Attachment:RemoveLastAttachment will start to detach the last vehicle attached by the client.

Triggering the server event Inferno-Collection:Vehicle-Attachment:AddInUseVehicle, passing the Network ID of the vehicle as an int, will prevent other clients from using the vehicle to attach to until removed.

Triggering the server event Inferno-Collection:Vehicle-Attachment:RemoveInUseVehicle, passing the Network ID of the vehicle as an int, will allow other clients to use the vehicle to attach to.

Triggering the server event Inferno-Collection:Vehicle-Attachment:Sync, passing a static list of ints of vehicles in use in JSON form, will update all clients with vehicles that cannot be used.

If you have any troubles, suggestions, feedback, etc, please check the Wiki, create a new issue, and/or contact us on Discord.