# Configuration

{% hint style="info" %}
cfx-praryo-clperms/shared/config\_main.lua
{% endhint %}

{% code overflow="wrap" %}

```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,
	},
}
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://praryo.gitbook.io/documentation/paid-resources/cfx-praryo-clperms/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
