forked from qbcore-redm-framework/qbr-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lua
135 lines (131 loc) · 3.83 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
QBConfig = {}
QBConfig.MaxPlayers = GetConvarInt('sv_maxclients', 48) -- Gets max players from config file, default 48
QBConfig.DefaultSpawn = vector4(-1035.71, -2731.87, 12.86, 0.0)
QBConfig.UpdateInterval = 5 -- how often to update player data in minutes
QBConfig.StatusInterval = 5000 -- how often to check hunger/thirst status in ms
QBConfig.EnablePVP = true -- Enable or disable pvp on the server (Ability to shoot other players)
QBConfig.Discord = "" -- Discord invite link
QBConfig.ServerClosed = false -- Set server closed (no one can join except people with ace permission 'qbadmin.join')
QBConfig.ServerClosedReason = "Server Closed" -- Reason for server being closed
QBConfig.UseConnectQueue = true -- Use connectqueue resource for queue system
QBConfig.Permissions = {'god', 'admin', 'mod'} -- Add as many groups as you want here after creating them in your server.cfg
QBConfig.Money = {}
QBConfig.Money.MoneyTypes = {['cash'] = 2, ['bank'] = 40} -- ['type']=startamount - Add or remove money types for your server (for ex. ['blackmoney']=0), remember once added it will not be removed from the database!
QBConfig.Money.DontAllowMinus = {'cash'} -- Money that is not allowed going in minus
QBConfig.Money.PayCheckTimeOut = 10 -- The time in minutes that it will give the paycheck
QBConfig.Money.PayCheckSociety = false -- If true paycheck will come from the society account that the player is employed at, requires qb-bossmenu
QBConfig.Player = {}
QBConfig.Player.RevealMap = true
QBConfig.Player.MaxWeight = 120000 -- Max weight a player can carry (currently 120kg, written in grams)
QBConfig.Player.MaxInvSlots = 41 -- Max inventory slots for a player
QBConfig.Player.HungerRate = 4.2 -- Rate at which hunger goes down.
QBConfig.Player.ThirstRate = 3.8 -- Rate at which thirst goes down.
QBConfig.Player.Bloodtypes = {
"A+",
"A-",
"B+",
"B-",
"AB+",
"AB-",
"O+",
"O-",
}
-- Left side is level right side xp needed, you just have to add the skill here and in the metadata in servers/player.lua
-- You dont have to use this if you dont want to, just leave as is
QBConfig.Levels = {
["main"] = {
[0] = 0,
[1] = 50,
[2] = 100,
[3] = 150,
[4] = 200,
[5] = 250,
[6] = 300,
[7] = 350,
[8] = 400,
[9] = 450,
[10] = 500,
[11] = 550,
[12] = 600,
[13] = 650,
[14] = 700,
[15] = 750,
[16] = 800,
[17] = 850,
[18] = 900,
[19] = 950,
[20] = 1000
},
["mining"] = {
[0] = 0,
[1] = 50,
[2] = 100,
[3] = 150,
[4] = 200,
[5] = 250,
[6] = 300,
[7] = 350,
[8] = 400,
[9] = 450,
[10] = 500,
[11] = 550,
[12] = 600,
[13] = 650,
[14] = 700,
[15] = 750,
[16] = 800,
[17] = 850,
[18] = 900,
[19] = 950,
[20] = 1000
},
["herbalism"] = {
[0] = 0,
[1] = 50,
[2] = 100,
[3] = 150,
[4] = 200,
[5] = 250,
[6] = 300,
[7] = 350,
[8] = 400,
[9] = 450,
[10] = 500,
[11] = 550,
[12] = 600,
[13] = 650,
[14] = 700,
[15] = 750,
[16] = 800,
[17] = 850,
[18] = 900,
[19] = 950,
[20] = 1000
},
["hunting"] = {
[0] = 0,
[1] = 50,
[2] = 100,
[3] = 150,
[4] = 200,
[5] = 250,
[6] = 300,
[7] = 350,
[8] = 400,
[9] = 450,
[10] = 500,
[11] = 550,
[12] = 600,
[13] = 650,
[14] = 700,
[15] = 750,
[16] = 800,
[17] = 850,
[18] = 900,
[19] = 950,
[20] = 1000
},
}
exports('GetConfig', function()
return QBConfig
end)