book-openGuides

Some guides to help you navigate the resource.

Ownership

TLDR - No exports needed

We have went to great lengths implementing a performant backend to handle a lot of automatic systems. Part of this system comes ownership management of vehicles.

We initialize certain values for future reference, these values are often possible to grab at runtime, but saving them once in the database offers a far more performant solution.

With this said, all of this should be handled automatically. You do not need any exports to manage the ownership for any normal dealershup. However, if you are experiencing issues, head over to our Discordarrow-up-right and let us know, and we will make sure it automatically works for your server too.

Keys

TLDR - Smart piggybacking

In addition to our automatic ownership systems, we have implemented a smart piggybacking system for key exports. This system instantly grants us backwards compatibility with hundreds of existing resources.

Currently we support:

  • wasabi_carlock

    • client/GiveKey

    • client/GiveKeys

    • client/HasKey

    • client/RemoveKey

    • server/GiveKey

    • server/GiveKeys

    • server/HasKey

    • server/RemoveKey

  • qb-vehiclekeys

    • client/vehiclekeys:client:SetOwner

    • server/qb-vehiclekeys:server:AcquireVehicleKeys

    • server/qb-vehiclekeys:server:GiveVehicleKeys

  • qs-vehiclekeys (legacy support, won't add new due to their malicious history)

    • client/GiveKey

    • client/GiveKeys

    • client/GetKey

    • client/RemoveKeys

    • server/GiveKey

    • server/GiveKeys

    • server/GetKey

    • server/RemoveKeys

  • Can't see your system here? Let us know in Discordarrow-up-right & we'll add it in!

Keytool / Keychain

For ox_inventory specifically, you can utilize a "keytool", "keychain" or otherwise known as "container". You can store your keys in here, which greatly reduces inventory clutter.

Add in the base item in ox_inventory/data/items.lua

You must then navigate into ox_inventory/modules/items/container.lua and place the operation to create the container. Follow the format you have in here, and place the snippet above the return containers that is on the last line.

If your vehicle key item is named anything other than vehicle_keys, change the name in here too.

Last updated