KuzQuality
Search…
Lockpicking
Lockpicking adds a custom never seen before car lockpicking minigame to your server. It also includes a vehicle locking system with support for player owned vehicles.

Installation

  1. 1.
    Drag and drop the script into your resources folder
  2. 2.
    Run the SQL file which will be stored in the root of lubes_lockpicking
  3. 3.
    Add the script to your server.cfg file
  4. 4.
    Start your server
This script is unobfuscated and does not require authorization meaning that there is no extra steps before you can use it. Simply drag and drop it into your resources folder and add it to your server.cfg
Script not being obfuscated doesn't mean that you can redistribute the script

Config file

You may edit this file as you will, if you have any questions about the config file feel free to contact us on our discord
1
Config = {}
2
Config.Locale = 'en'
3
4
5
---------------------------------------
6
------------Database Names-------------
7
---------------------------------------
8
-- item name for the lockpick item
9
Config.lockpick_item_name = "lubes_lockpick"
10
11
-- database name for the owned vehicles
12
Config.vehicle_database_name = "owned_vehicles"
13
14
-- column name for owned vehicles -> plate
15
Config.vehicle_plate_column_name = "plate"
16
17
-- column name for owned vehicles -> owner
18
Config.vehicle_owner_column_name = "owner"
19
20
21
22
---------------------------------------
23
-----------Lock NPC Cars---------------
24
---------------------------------------
25
-- Lock NPC cars
26
Config.lock_npc_cars = true
27
28
-- Chance of NPC car being locked (0% - 100%)
29
Config.npc_car_lock_chance = 90
30
31
-- lock the emergency vehicles for emergency workers (recommended to keep false)
32
Config.lock_emergency_vehicles_for_personel = false
33
34
35
36
---------------------------------------
37
---------------Key Fob-----------------
38
---------------------------------------
39
-- Allow players to lock and unlock their personal vehicles with a keyfob
40
Config.allow_player_lock_control = true
41
42
-- Keybind to toggle lock on personal vehicle
43
Config.car_lock_toggle_keybind = "U"
44
45
-- Max distance a player can toggle their car lock from (in meters)
46
Config.key_fob_range = 30
47
48
-- emergency workers can you the keyfob to unlock their emergency vehicles
49
Config.whitelisted_can_unlock_emergency = true
50
51
-- allow emmergency workers to lock cars only if they have entered them before (recommended to keep true)
52
Config.emergency_needs_have_entered_vehicle = true
53
54
-- Databasenames for the whitelisted jobs (emergency workers)
55
Config.job_whitelist = {
56
"police",
57
"ambulance"
58
}
59
60
-- 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)
61
Config.job_vehicles = {
62
"ambulance",
63
"fbi",
64
"fbi2",
65
"firetruk",
66
"lguard",
67
"pbus",
68
"police",
69
"police2",
70
"police3",
71
"police4",
72
"policeb",
73
"polmav",
74
"policeold1",
75
"policeold2",
76
"policet",
77
"pranger",
78
"predator",
79
"riot",
80
"riot2",
81
"sheriff",
82
"sheriff2",
83
}
84
85
86
87
---------------------------------------
88
--------Keychain (Spare Keys)----------
89
---------------------------------------
90
-- Allow players to give a spare key to other players to unlock their personal vehicles
91
Config.allow_spare_keys = true
92
93
-- Command to give another player a spare key
94
Config.give_spare_key_command = "givespare"
95
96
-- Command to check currently owned spare keys
97
Config.check_spare_keys_command = "checkspares"
98
99
-- Max distance a player can hand over a spare key to another player (in meters)
100
Config.give_spare_key_range = 5
101
102
-- Color for the car plate in the givespare menu
103
Config.menu_plate_color = "orange"
104
105
-- Color for the model name in the givespare menu
106
Config.menu_model_color = "gray"
107
108
-- Color of the other player name in the givespare menu
109
Config.menu_header_player_name = "orange"
110
111
112
113
---------------------------------------
114
---------Lockpicking Minigame----------
115
---------------------------------------
116
-- Allow players to lockpick other player's cars
117
Config.lockpick_pc_cars = true
118
119
-- Allow players to lockpick NPC cars
120
Config.lockpick_npc_cars = true
121
122
-- Allow whitelisted jobs to lockpick cars
123
Config.whitelisted_can_lockpick = true
124
125
-- Chance of breaking a lockpick on failure (0% - 100%)
126
Config.lockpick_break_chance = 20
127
128
-- Chance of setting off car alarm when lockpicking a car (0% - 100%)
129
Config.car_alarm_chance = 20
130
131
-- Time before car alarm shuts off (in seconds)
132
Config.car_alarm_duration = 60
133
134
-- Amount of extra pins when trying to lockpick player car
135
Config.increased_pins_for_pc_cars = 2
136
137
-- Maximum of bars for the lockpicking minigame (higher number = more difficult)
138
Config.max_lockpick_power = 15
139
140
-- Scale the overal difficulty of the minigame
141
Config.lockpicking_difficulty_modifier = -1
142
143
-- Distance from where the lockpicking minigame gets exited out. (in meters)
144
Config.lockpicking_range = 2
145
146
-- Allow players to lockpick vehicles that have other peds in them
147
Config.can_lockpick_with_ped_in_vehicle = true
148
149
-- Allow players to lockpick vehicles that have npcs or other players in the driver seat (recommended false)
150
Config.can_lockpick_with_ped_in_driver_seat = false
151
152
-- 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.
153
-- Setting this to false will still sync the locks between all players, but won't keep the lock the same all the time.
154
Config.use_plate_as_seed = true
155
156
-- Car classes that can't be picked
157
Config.unpickable_class = {
158
18, --Emergency
159
15, --Helicopters
160
19, --military
161
16, --planes
162
}
163
164
165
-- Amount of pins for each vehicle class
166
Config.pin_amount_per_class = {
167
4, --Compacts
168
5, --Sedans
169
5, --SUVs
170
5, --Coupes
171
5, --Muscle
172
6, --Sports Classics
173
6, --Sports
174
7, --Super
175
5, --Motorcycles
176
4, --Off-road
177
5, --Industrial
178
5, --Utility
179
4, --Vans
180
5, --Cycles
181
5, --Boats
182
6, --Helicopters
183
7, --Planes
184
6, --Service
185
8, --Emergency
186
8, --Military
187
6, --Commercial
188
8, --Trains
189
}
190
191
---------------------------------------
192
----------Lockpick Store---------------
193
---------------------------------------
194
195
-- Enable the default lockpicking store (recommended to add the lockpick item to own existing stores)
196
Config.use_lockpicking_stores = true
197
198
199
-- Location and item label
200
Config.lockpickingStores = {
201
locations = {
202
{
203
x = -678.3285,
204
y = -854.2575,
205
z = 24.09087,
206
}
207
},
208
items = {
209
{
210
item = Config.lockpick_item_name,
211
label = 'Lockpick',
212
price = 10,
213
},
214
},
215
payWithBank = true,
216
}
217
218
219
220
Copied!
Copy link