Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- Config.Locale = 'en'
- --------------------------------------IMPORTANT-------------------------------------
- ------------------------------------------------------------------------------------
- -- You can give a player lock control over a job vehicle by calling the event: -----
- -- TriggerServerEvent('pd_lockpick:externalGiveSpare', player_id, vehicle_plate) --
- -- Set player_id as nil to use the source instead ----------------------------------
- ------------------------------------------------------------------------------------
- Config.ESX = {
- enabled = true,
- useLegacyESX = false,
- itemName = 'pd_lockpick',
- useLockpickingStore = true,
- }
- Config.QBCore = {
- enabled = false,
- useNewQBExport = true,
- itemName = 'lockpick',
- SQLDriver = 'oxmysql',
- replaceQBVehicleKeys = true
- }
- Config.lockNPCCars = {
- enabled = true, -- Lock NPC cars
- lockCarWithNpcInside = true, -- locks cars being driven by npcs
- lockChance = 90, -- Chance of NPC car being locked (0% - 100%)
- lockDoorIfOpen = false, -- If the vehicle door is open, allow the player to enter the vehicle regardless (unless its a unpickable class, defined in Config.lockpickingMinigame.unpickableClasses)
- lockEmergencyVehiclesForWhitelisted = true -- lock the emergency vehicles for emergency workers (recommended to keep false)
- }
- Config.playerLockControl = {
- enabled = true, -- Allow players to lock and unlock their personal vehicles with a keyfob
- lockControlRange = 30, -- Max distance a player can toggle their car lock from (in meters)
- useLockToggle = true, -- true = use 1 button, false = use 2 seperate buttons
- toggleKeybind = "U", -- Keybind to toggle lock on personal vehicle (if multi button is true)
- -- if useLockToggle = false
- carUnlockKeybind = "U", -- Keybind to switch car lock (if multi button is false)
- carLockKeybind = "L",
- --Whitelist-options
- whitelistedCanUnlockEmergencyVehicles = true, -- emergency workers can you the keyfob to unlock their emergency vehicles
- whitelistedVehicles = { -- Vehicles that emergency workers can use their keyfob on (full list of vehicles can be found at: https://wiki.rage.mp/index.php?title=Vehicles)
- ['police'] = {
- "fbi",
- "pbus",
- "police",
- "police2",
- "police3",
- "police4",
- "policeb",
- "polmav",
- "policeold1",
- "policeold2",
- "policet",
- "pranger",
- "predator",
- "riot",
- "riot2",
- "sheriff",
- "sheriff2",
- "fbi2"
- },
- ["ambulance"] = {
- "ambulance",
- "firetruk",
- "lguard",
- }
- },
- }
- Config.spareKeys = {
- enabled = true, -- Allow players to give a spare key to other players to unlock their personal vehicles
- command = "givespare", -- Command to give another player a spare key
- givingRange = 5, -- Max distance a player can hand over a spare key to another player (in meters)
- styling = {
- plateColor = "orange", -- Color for the car plate in the givespare menu
- modelColor = "gray", -- Color for the model name in the givespare menu
- playerName = "orange", -- Color of the other player name in the givespare menu
- }
- }
- Config.lockpickingMinigame = {
- enabled = true, -- Allow players to lockpick NPC cars
- range = 2, -- Distance from where the lockpicking minigame gets exited out. (in meters)
- lockpickPlayerVehicles = {
- enabled = true, -- Allow players to lockpick other player's cars
- extraPins = 2 -- Amount of extra pins when trying to lockpick player car
- },
- whitelistedCanLockpick = true, -- Allow whitelisted jobs to lockpick cars
- canLockpickCarWithPedInside = true, -- Allow players to lockpick vehicles that have other peds in them
- canLockpickWithPedInDriverSeat = true, -- Allow players to lockpick vehicles that have npcs or other players in the driver seat
- pedWillFleeWhenLockpicking = true, -- Drivers will flee when you try to lockpick the car
- lockpickBreakChance = 20, -- Chance of breaking a lockpick on failure (0% - 100%)
- setAsMissionEntityAfterSuccesfullLockpick = true, -- Makes the cars not randomly despawn after successfully lockpicking them
- minigameOptions = {
- maxPower = 12, -- Maximum of bars for the lockpicking minigame (higher number = more difficult)
- setBackAmount = 1, -- Amount of pins setback after failing
- seeded = true, -- Use the plate as the seed to generate the power required per pin. This will cause the vehicles to have the same lock combination, even between restarts.
- -- Setting this to false will still sync the locks between all players, but won't keep the lock the same all the time.
- difficultyModifier = -1, -- Scale the overal difficulty of the minigame
- pinsPerVehicleClass = { -- Amount of pins for each vehicle class
- 4, --Compacts
- 5, --Sedans
- 5, --SUVs
- 5, --Coupes
- 6, --Muscle
- 6, --Sports Classics
- 6, --Sports
- 9, --Super
- 5, --Motorcycles
- 4, --Off-road
- 5, --Industrial
- 5, --Utility
- 4, --Vans
- 5, --Cycles
- 5, --Boats
- 6, --Helicopters
- 7, --Planes
- 6, --Service
- 9, --Emergency
- 9, --Military
- 6, --Commercial
- 8, --Trains
- }
- },
- unpickableClasses = { -- Car classes that can't be picked
- -- 18, --Emergency
- 15, --Helicopters
- 19, --military
- 16, --planes
- },
- carAlarmChance = 30, -- Chance of setting off car alarm when lockpicking a car (0% - 100%)
- carAlarmDuration = 40, -- Time before car alarm shuts off (in seconds)
- pedsCallPolice = {
- enabled = true, -- If the car alarm
- chance = 40, -- Chance per ped that can see the vehicle alarm going of to call the police (0% - 100%)
- viewDistance = 20, -- Distance the ped spots you messing with the car when the alarm goes off (requires line of sight to the ped) (in meters)
- policeJob = "police",
- blipOptions = {
- sprite = 161,
- color = 6,
- duration = 120
- },
- }
- }
- ---------------------------------------
- ----------Lockpick Store---------------
- ---------------------------------------
- -- Location and item label ESX Only
- Config.lockpickingStores = {
- locations = {
- {
- x = -678.3285,
- y = -854.2575,
- z = 24.09087,
- }
- },
- items = {
- {
- item = Config.ESX.itemName,
- label = 'Lockpick',
- price = 10,
- },
- },
- payWithBank = true,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement