-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathConfig.lua
More file actions
82 lines (62 loc) · 1.94 KB
/
Config.lua
File metadata and controls
82 lines (62 loc) · 1.94 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Config = {}
Config.Debug = false
-- To edit/create garages
Config.CommandGroup = 'admin'
-- Start defaultGarages.lua
Config.DefaultGarages = true
Config.ClearTimeBlip = 1000 * 120 -- 2 mins
Config.TargetDistance = 10.0
Config.BlipDefault = {
stackBlips = true,
impound = { label = 'Impound', sprite = 473, color = 17, size = 0.5 },
garage = { label = 'Garage', sprite = 50, color = 2, size = 0.5 },
custom = { label = 'Custom Garage', sprite = 50, color = 0, size = 0.5 },
rent = { label = 'Rent A Car', sprite = 474, color = 0, size = 0.5 },
}
Config.PedAnims = {
anims = true,
list = { "WORLD_HUMAN_AA_SMOKE", "WORLD_HUMAN_AA_COFFEE", "WORLD_HUMAN_CLIPBOARD", "WORLD_HUMAN_MUSICIAN", "WORLD_HUMAN_STUPOR" }
}
-- ox Target Based job and grade min grade
Config.TargetImpound = {
-- job -- min grade
['police'] = 0,
}
----------------------------------------------------------------------
-- on Vehicles delete or /dv
Config.ImpoundVehicledelete = true
-- Default impounds names
Config.DefaultImpound = {
car = 'Impound Car',
air = 'Impound Air',
boat = 'Impound Boat',
price = 50,
note = 'Vehicle seized by the municipal service'
}
Config.Notify = function(data)
lib.notify({
title = data.title,
description = data.description,
position = data.position or 'bottom-right',
type = data.type or 'warning',
icon = data.icon or 'car',
duration = data.duration or 3000,
showDuration = true,
})
end
Config.Textui = {
Showtext = function(text, ...)
lib.showTextUI(text, ...)
end,
HideText = function()
lib.hideTextUI()
end
}
---@param eventName string
---@param funct function
function RegisterSafeEvent(eventName, funct)
RegisterNetEvent(eventName, function(...)
if GetInvokingResource() ~= nil then return end
funct(...)
end)
end