-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.lua
49 lines (35 loc) · 1.65 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
Config = {
AlwaysDisplayRadar = false, -- Radar will be turned off when not in a vehicle
--Forth Pill function
DisplayId = false, -- Forth pill displays users id
DisplayStress = false, -- Forth pill displays users stress (You need to get the stress value yourself in the script)
DisplayVoice = true, -- Forth pill will display voice range and when speaking (TokoVOIP or Mumble)
StatusUpdateInterval = 1000, -- Time it takes for status to update (lowering this value adds ms)
VitalsUpdateInterval = 500, -- Time it takes for vitals to update (lowering this value adds ms)
MapZoom = 0.24, -- The zoom of the map (Lower the value more zoomed out it will be)
-- Choose icons from FontAwsome (https://fontawesome.com/)
HealthIcon = "fa-heartbeat",
ArmorIcon = "fa-shield-alt",
FoodIcon = "fa-hamburger",
ThirstIcon = "fa-tint",
FourthIcon = "fas fa-microphone", -- Left blank because default function is displaying id (if you use stress or voice add any icon you like)
}
-- Return your hunger, thirst, stress. This uses esx_status and stress is left at 0 because it isn't used by default
function GetStatus(cb)
TriggerEvent(
"esx_status:getStatus",
"hunger",
function(h)
TriggerEvent(
"esx_status:getStatus",
"thirst",
function(t)
local hunger = h.getPercent()
local thirst = t.getPercent()
local stress = 0
cb({hunger, thirst, stress})
end
)
end
)
end