Client Exports

Developers are able to use these exports to integrate Smart Vehicle with other resources, such as interaction or target systems.

Setup Vehicle (Client Sided)

exports["SmartVehicle"]:SetupSmartVehicle(vehicle, id)

This export allows you to setup a vehicle. The id argument is the setup id (if the vehicle has multiple). This can be left blank otherwise.

Reset Vehicle (Client Sided)

exports["SmartVehicle"]:ResetSmartVehicle(vehicle)

This export allows you to reset a vehicle.

IsPedControllingVehicle (Client Sided)

exports["SmartVehicle"]:IsPedControllingVehicle()

This export allows you to find out if the current ped is controlling a Smart Vehicle, returning true or false.

IsPedInCage (Client Sided)

exports["SmartVehicle"]:IsPedInCage()

This export allows you to find out if the current ped is in a Smart Vehicle cage, returning true or false.

Last updated

Was this helpful?