square-userBasic configuration

1

The database is set up automatically; if you have any problems, open ticket in discord.

2

Configure your language

If your language isn't listed here, you can add it or even open a ticket and we'll add it for you!

--[[  
Configure your language using the following:
    'es' -> Spanish
    'en' -> English
    'fr' -> French
    'de' -> German
    'it' -> Italian
    'pt' -> Portuguese
]]
Config.Locale = 'en' 
3

Add this to exclude vehicles according to your framework

Go to the next route es_extended/server/modules/commands.lua and find the following command to replace this one:

4

Add the items according to your framework

Add the images to your inventory jc_jc_vehiclekeys/[Assets/img_inventory

INSERT INTO items (name, label, weight, rare, can_remove)
VALUES 
('lockpick', 'LockPick', 1, 0, 1),
('hacking', 'Hacking Device', 1, 0, 1);

5

Install the key exports in your vehicle shop or garage system if they are not directly compatible with the system

triangle-exclamation

Client Exports

How do I get the license plate if it's not predefined?

local plate = GetVehicleNumberPlateText(vehicle)

Add key to Player

exports['jc_vehiclekeys']:GiveKeys(plate)

Remove Key to Player

exports['jc_vehiclekeys']:RemoveKeys(plate)

If you don't know how to do it, you can open a ticket and we'll help you integrate it

chevron-rightDo you want to use the vehiclekey item?hashtag

insert the item according to your framework:

ESX:

INSERT INTO items (name, label, weight, rare, can_remove)
VALUES ('vehiclekey', 'Vehicle Key', 1, 0, 1);

QB-Core

['vehiclekey'] = {
    name = 'vehiclekey',
    label = 'Vehicle Key',
    weight = 100,
    type = 'item',
    image = 'vehiclekey.png',
    unique = true,
    useable = false,
    shouldClose = true,
    combinable = nil,
    description = 'Vehicle Key'
},

Insert the image into your inventory

Last updated