Installation
Installation Guide
You need msk_core! - Download it here
Drag & Drop the folder
msk_vehiclekeys
into your resource folderAdd ensure
msk_vehiclekeys
in yourserver.cfg
Configure the
config.lua
Set your current Framework at
Config.Framework
Set the Hotkeys that you want (Users can change it by themself in fivem keybind settings)
Add the itemName in
Config.Settings
to your inventory or databaseActivate or deactivate
uniqueItems
if your are using one of the supported inventories
MSK VehicleKeys don't need any SQL file. All vehicle keys will be saved in vehiclekeys.json
.
Do NOT add or delete anything in vehiclekeys.json! This will be overwritten as the script saves the data every 5 minutes and when the script was stopped.
Supported Inventories
Supported Inventories for Unique Items are:
ox_inventory
qs-inventory
core_inventory
We have no plans to support further inventories.
We recommend using ox_inventory
for Unique Items because with this inventory we can Add or Remove the Players Key automatically if he Drops, Give, etc. the Key Item (except TempKeys).
With other inventories that's currently not possible!
You can find the code for that in server/main.lua
, maybe you can add that yourself...
Items
There are 2 different items that you need to add to your inventory or database. You can change them in config.lua
if you want to give them a different name.
keys
- The Vehicle Key Itemcontract
- Item to sell your vehicle to antoher player
Last updated