Configuration
config.lua:
Locales = {} -- edit translation in config/locales
Config = {}
Moon_Hud = {}
Moon_Hud.Config = {
-- Server-Settings --
locale = "en", -- locale file to use from config/locales/ --
framework = "auto", -- auto, esx, qb, qbox, vrp
useMph = false, -- use mph or kmh for speed
voice = "salty", -- 'pma', 'salty', '' -- else use the exports and keep this empty --
voiceRangeChangeNotify = true, -- notify when voice range changes --
announceTime = 15000, -- how long the announces should show on default
-- hud default positions --
hudElements = {
["hunger"] = { pos = { x = 1.55, y = 75.75, }, active = true },
["thirst"] = { pos = { x = 6.97, y = 75.75, }, active = true },
["player_count"] = { pos = { x = 1.05, y = 7.93, }, active = true },
["player_id"] = { pos = { x = 1.05, y = 10.93, }, active = true },
["time"] = { pos = { x = 1.00, y = 2.88, }, active = true },
["bank"] = { pos = { x = 89.54, y = 12.15, }, active = true },
["cash"] = { pos = { x = 92.9, y = 16.15, }, active = true },
["black"] = { pos = { x = 92.9, y = 20.15, }, active = true },
["job"] = { pos = { x = 92.9, y = 26.15, }, active = true },
["weapon"] = { pos = { x = 82.32, y = 7.99, }, active = true },
},
-- Client-Settings --
controls = {
request = {
accept_key = "J", -- Z is Y on german keyboards
decline_key = "X", --
},
editMode = {
enabled = true,
command = "editHud",
useCommand = true,
key = "LMENU", -- Left alt
useKeybind = false,
},
},
-- Carhud-Settings --
carhud = {
-- (mph or km/h can be changed in this config)
showRpm = true, -- show rpm instead of speed
updateTime = 10, -- update time in ms
},
-- Food-Settings --
food = {
enabled = true, -- enable/disable food hud
},
notifySound = {
enabled = true, -- enable/disable sound for notify
soundId = -1,
audioName = "ATM_WINDOW",
audioRef = "HUD_FRONTEND_DEFAULT_SOUNDSET",
},
txAdminEvents = {
-- INFO: Texts can be set in locale file
useAnnounce = true, -- enable/disable txadmin events (announcement) IMPORTANT: disable txadmin announce in settings > game > Hide Announcement Notification to you use Moon-Scripts announce
restartAnnounce = true, -- enable/disable custom txadmin restart announce (for example: "Server restarts in 20 Minutes!"). IMPORTANT: disable txadmin announce in settings > game > Hide Scheduled Restart Warnings to you use Moon-Scripts restart announce
},
defaultStreetAndCarNames = {
enabled = false, -- enable/disable default street and car names
},
}
Config.Announce = {
permissions = {
"admin",
"superadmin",
"god",
"mod",
},
sound = {
enabled = true, -- enable/disable sound for notify
soundId = -1,
audioName = "CHECKPOINT_NORMAL",
audioRef = "HUD_MINI_GAME_SOUNDSET",
}
}style.css:
Last updated