SQZ Scripts
Search…
sqz_Unijob
Script for creating jobs just by adding them to the config and database! Add your job now!

Get it now !

Instalation

  1. 1.
    Put ensure sqz_unijob to your server.cfg (or any start cfg file) and put the resource named sqz_unijob -maybe you will have to rename it- into your resources folder.
  2. 2.
    Run the SQL file provided with the script
  3. 3.
    Obviously configure your config, locales 😜

Creating a new job

  1. 1.
    Put the job to the jobs & job_grades to your database as usual
  2. 2.
    Insert the society to the addon_account to your database in format: society_jobname
  3. 3.
    Duplicate the whole table Config.Jobs.sandy_mechanic , change the sandy_mechanic to your job name and configure its properties
You do NOT NEED to put the job into the addon_inventory or datastore tables in your databases, sqz_unijob uses its own system.

Exports

- Get Player Handcuff state

  • exports['sqz_unijob']:IsHandcuffed() - returns true/false
    • local isPlayerHandcuffed = exports['sqz_unijob']:IsHandcuffed()
  • LocalPlayer.state.handcuffed - again, returns true/false/nil
    • local isPlayerHandcuffed = LocalPlayer.state.handcuffed

Config Files

Config (server)
Config (client)
Locales
client_edit
server_edit
1
SConfig = {}
2
3
SConfig.Webhooks = {
4
['sandy_mechanic'] = 'https://discord.com/api/webhooks/851478685764157520/-QeBCcYOHLRPO0gFAqd71SH_QEg-cQ2tNXHy8Enb6QdFF4aYe-COLaDGleooSbOEWzJJ', -- List of jobs that should use the webhook, remove it if you do not want to use the webhook for Discord
5
}
Copied!
1
Config = {}
2
Config.Jobs = {}
3
4
Config.DrawDistance = 5.0 -- Distance in GTA units you will see the markers
5
Config.DrawTextDistance = 2.0 -- Distance in GTA units from which you will see the DrawTex3D (if is enabled)
6
Config.Draw3DText = true -- If true, a 3D floating text will be displayed above the marker
7
Config.Locale = 'en'
8
Config.UseAnimations = true -- Enables/Diasbles animations for fixing vehicle, writing bills and etc. ...
9
Config.UseMythic_Progressbar = true -- Enables/Diasbles opening Mythic progress bar while doing an animation
10
Config.NeedItemCuffs = false -- Enables/Diasbles requirement of handcuffs as item
11
Config.UseLegacyFuel = false -- If true, your vehicle after taking it from garage will have 100% fuel (requires LegacyFuel script)
12
Config.ShowImpoundNotification = true -- Choose, if you want to play an animation while impounding a vehicle
13
Config.MenuAlign = 'top-left' -- Position of ESX Menu
14
Config.CuffItemName = 'cuffs' -- The item name in database you need to have in your inventory to bee able to cuff somebody
15
Config.DiscordLoggingActionsMenu = true -- If the actions from F6 menu should be logged to the Discord
16
Config.SocietyOwnedVehicles = false -- If true, vehicles will be fetched from the databae, make sure to have database:
17
18
--[[
19
`plate`, `vehicle`, `stored`, `type` (air | car)
20
]]
21
22
23
-- Custom markers
24
Config.CustomMarkerDistance = 2.0 -- Distance in GTA units you need to be close to the marker to be drawn
25
Config.DefaultMarker = { -- The marker that will be shown when you are not close enough
26
Size = {x = 0.7, y = 0.7, z = 0.7}, -- Size of the marke
27
Color = {r = 255, g = 0, b = 0}, -- The color of the marker
28
BouncingMarker = false, -- If the marker should go UP and Down
29
RotatingMarker = true, -- If the marker should rotate
30
Marker = 21, -- Type of the marker
31
}
32
33
Config.BossGrades = { -- Allowed grades to open the bossmenu
34
['boss'] = true
35
}
36
37
Config.MotionTexts = { -- Texts that will be shown in the motion texts
38
['Armory'] = '[E] Armory',
39
['Vehicles'] = '[E] Vehicles',
40
['Cloakroom'] = '[E] Cloakroom',
41
['Craft'] = '[E] Crafting',
42
['Selling'] = '[E] Selling',
43
['BossActions'] = '[E] Boss Actions',
44
['VehicleDeleter'] = '[E] Park Vehicle',
45
['aircrafts_open'] = '[E] Aircrafts'
46
}
47
48
-- Custom events (edit in case you use any custom events)
49
Config.customEvents = {
50
['esx_billing:sendBill'] = 'esx_billing:sendBill', -- You can change the event if you for example use anticheats/you have editted event like esx_billing:sendSuperSecretEventSquizerBill
51
['esx_society:openBossMenu'] = 'esx_society:openBossMenu',
52
['esx:setJob'] = 'esx:setJob',
53
['esx_ambulancejob:revive'] = 'esx_ambulancejob:revive',
54
['mythic_progressbar:client:progress'] = 'mythic_progbar:client:progress',
55
['esx:getSharedObject'] = 'esx:getSharedObject'
56
}
57
58
59
Config.NonJobActions = { -- With these jobs you will be available to collect of other jobs without the job needed
60
Enabled = false, -- If the non job actions should be enabled
61
Jobs = {
62
['sandy_mechanic'] = true -- Allowed jobs that are written in the Config.Jobs
63
},
64
AllowedActions = {
65
['Selling'] = true, -- Marker types they are allowed, for now you can only disable these, not add any more
66
['Collecting'] = true,
67
['Craft'] = true
68
}
69
}
70
71
Config.Blips = {
72
sandy_mechanic = {
73
BlipCoords = vector3(1729.84, 3700.28, 39.38), -- Coords for the blip
74
Sprite = 104, -- Blips sprite (icon on the map)
75
Scale = 1.0, -- Size of the blip
76
Colour = 2, -- Color of the blip
77
Name = 'Sandy Mechanic' -- Name of the blip
78
}, --Lower you can add other blips, again as much as you want :-)
79
sandy_mechanic_harvesting_point = {
80
BlipCoords = vector3(-1893.0803222656,1920.0615234375,161.21453857422), -- Coords for the blip
81
Sprite = 104, -- Blips sprite (icon on the map)
82
Scale = 1.0, -- Size of the blip
83
Colour = 2, -- Color of the blip
84
Name = 'Harvesting point', -- Name of the blip
85
Jobs = { -- Remove the whole Jobs table to make the blip public or eventualy set it to Jobs = 'none'
86
['sandy_mechanic'] = true
87
}
88
}
89
}
90
91
Config.AntiDupe = {
92
Enabled = true,
93
Time = math.random(1000, 3000),
94
AnimN = 'shakeoff_1',
96
}
97
98
Config.Jobs.sandy_mechanic = { -- This is name of job you have in your database, change to setjob name whatever you want to
99
SocietyPayments = true, -- If society payments enabled, you will get pay and pay from your society
100
PercentToSociety = 90, -- The percent of money that the society will get (the remaining money will be added to player pocket)
101
NeededLockPickItem = true, -- If a player needs item for lockpinging a vehicle (if this is set to false, none of the two bellow are affected)
102
LockPickItemName = 'lockpick', -- The name of the item needed to lockpick a vehicle
103
RemoveLockPickAfterUse = true, -- If the lockpick should be removed after use
104
105
Zones = {
106
armory = {
107
Pos = vector3(1734.0327,3710.3796,34.1545), -- Postion of the marker
108
Size = {x = 0.7, y = 0.7, z = 0.7}, -- Size of the marke
109
Color = {r = 204, g = 204, b = 0}, -- The color of the marker
110
BouncingMarker = false, -- If the marker should go UP and Down
111
RotatingMarker = true, -- If the marker should rotate
112
Marker = 22, -- Type of the marker
113
Type = 'Armory',
114
BuyWeapon = true, -- This allows you to buy weapons in this Armory (if you have multiple armories and you do not want to have buy weapon in all of them, simply cahnge it to false
115
BuyWeaponGrade = 0, -- This is the least grade you must have to be allowed to buy weapons ( grade 0, 1, 2, 3, 4, 5, ... is now able to buy weapons)
116
GetWeaponGrade = 0, -- This is the least grade you must have to be able to withdraw weapons from the armory (at some servers I have see that somebody was stealing thing from armories :D ( grade 0, 1, 2, 3, 4, 5, ... is now able to witdraw weapons) (Everybody can deposit weapons)
117
GetStockGrade = 0, -- This is the least grade you must have to be able to withdraw things from the armory (at some servers I have see that somebody was stealing thing from armories :D ( grade 0, 1, 2, 3, 4, 5, ... is now able to witdraw weapons) (Everybody can deposit weapons)
118
BuyItems = true,
119
ShopItems = {
120
shared = { -- Each job grade will see these items
121
{item = 'bread', price = 3, label = 'Bread'},
122
{item = 'water', price = 2, label = 'Water'},
123
},
124
boss = { -- Only boss will see these items
125
{item = 'phone', price = 150, label = 'Phone'},
126
},
127
},
128
},
129
Cloakroom = {
130
Pos = vector3(1743.6895,3712.1201,34.1678), -- This is the place where you can change your saved clothes (you have to buy then in clotheshop)
131
Size = {x = 0.7, y = 0.7, z = 0.7},
132
Color = {r = 204, g = 204, b = 0},
133
Marker = 22,
134
Type = 'Cloakroom',
135
},
136
Crafting = {
137
Pos = vector3(1743.176,3702.291,34.1996), -- This is the place where you can change your saved clothes (you have to buy then in clotheshop)
138
Size = {x = 0.7, y = 0.7, z = 0.7},
139
Color = {r = 204, g = 204, b = 0},
140
Marker = 22,
141
Type = 'Craft',
142
Recipes = {
143
[1] = {
144
RequiredItems = { -- Bellow will be listed items a player will need for Collecting
145
{itemName = "wrench", label = 'Wrench' , count = 1, removeItem = true}, -- itemName is the name from database, removeItem will remove the item from player inventory after fininished collecting
146
{itemName = "adhesive_tape", label = 'Adhesive Tape', count = 2, removeItem = true}
147
},
148
GiveItem = "fixkit", -- The item a player should get when he is done
149
GiveItemCount = 1, -- The count of a item a player should get when he is done
150
}
151
},
152
Animations = { -- Animation properties are listed bellow
153
AnimDict = "[email protected]", -- The animation dictionary for Collecting animation
154
AnimName = "fixing_a_ped", -- The animation name for Collectiong anitamtion
155
Duration = 4000, -- Set to 0 to disable animations
156
blendInSpeed = 8.0,
157
blendOutSpeed = 8.0,
158
AnimFlag = 1,
159
MythicProggbarLabel = "You are crafting a fixkit" -- The label which will be shown in the mythic progres bar
160
}
161
},
162
163
Selling = {
164
Pos = vector3(1732.0366,3716.2947,34.1135), -- This is the place where you can sell the stuff
165
Size = {x = 0.7, y = 0.7, z = 0.7},
166
Color = {r = 204, g = 204, b = 0},
167
Marker = 22,
168
Type = 'Selling',
169
Item = "wrench", -- The name of sold item
170
MinCash = 100, -- Min cash a player will get for selling items
171
MaxCash = 500, -- Max cash a player will get for selling item
172
Delay = 1000 -- The delay in which the item will be sold
173
},
174
BossActions = {
175
Pos = vector3(1737.7152,3709.5378,34.1359), -- This is the place where you open BossMenu (only grade with name boss is allowed (depends on your esx_society edits)
176
Size = {x = 0.7, y = 0.7, z = 0.7},
177
Color = {r = 204, g = 204, b = 0},
178
Marker = 22,
179
Type = 'BossActions',
180
},
181
Vehicles = {
182
Pos = vector3(1723.5073,3704.897,34.1602), -- This is the spawnpoint where you see menu with vehicles which you can spawn
183
Size = {x = 0.7, y = 0.7, z = 0.7},
184
Color = {r = 204, g = 204, b = 0},
185
Marker = 36,
186
Type = 'Vehicles',
187
SpawnPoints = { -- Here you configure spawnpoints, where the vehicle will be spawned (Chcecks if the spawnpoint is clear), you can add as much as you want
188
{coords = vector3(1722.02, 3713.56, 34.22), heading = 90.0, radius = 6.0},
189
{coords = vector3(1726.88, 3716.97, 34.13), heading = 90.0, radius = 6.0}
190
}
191
},
192
VehicleDeletePoint = { -- here you add vehicle deleter points. It can delete helicopters, car, bikes, boats...
193
Pos = vector3(1728.0522,3709.8315,33.3353),
194
Size = {x = 3.5, y = 3.5, z = 1.0},
195
Color = {r = 255, g = 0, b = 0},
196
Marker = 1,
197
Type = 'VehicleDeleter',
198
},
199
HeliSpawn = { -- This is marker which opens you menu where you choose which plane you want to spawn.
200
Pos = vector3(1721.3397,3709.4692,34.2845),
201
Size = {x = 0.7, y = 0.7, z = 0.7},
202
Color = {r = 204, g = 204, b = 0},
203
Marker = 36,
204
Type = 'Aircrafts',
205
SpawnPoints = { -- Here you configure spawnpoints, where the vehicle will be spawned (Chcecks if the spawnpoint is clear), you can add as much as you want, smae as vehicles
206
{coords = vector3(1730.611,3701.3523,39.3791), heading = 287.19, radius = 6.0}
207
}
208
},
209
},
210
211
CollectPoints = { -- Places where a player can pickup an item
212
DrawDistance = 5.0, -- The distance a marker for pickup will be drawn from
213
Marker = {
214
Size = {x = 0.7, y = 0.7, z = 0.7}, -- Size of the marker
215
Color = {r = 0, g = 255, b = 255}, -- The RGB color of the marker
216
Marker = 22, -- Mrker ID
217
},
218
Animation = {
219
AnimDict = "[email protected]@[email protected]@[email protected]", -- The animation dictionary for Collecting animation
220
AnimName = "machinic_loop_mechandplayer", -- The animation name for Collectiong anitamtion
221
Duration = 1500, -- Set to 0 to disable animations
222
blendInSpeed = 8.0,
223
blendOutSpeed = 8.0,
224
AnimFlag = 1,
225
MythicProggbarLabel = "Collecting grapes" -- The label which will be shown in the mythic progres bar
226
},
227
ResetPointsTime = 5000, -- Time in mas which the locations of pickup will be reset in
228
-- It MUST be a sequenced table
229
{
230
pos = vector3(-1892.914,1920.067,161.172), -- The position of the marker
231
isUsed = false, -- Just do not touch it :)
232
getMin = 2, -- The min count a player will get
233
getMax = 4, -- The max item count a player will get
234
getItem = "grapes" -- Item a player will get
235
},
236
{
237
pos = vector3(-1901.691,1925.073,161.770),
238
isUsed = false,
239
getMin = 2,
240
getMax = 4,
241
getItem = "grapes"
242
}
243
},
244
245
DefaultClothes = {
246
ReloadSkin = 'Default clothes', -- Set to false to disallow changing clothes to previous one
247
["Work Outfit"] = {
248
JobGrades = 'all', -- You can set it to all to make it available to all the job grades
249
--[[JobGrades = {
250
["job_grade1"] = true,
251
["job_grade2"] = true
252
},]]
253
254
male = { -- Set the clothes for male peds
255
tshirt_1 = 0, tshirt_2 = 0, -- You can remove or add any lines,
256
torso_1 = 0, torso_2 = 0, -- That your skinchanger script supports
257
decals_1 = 0, decals_2 = 0,
258
arms = 0,
259
pants_1 = 0, pants_2 = 0,
260
shoes_1 = 0, shoes_2 = 0,
261
helmet_1 = 0, helmet_2 = 0,
262
chain_1 = 0, chain_2 = 0,
263
ears_1 = 0, ears_2 = 0
264
},
265
female = { -- Set the clothes for female peds
266
tshirt_1 = 0, tshirt_2 = 0,
267
torso_1 = 0, torso_2 = 0,
268
decals_1 = 0, decals_2 = 0,
269
arms = 0,
270
pants_1 = 0, pants_2 = 0,
271
shoes_1 = 0, shoes_2 = 0,
272
helmet_1 = 0, helmet_2 = 0,
273
chain_1 = 0, chain_2 = 0,
274
ears_1 = 0, ears_2 = 0
275
}
276
277
}
278
},
279
280
-- End of zones and start of authorized vehicles
281
AuthorizedVehicles = { -- Vehicles which be shown in the menu for the defined job
282
shared = { -- These vehicles will have in garage every job rank
283
{
284
model = 'flatbed', -- Vehicle spawn model
285
label = 'Flatbed', -- Vehicle menu label
286
props = {plate = 'SQZ2', modXenon = false} -- Here you can add all vehicle mods you want, documentation can be found here: https://esx-framework.github.io/es_extended/client/functions/game/setvehicleproperties/#valid-table-content
287
},
288
{
289
model = 'slamvan',
290
label = 'Slamvan',
291
props = {plate = 'SQZ1', modXenon = true} -- Here you can add all vehicle mods you want, documentation can be found here: https://esx-framework.github.io/es_extended/client/functions/game/setvehicleproperties/#valid-table-content
292
}
293
},
294
boss = { -- These vehicles + Shared Vehicles will have Boss rank
295
{
296
model = 'adder',
297
label = 'Adder',
298
props = {plate = 'SQZ', modXenon = false} -- Here you can add all vehicle mods you want, documentation can be found here: https://esx-framework.github.io/es_extended/client/functions/game/setvehicleproperties/#valid-table-content
299
}
300
}
301
},
302
-- End of Authorized vehicles and start of Allowed Actions
303
AllowedActions = {
304
Billing = true, -- Adds "Billing" to the interaction menu, the society is society_*player_job_name* (players job is police -> society is society_police)
305
HasBodyActions = true, -- Adds Body Action such as Cuffing, Dragging, Taking out of vehicle, Putting in vehicle ...
306
HasMechanicActions = true, -- This allows vehicle interaction in F6 menu
307
CanRevive = false, -- This adds revive possibility to F6 menu
308
CanWash = true, -- This manages if the boss can wash dirty money in BossMenu
309
Deposit = true, -- If the boss will be able to deposit
310
Grades = true, -- If the boss will have access to grades menu
311
Withdraw = true, -- If the boss will have access to withdraw
312
Employees = true, -- If the boss will have access to the employyess menu
313
},
314
-- End of Authorized actions and start of authorized Weapons for the job
315
AuthorizedWeapons = { -- There you configure weapons that can a job have
316
shared = { -- These weapon can be bought by all the players in the job
317
{weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},
318
{weapon = 'WEAPON_KNUCKLE', price = 800},
319
},
320
boss = { -- This weapon can be bought only of the boss of the current job
321
{weapon = 'WEAPON_KNIFE', price = 1500},
322
}
323
},
324
-- End of authorized Weapons and Start of authorized AirCrafts
325
AuthorizedAirCrafts = {
326
shared = { -- These vehicles will have in garage every job rank
327
}, -- These are empty, so you need to define for each rank or simply add vehicles to shared
328
boss = { -- These vehicles + Shared Vehicles will have Boss rank
329
{
330
model = 'maverick',
331
label = 'Maverick',
332
props = {plate = 'SQZ1', modXenon = true} -- Here you can add all vehicle mods you want, documentation can be found here: https://esx-framework.github.io/es_extended/client/functions/game/setvehicleproperties/#valid-table-content
333
}
334
}
335
},
336
}
Copied!
1
Locales['en'] = {
2
['player_clothes'] = 'Your Clothes',
3
['cloakroom_open'] = '[E] CloakRoom',
4
['armory_open'] = '[E] Armory',
5
['bossmenu_open'] = '[E] BossMenu',
6
['vehicles_open'] = '[E] VehicleSpawner',
7
['vehicles_open_park'] = '[E] Park Vehicle',
8
['loaded_outfit'] = 'Your have been dreesed to your outfit',
9
['job_actions_menu'] = 'Job Actions',
10
['billing'] = 'Billing',
11
['billing_amount'] = 'Billing Amount',
12
['billing_label'] = 'Billing Label',
13
['billing_label_empty'] = 'Billing label can not be empty',
14
['billing_ammount_empty'] = 'Billing value can not be empty',
15
['bill_sent'] = 'You have sent the bill',
16
['no_players_near'] = 'There is/are no player(s) near',
17
['no_cuffs'] = 'You do not have HandCuffs',
18
['received_cuffs'] = 'You have uncuffed player and got HandCuffs',
19
['un_hadncuff'] = 'UnHandCuff person',
20
['fix_vehicle'] = 'Repair vehicle',
21
['clean_vehicle'] = 'Clean Vehicle',
22
['impound'] = 'Impound vehicle',
23
['vehicle_impounded'] = 'Vehicle Impounded',
24
['must_seat_driver'] = 'You must be a driver in order to impound the vehicle',
25
['must_near'] = 'You must be near a vehicle in order to impound the vehicle',
26
['dep_vehicle'] = 'Attach vehicle',
27
['lock_pick_vehicle'] = 'LockPick vehicle',
28
['vehicle_interaction'] = 'Vehicle Interaction',
29
['not_in_veh'] = 'You can not be in a vehicle',
30
['vehicle_opened'] = 'Vehicle has been unlocked',
31
['revive'] = 'Revive',
32
['unlocking_vehicle'] = 'Unlocking Vehicle',
33
['repaired_veh'] = 'Vehicle has been repaired',
34
['veh_clean'] = 'Vehicle has been cleared',
35
['cleaning_vehicle'] = 'CLEANING A VEHICLE',
36
['repairing_vehicle'] = 'REPAIRING VEHICLE',
37
['revive'] = 'Revive a person',
38
['no_veh_near'] = 'There is no vehicle near',
39
['veh_attached'] = 'Vehicle attached',
40
['can_not_self_veh'] = 'You can not attach your own vehicle',
41
['vehicle_blocked'] = 'There is no free spawnpoint for vehicles',
42
['armory'] = 'Armory',
43
['buy_weapon'] = 'Buy Weapon',
44
['get_weapon'] = 'Get weapon',
45
['get_stock'] = 'Get stock',
46
['put_weapon'] = 'Put weapon',
47
['deposit_object'] = 'Deposit stock',
48
['armory_free'] = 'free',
49
['armory_item'] = '$%s',
50
['citizen_interaction'] = 'Citizen Interaction',
51
['armory_weapontitle'] = 'armory - Buy weapon',
52
['armory_weapontitle'] = 'armory - Buy weapon',
53
['armory_componenttitle'] = 'armory - Weapon attatchments',
54
['armory_bought'] = 'you bought an ~y~%s~s~ for ~g~$%s~s~',
55
['armory_money'] = 'you cannot afford that weapon',
56
['armory_hascomponent'] = 'you have that attatchment equiped!',
57
['armory_owned'] = 'owned',
58
['quantity_invalid'] = 'Invalid quantity',
59
['stock'] = 'Stock',
60
['quantity'] = 'Quantity',
61
['put_weapon_menu'] = 'Deposit weapon',
62
['vehicle_menu'] = 'Vehicle Menu',
63
['get_weapon_menu'] = 'Get weapon',
64
['helicopter_menu'] = 'Helicopter menu',
65
['aircrafts_open'] = '[E] AirCrafts',
66
['search'] = 'search',
67
['being_searched'] = 'you are being ~y~searched~s~ by the ~b~Police~s~',
68
['guns_label'] = '--- Guns ---',
69
['inventory_label'] = '--- Inventory ---',
70
['license_label'] = ' --- Licenses ---',
71
['confiscate'] = 'confiscate %s',
72
['confiscate_weapon'] = 'confiscate %s with %s bullets',
73
['confiscate_inv'] = 'confiscate %sx %s',
74
['confiscate_dirty'] = 'confiscate dirty money: <span style="color:red;">$%s</span>',
75
['you_confiscated'] = 'you confiscated ~y~%sx~s~ ~b~%s~s~ from ~b~%s~s~',
76
['got_confiscated'] = '~y~%sx~s~ ~b~%s~s~ were confiscated by ~y~%s~s~',
77
['you_confiscated_account'] = 'you confiscated ~g~$%s~s~ (%s) from ~b~%s~s~',
78
['got_confiscated_account'] = '~g~$%s~s~ (%s) was confiscated by ~y~%s~s~',
79
['you_confiscated_weapon'] = 'you confiscated ~b~%s~s~ from ~b~%s~s~ with ~o~%s~s~ bullets',
80
['got_confiscated_weapon'] = 'your ~b~%s~s~ with ~o~%s~s~ bullets was confiscated by ~y~%s~s~',
81
['open_bossmenu'] = 'press ~INPUT_CONTEXT~ to open the menu',
82
['have_withdrawn'] = 'you have withdrawn ~y~%sx~s~ ~b~%s~s~',
83
['have_deposited'] = 'you have deposited ~y~%sx~s~ ~b~%s~s~',
84
['quantity'] = 'quantity',
85
['inventory'] = 'inventory',
86
['handcuff'] = 'handcuff',
87
['drag'] = 'drag',
88
['put_in_vehicle'] = 'put in vehicle',
89
['out_the_vehicle'] = 'put out off the vehicle',
90
['buy_items'] = 'Buy Items',
91
['shop_item'] = '$%s',
92
['shop_confirm'] = 'buy %sx %s for $%s?',
93
['job_shop'] = 'Job Shop',
94
['no'] = 'No',
95
['yes'] = 'Yes',
96
['bought'] = 'you just bought ~y~%sx~s~ ~b~%s~s~ for ~r~$%s~s~',
97
['not_enough'] = 'you do not have ~r~enough~s~ money, you\'re ~y~missing~s~ ~r~$%s~s~!',
98
['not_enough_society'] = 'your society does not have ~r~enough~s~ money, it is missing ~y~missing~s~ ~r~$%s~s~!',
99
['player_cannot_hold'] = 'you do ~r~not~s~ have enough ~y~free space~s~ in your inventory!',
100
['searching_player'] = 'You are searching player!',
101
['stopped_searching_player'] = 'You have stopped searching a player',
102
['action_not_possible'] = 'Action is not possible !',
103
['took_from'] = 'This player has taken **%s** in count of **%s x** from the armory and his job is %s!',
104
['deposit_to'] = 'This player has deposited **%s** in count of **%s x** to the armory and his job is %s!',
105
['alert_mechanic'] = 'Someone needs your help, Lets GO!',
106
['alert_fib'] = 'Something bad had happened. Lets check it! Be fast',
107
['not_hands_up'] = 'Searched player does not have hands up/is not handcuffed or is not dead',
108
['proggbar_writing_bill'] = 'YOU ARE WRITING A BILL',
109
['no_more_account_money'] = "You do not have enough %s money, you must have at least %s to deposit.",
110
['e_to_pickup'] = "~INPUT_PICKUP~ Pickup",
111
['can_not_carry'] = "You can not carry this item.",
112
['crafting'] = "[E] Crafting",
113
['not_enough_items'] = "You do not have enough items for crafting",
114
['craft_items'] = "Player crafted an item %s in amount of %s and his location is %s, name is: %s, identifier %s",
115
['already_selling'] = "You are already selling and item",
116
['all_sold'] = 'You have sold all you have had on you',
117
['earned_money'] = "You have earned %squot;,
118
['earned_money_society'] = "Your society has earned %squot;,
119
['started_selling'] = "You have started selling an item.",
120
['armory_opened'] = 'This vault is already opened',
121
['already_searched'] = 'This player is already searched',
122
['no_lockpick'] = 'You do not have lockpick item',
123
['selling_point'] = 'Sell',
124
['preparing'] = 'You are preparing',
125
['not_your_vehicle'] = 'This vehicle is not yours'
126
}
127
128
Locales['cs'] = {
129
['player_clothes'] = 'Tvoje oblecnei',
130
['cloakroom_open'] = '[E] Satna',
131
['armory_open'] = '[E] Sklad',
132
['bossmenu_open'] = '[E] BossMenu',
133
['vehicles_open'] = '[E] Vzit vozidlo',
134
['vehicles_open_park'] = '[E] Ulozit vozidlo',
135
['loaded_outfit'] = 'Oblekl jsi se do sveho outfitu',
136
['job_actions_menu'] = 'Akce prace',
137
['billing'] = 'Fakturace',
138
['billing_amount'] = 'Castka faktury',
139
['billing_label'] = 'Fakturacni stitek',
140
['billing_label_empty'] = 'Fakturacni stitek nemuze byt prazdny',
141
['billing_ammount_empty'] = 'Castka faktury nemuze byt prazdna',
142
['bill_sent'] = 'Poslal jsi fakturu',
143
['no_players_near'] = 'Není poblíž/Nejsou poblíž zadni hraci',
144
['no_cuffs'] = 'Nemas pouta',
145
['received_cuffs'] = 'Odpoutal jsi hrace a dostal pouta',
146
['un_hadncuff'] = 'Odpoutat osobu',
147
['fix_vehicle'] = 'Opravit vozidlo',
148
['clean_vehicle'] = 'Vycistit vozidlo',
149
['impound'] = 'Odtahnout vozidlo',
150
['vehicle_impounded'] = 'Vozidlo odtazeno',
151
['must_seat_driver'] = 'Abyste mohli zabavit vozidlo, musite byt ridic',
152
['must_near'] = 'Abyste mohli vozidlo zabavit, musite byt v blizkosti vozidla',
153
['dep_vehicle'] = 'Pripojit vozidlo',
154
['lock_pick_vehicle'] = 'Vypacit vozidlo',
155
['vehicle_interaction'] = 'Interakce s vozidlem',
156
['not_in_veh'] = 'Nesmis byt ve vozidle',
157
['vehicle_opened'] = 'Vozidlo bylo odemceno',
158
['revive'] = 'Ozivit',
159
['unlocking_vehicle'] = 'Odemikani vozidla',
160
['repaired_veh'] = 'Vozidlo bylo opraveno',
161
['veh_clean'] = 'Vozidlo bylo vycisteno',
162
['cleaning_vehicle'] = 'PROBIHA CISTENI VOZIDLA',
163
['repairing_vehicle'] = 'PROBIHA OPRAVA VOZIDLA',
164
['revive'] = 'Ozivit osobu',
165
['no_veh_near'] = 'Pobliz neni zadne vozidlo',
166
['veh_attached'] = 'Vozidlo pripojeno',
167
['can_not_self_veh'] = 'Nemuzes pripojit sve vozidlo',
168
['vehicle_blocked'] = 'Neni zde volne misto pro spawn vozidla',
169
['armory'] = 'Zbrojnice',
170
['buy_weapon'] = 'Koupit zbran',
171
['get_weapon'] = 'Vzit zbran',
172
['get_stock'] = 'Vzit predmet',
173
['put_weapon'] = 'Vlozit zbran',
174
['deposit_object'] = 'Vlozit predmet',
175
['armory_free'] = 'volné',
176
['armory_item'] = '$%s',
177
['citizen_interaction'] = 'Interakce s obcany',
178
['armory_weapontitle'] = 'Zbrojnice - Koupit zbran',
179
['armory_weapontitle'] = 'Zbrojnice - Koupit zbran',
180
['armory_componenttitle'] = 'Zbrojnice - Doplnky na zbrane',
181
['armory_bought'] = 'Koupil jsi ~y~%s~s~ za ~g~$%s~s~',
182
['armory_money'] = 'Tuto zbran si nemuzes dovolit',
183
['armory_hascomponent'] = 'Doplnek jiz mate nasazen!',
184
['armory_owned'] = 'Vlastneno',
185
['quantity_invalid'] = 'Neplatne mnozstvi',
186
['stock'] = 'Sklad',
187
['quantity'] = 'Mnozstvi',
188
['put_weapon_menu'] = 'Vlozit zbran',
189
['vehicle_menu'] = 'Menu vozidla',
190
['get_weapon_menu'] = 'Ziskat zbran',
191
['helicopter_menu'] = 'Menu vrtulníku',
192
['aircrafts_open'] = '[E] Letadla',
193
['search'] = 'Prohledat',
194
['being_searched'] = 'Prave jsi ~y~prohledavan~s~ ~b~PD/SD~s~',
195
['guns_label'] = '--- Zbrane ---',
196
['inventory_label'] = '--- Inventar ---',
197
['license_label'] = ' --- Licence ---',
198
['confiscate'] = 'Zabaveno %s',
199
['confiscate_weapon'] = 'Zabaveno %s s %s Naboji',
200
['confiscate_inv'] = 'Zabaveno %sx %s',
201
['confiscate_dirty'] = 'Zabaveny spinave penize: <span style="color:red;">$%s</span>',
202
['you_confiscated'] = 'Zabavil jsi ~y~%sx~s~ ~b~%s~s~ od ~b~%s~s~',
203
['got_confiscated'] = '~y~%sx~s~ ~b~%s~s~ bylo zabaveno ~y~%s~s~',
204
['you_confiscated_account'] = 'Zabavil jsi ~g~$%s~s~ (%s) od ~b~%s~s~',
205
['got_confiscated_account'] = '~g~$%s~s~ (%s) bylo zabaveno ~y~%s~s~',
206
['you_confiscated_weapon'] = 'Zabavil jsi ~b~%s~s~ od ~b~%s~s~ s ~o~%s~s~ naboji',
207
['got_confiscated_weapon'] = 'Tvoje ~b~%s~s~ s ~o~%s~s~ naboji byla ukradena ~y~%s~s~',
208
['open_bossmenu'] = 'Zmackni ~INPUT_CONTEXT~ pro otevreni menu',
209
['have_withdrawn'] = 'Vybral jsi ~y~%sx~s~ ~b~%s~s~',
210
['have_deposited'] = 'Vlozil jsi ~y~%sx~s~ ~b~%s~s~',
211
['quantity'] = 'Mnozstvi',
212
['inventory'] = 'Inventar',
213
['handcuff'] = 'Pouta',
214
['drag'] = 'Vzit',
215
['put_in_vehicle'] = 'Vlozit do vozidla',
216
['out_the_vehicle'] = 'Vytahnout z vozidla',
217
['buy_items'] = 'Koupit polozku',
218
['shop_item'] = '$%s',
219
['shop_confirm'] = 'Koupit %sx %s za $%s?',
220
['job_shop'] = 'Job Shop',
221
['no'] = 'Ne',
222
['yes'] = 'Ano',
223
['bought'] = 'Prave jsi koupil ~y~%sx~s~ ~b~%s~s~ za ~r~$%s~s~',
224
['not_enough'] = 'Nemas ~r~dostatek~s~ penez, ~y~chybi ti~s~ ~r~$%s~s~!',
225
['player_cannot_hold'] = 'Mas ~r~nemas~s~ dostatek ~y~volneho mista~s~ ve svem inventari!',
226
['searching_player'] = 'Prohledavas hrace!',
227
['stopped_searching_player'] = 'Prestal jsi prohledavat osobu',
228
['action_not_possible'] = 'Akce neni mozna !',
229
['took_from'] = 'Tento hrac vzal **%s** v poctu **%s x** do zbrojnice a jeho ukolem je %s!',
230
['deposit_to'] = 'Tento hrac vlozil **%s** v poctu **%s x** do zbrojnice a jeho ukolem je %s!',
231
['alert_mechanic'] = 'Nekdo potrebuje tvou pomoc, Pojdme!',
232
['alert_fib'] = 'Stalo se neco spatneho. Bez to rychle zkontrolovat',
233
['not_hands_up'] = 'Prohledavany hrac nema ruce nahore/ neni spoutany, nebo omraceny',
234
['proggbar_writing_bill'] = 'VYPISUJES UCET',
235
['no_more_account_money'] = "Nemas dostatek %s penez, musite mit alespon %s ke vkladu.",
236
['e_to_pickup'] = "~INPUT_PICKUP~ Zvednout",
237
['can_not_carry'] = "Nemuzes vzit tuto polozku.",
238
['crafting'] = "[E] Vyroba",
239
['not_enough_items'] = "Nemas dostatek polozek na vyrobu",
240
['craft_items'] = "Hrac vytvoril polozku %s v hodnote %s jeji lokace je %s, jmeno je: %s, identifikátor %s",
241
['already_selling'] = "Jiz prodavate zbozi",
242
['all_sold'] = 'Jiz jsi prodal vse, co mas u sebe',
243
['earned_money'] = "Vydelal jsi %squot;,
244
['earned_money_society'] = "Tvoje firma vydělala %squot;,
245
['started_selling'] = "Zacal jsi prodavat item.",
246
['armory_opened'] = 'Tento trezor je jiz otevren',
247
['already_searched'] = 'Tento hrac byl jiz prohledan',
248
['not_enough_society'] = 'tvoje firma nemá ~r~dost~s~ penez, ~y~chybí~s~ jí ~r~$%s~s~!',
249
['no_lockpick'] = 'Nemáš lockpick',
250
['selling_point'] = 'Prodávat',
251
['preparing'] = 'Pripravujes se',
252
['not_your_vehicle'] = 'Toto není tvoje vozidlo'
253
}
Copied!
1
RegisterNetEvent('sqz_unijob:sendClientNotify')
2
AddEventHandler('sqz_unijob:sendClientNotify', function(notify_text)
3
ESX.ShowNotification(notify_text)
4
-- Here you can replace the notification to your custom
5
end)
6
7
function DrawText3Ds(pos, text)
8
local onScreen,_x,_y=World3dToScreen2d(pos.x,pos.y,pos.z + 0.4)
9
local px,py,pz=table.unpack(GetGameplayCamCoords())
10
11
SetTextScale(0.5, 0.35)
12
SetTextFont(4)
13
SetTextProportional(1)
14
SetTextColour(255, 255, 255, 215)
15
SetTextEntry("STRING")
16
SetTextCentre(1)
17
AddTextComponentString(text)
18
DrawText(_x,_y)
19
local factor = (string.len(text)) / 200
20
DrawRect(_x,_y+0.0105, 0.003+ factor, 0.03, 0, 0, 0, 200)
21
end
22
23
function DrawScriptMarker(type, pos, size, color)
24
DrawMarker(type, pos, 0, 0, 0, 0, 0, 0, size.x, size.y, size.z, color.r, color.g, color.b, color.a, false, true, 2, false, nil, nil, false)
25
end
26
27
-- KeyMapping, you can let it be as it is
28
RegisterKeyMapping('epressed', 'E pressed', 'keyboard', 'e')
29
RegisterKeyMapping('jobactions', 'Job Actions', 'keyboard', 'f6')
Copied!
1
TriggerEvent('esx_phone:registerNumber', 'fib', _U('alert_fib'), true, true) -- Just in case you want to have the job in phone Deffault Contacts
2
3
RegisterNetEvent('sqz_unijob:Server:CanPlayerCarryItem')
4
AddEventHandler('sqz_unijob:Server:CanPlayerCarryItem', function(callback, playerId, itemName, count)
5
6
-- Here you can add check if the player can carry item -> If you use for example item.limit system
7
-- If you do not how, check the docs: docs.squizer.cz
8
local xPlayer = ESX.GetPlayerFromId(playerId)
9
10
if xPlayer.canCarryItem(itemName, count) then
11
callback(true)
12
else
13
TriggerEvent('sqz_unijob:Server:ShowNotification', playerId, _U('can_not_carry'))
14
callback(false)
15
end
16
17
end)
18
19
RegisterNetEvent('sqz_unijob:Server:ShowNotification')
20
AddEventHandler('sqz_unijob:Server:ShowNotification', function(playerId, message)
21
22
local xPlayer = ESX.GetPlayerFromId(playerId)
23
xPlayer.showNotification(message)
24
25
end)
Copied!

Common Issues

  • If you get error when depositing money, make sure that the society is in the database in table addon_account
  • Getting error when taking items from the storage/buing items. It seems you are on version of es_extended that does not support xPlayer.canCarryItem and you must replace the event in the server/edit.lua to the one bellow
  • If you are getting error, make sure your es_extended version supports xPlayer.showNotification, otherwise you must replace again an event in the server/edit.lua
  • nil ESX it seems that you have changed events by anticheat so make sure to change them in your config files of the script
  • attempt to call a nil value (field 'showNotification') - Replace Notification event in the server/edit.lua to one provided bellow.
  • If search does not exist work, disable mythic probgress bar config option, because you do not use that script
carryItem
notification
1
RegisterNetEvent('sqz_unijob:Server:CanPlayerCarryItem')
2
AddEventHandler('sqz_unijob:Server:CanPlayerCarryItem', function(callback, playerId, itemName, count)
3
local xPlayer = ESX.GetPlayerFromId(playerId)
4
local xItem = xPlayer.getInventoryItem(itemName)
5
6
if xItem.limit == -1 or (xItem.count + tonumber(count)) <= xItem.limit then
7
callback(true)
8
else
9
TriggerEvent('sqz_unijob:Server:ShowNotification', playerId, _U('can_not_carry'))
10
callback(false)
11
end
12
end)
Copied!
1
RegisterNetEvent('sqz_unijob:Server:ShowNotification')
2
AddEventHandler('sqz_unijob:Server:ShowNotification', function(playerId, message)
3
4
TriggerClientEvent('esx:showNotification', playerId, message)
5
6
end)
Copied!