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
You don’t have to have the listed inventories below, but without them, you won’t have unique items!
ox_inventory -> recommended
We have no plans to support further inventories but you can still make suggestions.
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).
Also the Keyring System is currently only for ox_inventory!
Why those features, mentioned above, only for ox_inventory? Because ox_inventory offers numerous functions that other inventories unfortunately do not support.
You can find the code for that in server/main.lua
and for ox_inventory in server/ox_inventory.lua
. Maybe you can add that yourself...
Items
There are some 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 Itemkeyring
- Item to open your Keyring (Only ox_inventory)contract
- Item to sell your vehicle to antoher player
Last updated