forked from Taylor-McGaw-Skyline-DEV/Sky-Extinguisher
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathclient.lua
52 lines (48 loc) · 1.38 KB
/
client.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
local modelex = Config.EX
local optionsex = {
{
name = 'fct_ext_menu',
onSelect = function()
TriggerServerEvent('fct_extinguisher:process', cache.serverId)
end,
icon = 'fa-solid fa-fire-extinguisher',
iconColor = '#e06666',
label = Translation[Config.Locale]['target_1'],
distance = 2.5,
},
}
exports.ox_target:addModel(modelex, optionsex)
RegisterNetEvent('fct_extinguisher:getnewex')
AddEventHandler('fct_extinguisher:getnewex', function()
lib.progressBar({
duration = Config.Delay,
label = Translation[Config.Locale]['getfire'],
useWhileDead = false,
canCancel = false,
disable = {
car = true,
move = true,
},
anim = {
dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@',
clip = 'machinic_loop_mechandplayer'
},
})
end)
RegisterNetEvent('fct_extinguisher:remex')
AddEventHandler('fct_extinguisher:remex', function()
lib.progressBar({
duration = Config.Delay,
label = Translation[Config.Locale]['remfire'],
useWhileDead = false,
canCancel = false,
disable = {
car = true,
move = true,
},
anim = {
dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@',
clip = 'machinic_loop_mechandplayer'
},
})
end)