-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathconfig.lua
More file actions
50 lines (47 loc) · 1.29 KB
/
config.lua
File metadata and controls
50 lines (47 loc) · 1.29 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
Config = {}
Config.TextState = false
Config.CurrentLabel = nil
Config.DefaultTypeDelay = 1500 -- 1.5 Seconds
Config.EnableDebugLine = false
ShownNoti = false
-- New Ox Target Option --
Config.OxTargetEntities = false
function ShowText(label, state, options)
if state == TextState and label == CurrentLabel then
return
end
TextState = state
CurrentLabel = label
if state then
lib.showTextUI(label)
if not ShownNoti and #options > 1 then
local text = 'USE SCROLL-WHEEL FOR MORE OPTIONS'
local time = 4000
local icon = 'arrow-down'
lib.notify({
id = 'interaction',
title = 'Envi-Interact',
description = text,
position = 'top-right',
duration = time,
style = {
backgroundColor = '#141517',
color = '#C1C2C5',
['.description'] = {
color = '#909296'
}
},
icon = icon,
iconColor = '#A020F0'
})
ShownNoti = true
end
else
lib.hideTextUI()
ShownNoti = false
CurrentLabel = nil
end
end
function HideText()
lib.hideTextUI()
end