-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
163 lines (138 loc) · 5.48 KB
/
config.lua
File metadata and controls
163 lines (138 loc) · 5.48 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
RSConfig = {}
RSConfig.Server = {}
RSConfig.Player = {}
RSConfig.Money = {}
RSConfig.Notify = {}
RSConfig.Join = {
Debug = true,
IdentifierType = "steam",
Whitelist = true,
PermissionList = {}
}
RSConfig.JoinChecks = {
Name = true,
Discord = false,
Identifier = true,
Ban = true,
}
RSConfig.MaxPlayers = GetConvarInt('sv_maxclients', 48) -- Gets max players from config file, default 48
RSConfig.DefaultSpawn = vector4(-1035.71, -2731.87, 12.86, 0.0)
RSConfig.UpdateInterval = 1 -- how often to update player data in minutes
RSConfig.StatusInterval = 5000 -- how often to check hunger/thirst status in milliseconds
RSConfig.EnablePVP = true --- PvP always enabled. You can use the command /pvp to temporarily disable and re-enable it.
RSConfig.HidePlayerNames = true
RSConfig.Money.MoneyTypes = { cash = 50, bank = 0, valbank = 0, rhobank = 0, blkbank = 0, armbank = 0, bloodmoney = 0 } -- 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!
RSConfig.Money.DontAllowMinus = { 'cash', 'bloodmoney' } -- Money that is not allowed going in minus
RSConfig.Money.PayCheckTimeOut = 30 -- The time in minutes that it will give the paycheck
RSConfig.Money.PayCheckSociety = false -- If true paycheck will come from the society account that the player is employed at, requires qb-management
RSConfig.Money.PayCheckEnabled = true -- If false payments will be disabled.
RSConfig.Player.RevealMap = true
RSConfig.Player.HungerRate = 1.0 -- Rate at which hunger goes down.
RSConfig.Player.ThirstRate = 1.0 -- Rate at which thirst goes down.
RSConfig.Player.CleanlinessRate = 0.0 -- Rate at which cleanliness goes down.
RSConfig.Player.Bloodtypes = {
"A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-",
}
RSConfig.Server.Closed = false -- Set server closed (no one can join except people with ace permission 'qbadmin.join')
RSConfig.Server.ClosedReason = "Server Closed" -- Reason message to display when people can't join the server
RSConfig.Server.Uptime = 0 -- Time the server has been up.
RSConfig.Server.Whitelist = false -- Enable or disable whitelist on the server
RSConfig.Server.WhitelistPermission = 'admin' -- Permission that's able to enter the server when the whitelist is on
RSConfig.Server.Discord = "" -- Discord invite link
RSConfig.Server.CheckDuplicateLicense = true -- Check for duplicate rockstar license on join
RSConfig.Server.Permissions = { 'god', 'admin', 'mod' } -- Add as many groups as you want here after creating them in your server.cfg
RSConfig.Notify.NotificationStyling = {
group = false, -- Allow notifications to stack with a badge instead of repeating
position = "right", -- top-left | top-right | bottom-left | bottom-right | top | bottom | left | right | center
progress = true -- Display Progress Bar
}
-- These are how you define different notification variants
-- The "color" key is background of the notification
-- The "icon" key is the css-icon code, this project uses `Material Icons` & `Font Awesome`
RSConfig.NotifyPosition = 'top-left' -- 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left'
-- other settings
RSConfig.PromptDistance = 1.5 -- distance for prompt to trigger (default = 1.5)
RSConfig.Player.PlayerDefaults = {
citizenid = function() return RS.Player.CreateCitizenId() end,
cid = 1,
money = function()
local moneyDefaults = {}
for moneytype, startamount in pairs(RSConfig.Money.MoneyTypes) do
moneyDefaults[moneytype] = startamount
end
return moneyDefaults
end,
optin = true,
charinfo = {
firstname = 'Firstname',
lastname = 'Lastname',
birthdate = '00-00-0000',
gender = 0,
nationality = 'USA',
phone = function() return "Pole telefone" end,
account = function() return RS.Functions.CreateAccountNumber() end
},
job = {
name = 'töötu',
label = 'Vaba',
payment = 34,
type = 'none',
onduty = false,
isboss = false,
grade = {
name = 'Vaba',
level = 0
}
},
gang = {
name = 'pole',
label = 'Vaba',
isboss = false,
grade = {
name = 'Vaba',
level = 0
}
},
metadata = {
hunger = 100,
thirst = 100,
stress = 0,
isdead = false,
inlaststand = false,
armor = 0,
ishandcuffed = false,
tracker = false,
injail = 0,
jailitems = {},
status = {},
phone = {},
rep = {},
currentapartment = nil,
callsign = 'NO CALLSIGN',
bloodtype = function() return RSConfig.Player.Bloodtypes[math.random(1, #RSConfig.Player.Bloodtypes)] end,
fingerprint = function() return RS.Player.CreateFingerId() end,
walletid = function() return RS.Player.CreateWalletId() end,
criminalrecord = {
hasRecord = false,
date = nil
},
licences = {
driver = true,
business = false,
weapon = false
},
inside = {
house = nil,
apartment = {
apartmentType = nil,
apartmentId = nil,
}
},
phonedata = {
SerialNumber = function() return RS.Player.CreateSerialNumber() end,
InstalledApps = {}
}
},
position = RSConfig.DefaultSpawn,
items = {},
}