-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.lua
33 lines (31 loc) · 1.01 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
ESX = exports["es_extended"]:getSharedObject()
RegisterNetEvent('amg_combinator:combinatorprog')
AddEventHandler('amg_combinator:combinatorprog', function()
if Config.Progressbar == 'ox_lib' then
lib.progressCircle({
duration = Config.KombiDauer,
label = Config.KombiText,
position = Config.KombiPosition,
useWhileDead = false,
canCancel = false,
disable = {
car = true,
},
anim = {
dict = 'amb@prop_human_parking_meter@male@base',
clip = 'base'
},
})
elseif Config.Progressbar = 'esx' then
exports["esx_progressbar"]:Progressbar(Config.KombiText, Config.KombiDauer,{
FreezePlayer = true,
animation ={
type = "anim",
dict = "anim@mp_player_intmenu@key_fob@",
lib ="fob_click"
},
onFinish = function()
-- Nothing
end})
end
end)