forked from polisek/pls_jobsystem
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.lua
64 lines (56 loc) · 1.52 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
local IS_SERVER = IsDuplicityVersion()
Config = {}
Config.DefaultDataJob = {
label = "", -- STRING
job = "", -- STRING
craftings = {}, -- TABLE
type = "",
grades = {},
typejob = ""
}
Config.DEFAULT_ANIM = "hack_loop"
Config.DEFAULT_ANIM_DIC = "mp_prison_break"
Config.BlacklistedStrings = {
-- "weapon", "weed", "meth", "coke", "ammo", "gun", "pistol", "drug", "c4", "WEAPON", "AMMO", "at_", "keycard", "gun", "money", "black_money"
}
Config.jobTypeList = {{
value = 'leo',
label = 'Policiais (leo)'
}, {
value = 'ems',
label = 'Paramédicos (ems)'
}, {
value = 'mechanic',
label = 'Mecânicos (mechanic)'
}, {
value = 'realestate',
label = 'Imobiliária (realestate)'
}, {
value = 'Nenhum',
label = 'Sem tipo'
}}
Config.DirectoryToInventoryImages = "nui://ox_inventory/web/images/"
if not IS_SERVER then
function openBossmenu(jobtype)
-- print("Bossmenu open")
exports.qbx_management:OpenBossMenu(jobtype)
end
function SendDispatch(coords, jobLabel)
-- YOU DISPATCH
-- cache.ped
local PoliceJobs = {'police'}
exports["ps-dispatch"]:CustomAlert({
coords = coords,
job = PoliceJobs,
message = 'Alarme Acionado!',
dispatchCode = '10-??',
firstStreet = coords,
description = 'Alarme acionado de ' .. jobLabel,
radius = 0,
sprite = 161,
color = 1,
scale = 1.0,
length = 3
})
end
end