This page contains an example of a configuration file.
cfx-praryo-deathcam/configs/cl_config.lua
--==============================================================-- The configs written here are basically client-sided configs.--==============================================================CLConfig = {}--@config Duration in milliseconds of the death camera.CLConfig.Duration =5000--@config Command to force close active death cam UI through F8. Set to "" or nil to disable.CLConfig.ForceCloseCommand ="closeDeathCam"--@config View death cam report keybind. Set to "" or nil to disable.CLConfig.ViewDeathCamKey ="H"--@config Notification UI designCLConfig.ViewDeathCamTextUI = { position ="right-center", icon ='info',}
cfx-praryo-deathcam/configs/sv_config.lua
cfx-praryo-deathcam/configs/sh_config.lua
Last updated
--=========================================================
-- The configs written here are hidden from humpy dumpers.
--=========================================================
SVConfig = {}
--@config Discord bot token if you want to use discord avatars
SVConfig.DiscordBotToken = ""
--@config framework (First & Last Name) / fivem (GetPlayerName) / discord (Discord Username)
SVConfig.PlayerNameType = "framework"
--@config discord (Discord Avatar) / custom (SVConfig.CustomAvatars)
SVConfig.PlayerAvatarType = "discord"
--@config Custom player avatars linked to identifier.
SVConfig.CustomAvatars = {
-- ["DEQ74212"] = "https://imgur.com/donut.png" -- QBCore / QBX Example.
-- ["6ab98f9723e0f0fc875e6253e8bd5dc64fb33185"] = "https://imgur.com/donut.png" -- ESX Example.
-- ["char1:6ab98f9723e0f0fc875e6253e8bd5dc64fb33185"] = "https://imgur.com/donut.png" -- ESX Multicharacter Example.
-- ["standalone_identifier"] = "https://imgur.com/donut.png" -- Standalone Example. (Identifier comes from SVConfig.StandaloneFunctions["FetchPlayerIdentifier"](source))
}
--@config Custom player background linked to identifier.
SVConfig.CustomBackground = {
-- ["DEQ74212"] = "https://imgur.com/donut.png" -- QBCore / QBX Example.
-- ["6ab98f9723e0f0fc875e6253e8bd5dc64fb33185"] = "https://imgur.com/donut.png" -- ESX Example.
-- ["char1:6ab98f9723e0f0fc875e6253e8bd5dc64fb33185"] = "https://imgur.com/donut.png" -- ESX Example.
-- ["standalone_identifier"] = "https://imgur.com/donut.png" -- Standalone Example. (Identifier comes from SVConfig.StandaloneFunctions["FetchPlayerIdentifier"](source))
}
--@config Custom player banner linked to identifier.
SVConfig.CustomBanner = {
-- ["DEQ74212"] = "https://imgur.com/donut.png" -- QBCore / QBX Example.
-- ["6ab98f9723e0f0fc875e6253e8bd5dc64fb33185"] = "https://imgur.com/donut.png" -- ESX Example.
-- ["char1:6ab98f9723e0f0fc875e6253e8bd5dc64fb33185"] = "https://imgur.com/donut.png" -- ESX Multicharacter Example.
-- ["standalone_identifier"] = "https://imgur.com/donut.png" -- Standalone Example. (Identifier comes from SVConfig.StandaloneFunctions["FetchPlayerIdentifier"](source))
}
--@config Custom player badges linked to identifiers.
--@config Icons URL: https://lucide.dev/icons/
--@config Icons color URL: https://tailwindcss.com/docs/text-color
SVConfig.Badges = {
[1] = {
id = "developer",
label = "Developer",
icon = "Code2",
icon_color = "text-green-500",
has_access = function(source)
local ESX = getFrameworkObject()
local xPlayer = ESX.GetPlayerFromId(source)
--@return value should be in boolean.
return xPlayer.getGroup() == "developer"
end
},
}
--================================================================================================
-- Below is the standalone server functions that you can freely modify to your custom framework.
--================================================================================================
SVConfig.StandaloneFunctions = {
--@function Fetch player name.
--@param source
["FetchPlayerName"] = function(source)
-- Put your custom framework / standalone statements here.
return GetPlayerName(source)
end,
--@function Fetch player identifiers just in case you use other identifier on your framework.
--@param source
["FetchPlayerIdentifier"] = function(source)
-- Put your custom framework / standalone statements here.
return "license:123456789"
end
}