155 lines
		
	
	
		
			No EOL
		
	
	
		
			7.3 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			155 lines
		
	
	
		
			No EOL
		
	
	
		
			7.3 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
----------------------------------------------------------------------------------------------
 | 
						|
--------------------------------------| BRUTAL KEYS :) |--------------------------------------
 | 
						|
----------------------------------------------------------------------------------------------
 | 
						|
 | 
						|
--[[
 | 
						|
Hi, thank you for buying our script, We are very grateful!
 | 
						|
 | 
						|
For help join our Discord server:     https://discord.gg/85u2u5c8q9
 | 
						|
More informations about the script:   https://docs.brutalscripts.com
 | 
						|
--]]
 | 
						|
 | 
						|
Config = {
 | 
						|
    Core = 'QBCORE',  -- 'ESX' / 'QBCORE' | Other core setting on the 'core' folder.
 | 
						|
    TextUI = 'ox_lib', -- false / 'brutal_textui' / 'ox_lib' / 'okokTextUI' / 'ESXTextUI' / 'QBDrawText' // Custom can be add in the cl_utils.lua!!!
 | 
						|
    BrutalNotify = true, -- Buy here: (4€+VAT) https://store.brutalscripts.com | Or set up your own notify >> cl_utils.lua
 | 
						|
    AdminGroups = {'superadmin', 'admin', 'mod', 'god'}, -- Admin groups
 | 
						|
 | 
						|
    DataStorage = {
 | 
						|
        --[[
 | 
						|
        optimized = Saves the data when the script is restarted, the server is shut down or restarted, or during a scheduled server restart.
 | 
						|
            events: "txAdmin:events:serverShuttingDown" & "txAdmin:events:scheduledRestart" or fixed restart times.
 | 
						|
        resource_heavy = all data will be saved immediately, this is very stressful for the server so we don't recommend using this, but the choice is up to you.
 | 
						|
        ]]--
 | 
						|
 | 
						|
        Type = "optimized", -- "optimized" / "resource_heavy"
 | 
						|
        Restarts = {}, -- example: "11:59" | Save the data 1 minute before restart. Save data at 15:59 instead of 16:00
 | 
						|
    },
 | 
						|
 | 
						|
    CopyPrice = 500, -- Key copy price
 | 
						|
    UseVehicleKeySystem = false, -- true / false | false = the full vehicle key system is switched off.
 | 
						|
    DriveWithKey = true, -- If true, players can only drive the car if they have a key, IF false, they can drive the car anytime they find it unlocked.
 | 
						|
    LockPicking = {maxTry = 1, item = "lockpick"}, -- maxTry = maximum try per vehicle | item = item or ""
 | 
						|
    Hotwiring = {maxTry = 1, successrate = 25, item = "screwdriver"}, -- maxTry = maximum try per vehicle | successrate = 10 = 10% | item = item or ""
 | 
						|
    AlertPolice = {use = true, chance = 10}, -- chance 10 = 10% | Supports Brutal Policejob basically to modity it open the cl_utils.lua file
 | 
						|
    UseKeyProp = true, -- Use the key prop in the player's hand when closing or opening a vehicle
 | 
						|
    LostVehicleKeys = {
 | 
						|
        npc = vector4(-354.5593, -128.0446, 39.4307, 65.9746), -- npc VECTOR4! coords
 | 
						|
        model = "ig_benny", -- npc type
 | 
						|
        blip = {use = true, label = "Lost Vehicle Keys", size = 1.0, sprite = 186, color = 1},
 | 
						|
        price = 2500 -- if they lost all of their keys then the price is higher
 | 
						|
    },
 | 
						|
    
 | 
						|
    QuickKeys = {
 | 
						|
        ['everyone'] = {  -- no one needs a key to drive those vehicles
 | 
						|
            "adder", "bmx"
 | 
						|
        },
 | 
						|
 | 
						|
        ['police'] = { -- player in the job do not need a key to drive the vehicle
 | 
						|
            "police", "police2", "police3", "policeb", "pbus"
 | 
						|
        },
 | 
						|
 | 
						|
        ['ambulance'] = { -- player in the job do not need a key to drive the vehicle
 | 
						|
            "ambulance",
 | 
						|
        },
 | 
						|
    },
 | 
						|
 | 
						|
    Commands = {
 | 
						|
        MyKeys = {
 | 
						|
            Command = 'mykeys', 
 | 
						|
            Suggestion = 'To manage your keys',
 | 
						|
            Control = '',  -- Controls list:  https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
 | 
						|
        },
 | 
						|
 | 
						|
        VehicleKey = {
 | 
						|
            Command = 'vkey', 
 | 
						|
            Suggestion = 'To open the nearest vehicle',
 | 
						|
            Control = '', -- 'G' | Controls list:  https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
 | 
						|
        },
 | 
						|
 | 
						|
        Lockpicking = {
 | 
						|
            Command = 'lockpick', 
 | 
						|
            Suggestion = 'Lockpicking the nearest vehicle',
 | 
						|
            Control = '',  -- Controls list:  https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
 | 
						|
        },
 | 
						|
 | 
						|
        Hotwiring = {
 | 
						|
            Command = 'hotwiring', 
 | 
						|
            Suggestion = 'To start the vehicle without keys',
 | 
						|
            Control = '',  -- Controls list:  https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
 | 
						|
        },
 | 
						|
 | 
						|
        -- Admin --
 | 
						|
 | 
						|
        StaffMode = {
 | 
						|
            Command = 'kstaff', 
 | 
						|
            Suggestion = 'To switch Key System Staff mode ON/OFF',
 | 
						|
        },
 | 
						|
 | 
						|
        AddKey = {  -- /addkey [ID] [KEY-ID] [label]
 | 
						|
            Command = 'addkey', 
 | 
						|
            Suggestion = 'To add key',
 | 
						|
        },
 | 
						|
 | 
						|
        RemoveKey = { -- /removekey [ID] [KEY-ID]
 | 
						|
            Command = 'removekey', 
 | 
						|
            Suggestion = 'To remove key',
 | 
						|
        },
 | 
						|
 | 
						|
        AddVehicleKey = { -- /addvehiclekey [ID] [PLATE]
 | 
						|
            Command = 'addvehiclekey', 
 | 
						|
            Suggestion = 'To add vehicle key',
 | 
						|
        },
 | 
						|
 | 
						|
        AddVehicleTemporaryKey = { -- /addtempkey [ID] [PLATE]
 | 
						|
            Command = 'addtempkey', 
 | 
						|
            Suggestion = 'To add vehicle temporary key',
 | 
						|
        },
 | 
						|
 | 
						|
        RemoveVehicleKey = { -- /removevehiclekey [ID] [PLATE]
 | 
						|
            Command = 'removevehiclekey', 
 | 
						|
            Suggestion = 'To remove vehicle key',
 | 
						|
        },
 | 
						|
    },
 | 
						|
 | 
						|
    -----------------------------------------------------------
 | 
						|
    -----------------------| TRANSLATE |-----------------------
 | 
						|
    -----------------------------------------------------------
 | 
						|
 | 
						|
    NUILanguage = "en", -- "en", "es", "fr", "de", "pt", "it", "pl", "nl", "ru", "tr", "hu", "ro", "cs", "sv", "ar"
 | 
						|
 | 
						|
    MoneyForm = '$', -- Money form
 | 
						|
 | 
						|
    Texts = {
 | 
						|
        [1] = {'[E] - Lost Key', 38, 'Open the lost key menu'},
 | 
						|
    },
 | 
						|
    
 | 
						|
    -- Notify function EDITABLE >> cl_utils.lua
 | 
						|
    Notify = { 
 | 
						|
        [1] = {"Keys", "Staff mode: ON", 5000, "success"},
 | 
						|
        [2] = {"Keys", "Staff mode: OFF", 5000, "error"},
 | 
						|
        [3] = {"Keys", "You got a new key!", 5000, "info"},
 | 
						|
        [4] = {"Keys", "A key has been deleted!", 5000, "success"},
 | 
						|
        [5] = {"Keys", "You gave them a key:", 5000, "info"},
 | 
						|
        [6] = {"Keys", "You copied a key!", 5000, "success"},
 | 
						|
        [7] = {"Keys", "You got a key from:", 5000, "info"},
 | 
						|
        [8] = {"Keys", "Successful lock change!", 5000, "success"},
 | 
						|
        [9] = {"Keys", "Only the vehicle owner can change!", 5000, "error"},
 | 
						|
        [10] = {"Keys", "You don't have enough money!", 5000, "error"},
 | 
						|
        [11] = {"Keys", "You have no car / you have keys to all your cars!", 5000, "error"},
 | 
						|
        [12] = {"Keys", "No vehicle near you!", 5000, "error"},
 | 
						|
        [13] = {"Keys", "The vehicle is open!", 5000, "error"},
 | 
						|
        [14] = {"Keys", "Someone is sitting in the car!", 5000, "error"},
 | 
						|
        [15] = {"Keys", "You have reached the maximum amount of keys!", 5000, "error"},
 | 
						|
        [16] = {"Keys", "This person already has a temporary key for this car!", 5000, "error"},
 | 
						|
        [17] = {"Keys", "To reduce the server load, you will have to wait a little!", 5000, "error"},
 | 
						|
        [18] = {"Keys", "Plate: 3-8 characters", 5000, "error"},
 | 
						|
        [19] = {"Keys", "Invalid Player ID!", 5000, "error"},
 | 
						|
        [20] = {"Keys", "You can't try again!", 5000, "error"},
 | 
						|
        [21] = {"Keys", "You have to sit in the driver's seat!", 5000, "error"},
 | 
						|
        [22] = {"Keys", "You did it! You've started the engine!", 5000, "success"},
 | 
						|
        [23] = {"Keys", "Unfortunately the safety lock would not let you start the engine!", 5000, "error"},
 | 
						|
        [24] = {"Keys", "You need: Lockpick", 5000, "error"},
 | 
						|
        [25] = {"Keys", "You need: Screwdriver", 5000, "error"},
 | 
						|
    },
 | 
						|
} |