Exports and Events

We've added some exports and events to Smart Clamp to allow you to integrate this resource into your server.

Exports

Setup Clamp - client sided

-- clampType = "locker_chain" or "locker_wheel"
-- Install clamp on nearby vehicle, this export will determine the vehicle automatically
exports("SetupClamp", function(clampType) 
    setupClamp(clampType)
end)

Remove Clamp - client sided

-- Remove clamp from nearby vehicle, this export will determine the vehicle automatically
exports("RemoveClamp", function() 
    removeClamp()
end)

Events

The following server-sided events are triggered when a clamp is installed or removed from a vehicle successfully.

"SmartClamp:ClampInstalled", parameters: vehicleNetId, clampType
"SmartClamp:ClampRemoved", parameters: vehicleNetId

Further Support

If there is something you need which is not listed here, or you require any further support with integrations, you can contact the development team at https://support.londonstudios.net/ and we can add further exports or events to the resource to assist you with your integrations.

Last updated