Configuration
This page contains an example of a configuration file.
cfx-praryo-clperms/shared/config_main.lua
Config = {}
-- Server framework exports name
Config.CoreExports = {
['qb'] = 'qb-core',
['esx'] = 'es_extended',
}
-- Basic Configurations
Config.EnableDebug = true
Config.CommandName = 'clexclu'
Config.UseFrameworkPermissions = true -- Enabling this will use permissions of your core (Config.AdminPermissions), eg. For esx, xPlayer.getGroup(). If set to false, it will use the identifiers added on (Config.PermissionIdentifiers)
Config.AdminPermissions = { 'admin', 'mod' } -- Applicable only if you enable framework permissions.
Config.PermissionIdentifiers = { -- Applicable only if you disable framework permissions.
'license:12345678',
'steam:12345678',
}
-- Praryo Subscriptions Compatibility
Config.EnablePlayerSubscriptions = true
Config.PlayerSubscriptionsExports = "cfx-praryo-subscriptions"
-- You can enable threads to check player skin every X seconds. Enabling this and lowering the thread wait might cause performance issues and ms rise.
Config.EnableThreadCheck = false
Config.ThreadWait = 60 * 1000
Config.ClothingEvents = {
['esx'] = {
['client'] = {
"skinchanger:modelLoaded",
"skinchanger:loadSkin",
"skinchanger:loadClothes",
"esx_skin:playerRegistered",
},
['server'] = {
},
['save'] = function(ped)
TriggerEvent("esx_skin:requestSaveSkin")
end,
},
['qb'] = {
['client'] = {
"qb-clothes:loadSkin",
"qb-clothing:client:loadPlayerClothing",
"qb-clothing:client:loadOutfit",
"qb-clothing:client:adjustfacewear"
},
['server'] = {
"qb-clothes:loadPlayerSkin",
"qb-clothing:loadPlayerSkin",
"qb-clothes:saveOutfit",
"qb-clothing:server:removeOutfit"
},
['save'] = function(ped)
exports['qb-clothing']:SaveSkin()
end,
},
['illenium'] = { -- No events for illenium-appearance, please follow documentation. (https://praryo.gitbook.io/documentation/)
['client'] = {
},
['server'] = {
},
['save'] = function(ped) -- Save skin exports from you
local appearance = exports['illenium-appearance']:getPedAppearance(ped)
TriggerServerEvent("illenium-appearance:server:saveAppearance", appearance)
end,
},
-- If you need guides for this, don't hesitate to file a ticket on my discord server.
['other'] = { -- If you have different clothing framework that is not on the list, add the events here. NOTE: DO NOT CHANGE THE INDEX (other)
['client'] = {
},
['server'] = {
},
['save'] = function() -- Save skin exports from your clothing framework
end,
},
}
Last updated