Skip to Content
AppearanceBlacklist & Whitelist

Blacklist & Whitelist

This section is aimed at developers. Basic scripting knowledge will help you get the most out of it.

CoreM’s blacklist/whitelist system lets you control exactly which peds, clothing and accessories each player can access — globally, or restricted to specific identifiers, ACE permissions, jobs or gangs. The example below shows every option in one place; adapt it to your server.

1. Blacklist / Whitelist

-- Example of our blacklist/whitelist system. -- This is just an example. You can customize the system for male or female and for each menu separately. local crm_blacklist = { ['crm-charcreator'] = {}, } crm_blacklist['crm-charcreator'] = { -- Blacklist/Whitelist for male. ['crm-male'] = { ['crm-peds'] = { {crm_models = {"mp_f_freemode_01"}}, -- Blacklist "mp_f_freemode_01" for everyone. {crm_models = {"a_m_y_business_01"}, crm_identifiers = {"WED33239"}}, -- Only show for player with Specific Identifier. {crm_models = {"a_m_y_business_01"}, crm_ace = {"admin"}}, -- Only show for player with Specific ace. {crm_models = {"a_m_y_business_02"}, crm_jobs = { -- Only show for specific grades in specific jobs {crm_job = "police", crm_grades = {3, 4}}, }}, {crm_models = {"a_m_y_business_02"}, crm_gangs = { -- Only show for specific grades in specific gangs {crm_gang = "ballas", crm_grades = {1, 2}}, }}, }, -- Peds ['crm-hair'] = {}, -- Hair ['crm-facial'] = {}, -- Facial Hair ['crm-chest'] = {}, -- Chest Hair ['crm-eyebrows'] = {}, -- Eyebrows ['crm-makeup'] = {}, -- Makeup ['crm-blush'] = {}, -- Blush ['crm-lipstick'] = {}, -- Lipstick ['crm-clothing-0'] = {}, -- Heads ['crm-clothing-1'] = {}, -- Masks ['crm-clothing-3'] = {}, -- Hands ['crm-clothing-4'] = {}, -- Legs ['crm-clothing-5'] = {}, -- Bags and Parachutes ['crm-clothing-6'] = {}, -- Shoes ['crm-clothing-7'] = {}, -- Accessories ['crm-clothing-8'] = {}, -- Undershirts ['crm-clothing-9'] = {}, -- Body Armors ['crm-clothing-10'] = {}, -- Decals ['crm-clothing-11'] = {}, -- Tops/Torsos ['crm-accessories-0'] = {}, -- Hats ['crm-accessories-1'] = {}, -- Glasses ['crm-accessories-2'] = {}, -- Ears ['crm-accessories-6'] = {}, -- Watches ['crm-accessories-7'] = {}, -- Bracelets }, -- Blacklist/Whitelist for female. ['crm-female'] = { ['crm-peds'] = {}, -- Peds ['crm-hair'] = {}, -- Hair ['crm-facial'] = {}, -- Facial Hair ['crm-chest'] = {}, -- Chest Hair ['crm-eyebrows'] = {}, -- Eyebrows ['crm-makeup'] = {}, -- Makeup ['crm-blush'] = {}, -- Blush ['crm-lipstick'] = {}, -- Lipstick ['crm-clothing-0'] = {}, -- Heads ['crm-clothing-1'] = {}, -- Masks ['crm-clothing-3'] = {}, -- Hands ['crm-clothing-4'] = {}, -- Legs ['crm-clothing-5'] = {}, -- Bags and Parachutes ['crm-clothing-6'] = {}, -- Shoes ['crm-clothing-7'] = {}, -- Accessories ['crm-clothing-8'] = {}, -- Undershirts ['crm-clothing-9'] = {}, -- Body Armors ['crm-clothing-10'] = {}, -- Decals ['crm-clothing-11'] = { {crm_styles = {4}, crm_textures = {2, 3}}, {crm_styles = {2, 3}, crm_identifiers = {"WED332390"}}, {crm_styles = {6, 7, 8}, crm_jobs = { {crm_job = "police", crm_grades = {3, 4}}, }}, {crm_styles = {6, 7, 8}, crm_gangs = { {crm_gang = "ballas", crm_grades = {1, 2}}, }}, }, -- Tops/Torsos ['crm-accessories-0'] = {}, -- Hats ['crm-accessories-1'] = {}, -- Glasses ['crm-accessories-2'] = {}, -- Ears ['crm-accessories-6'] = {}, -- Watches ['crm-accessories-7'] = {}, -- Bracelets }, }