forked from VORPCORE/vorp_core-lua
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.lua
185 lines (181 loc) · 12.2 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
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
--=============================================
-- VORP SHARED CONFIG --
--=============================================
-- make sure to read the comments in green
-- if you dont know what they are for ask, or leave it as it is
Lang = "English" -- choose here your language , check translation folder to see if its available in your language
Config = {
onesync = true, -- turn to false if you dont use onesync
autoUpdateDB = true,
PrintPlayerInfoOnLeave = false, -- print in server console information of players leaving
PrintPlayerInfoOnEnter = false, -- print player info on server console when enter server
--=======================================
---STARTING POINT
-- add here players initial money
-- for items go to inventory
initGold = 0.0,
initMoney = 200.0,
initRol = 0.0,
initXp = 0,
initJob = "unemployed", -- leave it like this
initJobGrade = 0, -- leave it like this
initGroup = "user", -- leave it like this
Whitelist = false, -- dont use
AllowWhitelistAutoUpdate = false, -- dont use
SavePlayersStatus = false, -- save players health stamina inner and outter core to DB?
maxHealth = 10, -- 10 is FULL 0 IS EMPTY define max outer core for players
maxStamina = 10, -- 10 is FULL 0 IS EMPTY define max outer core for players
PVP = true, -- Can players attack/hurt one another
PVPToggle = true, -- If true, players can set their own pvp state
savePlayersTimer = 10, -- this will tell the core in how many minutes should all players be saved to the database
showplayerIDwhenfocus = true, -- set false will show steam name when focus on another player RMB
disableAutoAIM = true, -- if false players with controllers will have autoaim just like in rdr2
SavePlayersHours = false, -- if you want to save players played hours in DB, tx admin already have this
--========================================
---MULTICHAR
SaveSteamNameDB = true, -- TRUE if you want save steamname on character DB when player drop (need to update SQL)
UseCharPermission = false, --| if false it will let players create maxchars bellow
MaxCharacters = 5, --MAX ALLOWED TO BE CREATED [if UseCharPermission = true, SELECTED players(with command) can create MaxCharacters characters / if UseCharPermission = false, players can create MaxCharacters characters]
--========================================
--UI CORES
HideOnlyDEADEYE = true,
HidePlayersCore = false,
HideHorseCores = false,
--========================================
---WEBHOOKS
-- see commands.config
webhookColor = 16711680, --EMBED COLOR
name = "VORP", --NAME OF EMBED
logo = "https://via.placeholder.com/30x30", --HEAD LOGO
footerLogo = "https://via.placeholder.com/30x30", --FOOTER LOGO
Avatar = "https://via.placeholder.com/30x30", -- AVATAR LOGO
--=======================================
---UI Configurations
HideUi = false, -- Show or Hide the Overall UI
HideGold = false, --disables Gold UI for all
HideMoney = false, --disables Money UI for all
HideLevel = false, --disables Level UI for all
HideID = false, --disables ID UI for all
HideTokens = false, --disables Token UI for all
HidePVP = false, --disables PVP UI for all
UIPosition = 'TopRight', -- Changes position of UI. Options: BottomRight, MiddleRight, TopRight, TopMiddle, BottomMiddle
UILayout = 'Column', -- Changes the layour of the UI. Options: Row, Column
HideWithRader = true, -- UI will hide whenever the radar(minimap) is hidden
OpenAfterRader = true, -- UI will show whenever the radar(minimap) is showing again
CloseOnDelay = false, -- UI will automatically close after an amount of time
CloseOnDelayMS = 10000, -- CloseOnDelays time in miliseconds, 10000 = 10seconds
--=======================================
---MAP Configurations
mapTypeOnFoot = 3, -- 0 = Off(no radar), 1 = Regular 2 = Expanded 3 = Simple(compass), for on foot
mapTypeOnMount = 3, -- 0 = Off(no radar), 1 = Regular 2 = Expanded 3 = Simple(compass), for on horse
enableTypeRadar = false, --- if true the above will work, if false players can choose their radar type in the game settings.
Loadinscreen = true, --ENABLE LOADING SCREENS on spawn and while spawn dead
LoadinScreenTimer = 10000, -- miliseconds
--=======================================
---RESPAWN
HealthOnRespawn = 500, --Player's health when respawned in hospital (MAX = 500)
HealthOnResurrection = 100, --Player's health when resurrected (MAX = 500)
RagdollOnResurrection = true, -- Enable or disable Ragdoll and revive effects when revived
HealthRecharge = { enable = true, multiplier = 0.37 }, -- enable or disable auto recharge of health outer core (real ped health), multiplier 1.0 is default
StaminaRecharge = { enable = true, multiplier = 0.4 }, -- enable or disable auto recharge of stamina outer core, multiplier 1.0 is default
RespawnTime = 10, --seconds
RespawnKey = 0xDFF812F9, --[E] KEY
RespawnKeyTime = 5000, -- Milliseconds it will take to press the button
CombatLogDeath = true, -- people who combat log now spawn in dead rather than force spawned
UseControlsCamera = false, -- if youset this to true players while dead or being carried can move the camera using w a d s controls this is resource intensive leave to false
UseDeathHandler = true, -- levae this to true if you dont know what you doing . this is to disable the death handling incase you have something custom
-- places for players to spawn
Hospitals = {
Valentine = {
name = "Valentine",
pos = vector4(-283.83, 806.4, 119.38, 321.76), -- use vorp admin to get vector4 x y z h
},
SaintDenis = {
name = "Saint Denis",
pos = vector4(2721.4562, -1446.0975, 46.2303, 321.76),
},
Armadillo = {
name = "Armadillo",
pos = vector4(-3742.5, -2600.9, -13.23, 321.76),
},
Blackwater = {
name = "Black water",
pos = vector4(-723.9527, -1242.8358, 44.7341, 321.76),
},
Rhodes = {
name = "Rhodes",
pos = vector4(1229.0, -1306.1, 76.9, 321.76),
},
},
ActiveEagleEye = true,
ActiveDeadEye = false,
--=======================================================
-- BAN SYSTEM
DateTimeFormat = "%d/%m/%y %H:%M:%S", -- Set wished DateTimeFormat for output in ban notification
TimeZone = " CET", -- Set your timezone
TimeZoneDifference = 1, -- Your time zone difference with UTC in winter time this is used for the banning system
--=======================================================
-- COMMAND PERMISSION
NewPlayerWebhook = "", -- new user on the server login with static id
SetUserDBadmin = true, -- should the command addGroup set admins on Users table? for characters table do set false
SetBothDBadmin = false, -- if set true should the command addGroup set admins on both tables in databse!
--=======================================================
---BUILT IN RICH PRESENCE DISCORD
maxplayers = 128, -- change to the number of players that can get in to your server
appid = nil, -- Application ID (Replace this with you own)
biglogo = "LOGOname", -- image assets name for the "large" icon.
biglogodesc = " Redm Server Connect: ", -- text when hover over image
smalllogo = "smallboy name", -- image assets name for the "small" icon.(OPTIONAL)
smalllogodesc = "Join us for a good time", -- text when hover over image
discordlink = "https://discord.gg/", -- discord link
richpresencebutton = "Join Discord", --set button text for Rich Presence Button
shownameandid = true, --show player steam name and id
--======================================================
--- TRANSLATE
Langs = {
IsConnected = "🚫 Duplicated account connected (steam | rockstar)",
NoSteam = "🚫 You have to have Steam open, please open Steam & restart RedM",
NoInWhitelist = "🚫 You are not in the Whitelist. Send in discord channel #user-id your user-id: ",
NoPermissions = "You don't have enough permissions",
CheckingIdentifier = "Checking Identifiers",
LoadingUser = "Loading User",
BannedUser = "You Are Banned Until ",
DropReasonBanned = "You were banned from the server until ",
Warned = "You were warned",
Unwarned = "You were unwarned",
TitleOnDead = "Do /alertdoctor in chat to request doctors aid", -- you need a script for this , its just an example
SubTitleOnDead = "You can respawn in %s seconds",
SecondsMove = " seconds",
YouAreCarried = "You are being carried by a person",
promptLabel = "Respawn",
prompt = "Respawn",
wayPoint = "VORP: You need to set a waypoint first!",
mustBeSeated = "VORP: You must be in the driver's seat!",
wagonInFront = "VORP: You must be seated or near a wagon to delete it!",
cantCarry = "VORP: Can't carry more weapons!",
Hold = "HOLD ON!!",
Load = "You are loading in",
Almost = "Almost there...",
Holddead = "YOU ARE DEAD",
Loaddead = "you left the server while dead",
forcedrespawn = "YOU WILL BE RESPAWNED",
forced = "Because you left the server while dead",
sit = "you need to be steated",
PVPNotifyOn = "PVP On ",
PVPNotifyOff = "PVP Off",
AddChar = "Added Multicharacter ",
RemoveChar = "Removed Multicharacter ",
WrongHex = "Hex not in DB or Wrong Hex",
myjob = "your job is: ~o~",
mygrade = " ~q~grade: ~o~",
charhours = "your character hours is: ~o~ %d",
playhours = "hours played is: ~o~ %d",
RespawnIn = "You can respawn in ",
message = " or " .. " /calldoctor",
message2 = "Time has passed respawn",
message3 = "You need to wait untill you can respawn",
message4 = "Player ID ",
message5 = "you were injured , per rule you must forget the past 30 minutes",
message6 = "Respawn!!!"
},
}