Agency Docs
Standalone

Agency-Seatbelt Exports & API

Realistic seatbelt with ejection physics, 3D sounds, multi-occupant support, seatbelt reminder, UI themes, vehicle.

v1.1.0Paid3 Pages

01Client Exports

ExportDescription
enableSeatbelt()Buckles the local player's seatbelt (UI, sounds, Agency-HUD sync) if in a vehicle.
disableSeatbelt()Unbuckles the local player's seatbelt with feedback if in a vehicle.
toggleSeatbelt()Toggles the local player's seatbelt buckled state.
isSeatbeltOn()Returns whether the local player's seatbelt is currently buckled.

+Good to know

This page lists the available exports provided by Agency-Seatbelt for use in other resources. Developers can use these client-side exports to control or query the seatbelt state for the local player. No server-side exports are provided. Ensure Agency-Seatbelt is started before any resource that uses its exports to avoid runtime errors or undefined behavior.

Client-side exports only
Agency-Seatbelt provides four exports that are all client-side. These allow scripts to enable, disable, toggle, or check the seatbelt status for the local player. There are no server exports or events exposed by this resource.
Usage within other resources
To use these exports, ensure Agency-Seatbelt is started before any dependent resource. Call the exports directly from your client scripts to integrate seatbelt functionality or HUD status checks as needed.
No dependencies or SQL
Agency-Seatbelt does not require any external dependencies or SQL setup. All features, including export functions, are available out of the box after starting the resource.

?Frequently asked questions

Are there any server-side exports available for Agency-Seatbelt?

No, Agency-Seatbelt only provides client-side exports. There are no server exports or events exposed. All interaction with seatbelt state must be performed from client scripts using the available exports.

What happens if I call an export before Agency-Seatbelt is started?

If you attempt to use an export before Agency-Seatbelt is started, the export will not be available and your script may throw an error or fail to function as expected. Always ensure Agency-Seatbelt is started first.

Do I need to configure any dependencies or import SQL to use these exports?

No, Agency-Seatbelt does not require any dependencies or SQL imports. The exports are available immediately after the resource is started, and no additional setup is necessary.

How do I check if the local player's seatbelt is buckled from another script?

You can use the isSeatbeltOn() client export to check if the local player's seatbelt is currently buckled. Call this export from your client script to retrieve the current seatbelt status.

Still stuck after this page? Our support team takes it from here.