Configuration, Exports and commands

Guide to exports and commands for Quasar Vehiclekeys, we recommend having an experienced developer or having minimal programming skills to continue with this sector of the documentation.
Remember that the system will work without using this type of exports, this guide is exclusively for people who want to create their own scripts based on metadata or purely to have information on the internal use of the resource.
In isolated cases you may need to use one of these events for your basic server resources, but usually it will all work automatically.

1. Client exports

1. Automatic exports

GiveKeysAuto - Export to give the keys of the vehicle in which you are.

exports['qs-vehiclekeys']:GiveKeysAuto()

RemoveKeysAuto - Export to remove the keys of the vehicle in which you are.

exports['qs-vehiclekeys']:RemoveKeysAuto()

GetKeyAuto - This export checks if the player has keys to the vehicle he is in.

exports['qs-vehiclekeys']:GetKeyAuto()

2. Manual exports

GiveKeys - Export to give the keys of a specified vehicle.

-- plate: Vehicle plate
-- model: Vehicle model
exports['qs-vehiclekeys']:GiveKeys(plate, model)

RemoveKeys - Export to remove the keys of a specified vehicle.

-- plate: Vehicle plate
-- model: Vehicle model
exports['qs-vehiclekeys']:RemoveKeys(plate, model)

GetKey - Export to know if the player is in the specified vehicle.

-- plate: Vehicle plate
exports['qs-vehiclekeys']:GetKey(plate)

2. Commands

List of useful commands for the basic functions of your server using our asset, you can execute them using ExecuteCommand or read them informatively.
Name
Usability
Description
givekey
/givekey id
Command for administrative use, gives keys to the player but must be inside a vehicle.