-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.lua
More file actions
39 lines (26 loc) · 842 Bytes
/
config.lua
File metadata and controls
39 lines (26 loc) · 842 Bytes
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
Config = {}
Config.Framework = 'AUTO' -- AUTO , esx , esx-old , qb-core , qb-old
Config.SharedObject = 'esx:getSharedObject' -- esx:getSharedObject , QBCore:GetCoreObject --- !! Just for old versions !!
Config.TextUI = 'qb-core' -- esx , qb-core , okokTextUI
Config.Key = 38 -- 38 is E key
Config.Target = 'qb-target' -- ox_target , qb-target
Config.Debug = false ---- true or false (for debug)
Config.AdminGroup = {
'admin',
'god'
}
function MoneyType(Money)
local formatted = tostring(Money)
formatted = formatted:reverse():gsub("(%d%d%d)", "%1,")
formatted = formatted:reverse()
if formatted:sub(1, 1) == "," then
formatted = formatted:sub(2)
end
return "$" .. formatted
end
exports("MoneyType", MoneyType)
function Debug(text)
if Config.Debug then
print(text)
end
end