Events & Exports

Comprehensive instructions on configuring files and utilising export functions.

Events

-- You can use this event to display the character creation menu for new character.
-- You can use 'crm-male' or 'crm-female'.

TriggerEvent('crm-appearance:init-new-character', 'crm-male', function() 
    -- execute something after play click save appearance button.
end) 

-- You can use this event to display the character outfits menu!
-- You can use in your apartment/housing script!
TriggerEvent('crm-appearance:show-outfits') 

-- You can use this event to display the character creator menu!
TriggerEvent("crm-appearance:show-creator-menu")

-- You can use this event to laod player skin!
TriggerEvent("crm-appearance:load-player-skin")

-- You can use this event to display the store clothing menu!
TriggerEvent("crm-appearance:show-clothing-menu")

-- You can use this event to display the barbershop menu!
TriggerEvent("crm-appearance:show-barber-menu")

-- You can use this event to display the plasticsurgery menu!
TriggerEvent("crm-appearance:show-plasticsurgery-menu")

-- You can use this event to display the job outfits menu!
TriggerEvent('crm-appearance:show-job-outfits', 'police') 

-- Export to save player appearance in database.
local crm_data = nil -- If crm_data is nil, script will get the ped appearance.
exports['crm-appearance']:crm_save_appearance(crm_data , function() 
    print('appearance save')
end) -- 

Multicharacter Export

All Exports

Export
Parameters
Return

crm_get_ped_model

ped [number]

ped_model [string]

crm_get_ped_inheritance

ped [number]

inheritance [table]

crm_get_ped_face

ped [number]

face [table]

crm_get_ped_skin

ped [number]

skin [table]

crm_get_ped_hair

ped [number]

hair [table]

crm_get_ped_makeup

ped [number]

makeup [table]

crm_get_ped_clothing

ped [number]

clothing [table]

crm_get_ped_accessories

ped [number]

accessories [table]

crm_get_ped_appearance

ped [number]

appearance[table]

crm_set_ped_model

model [string]

-

crm_set_ped_inheritance

ped [number]; data [table]

-

crm_set_ped_face

ped [number]; data [table]

-

crm_set_ped_skin

ped [number]; data [table]

-

crm_set_ped_hair

ped [number]; data [table]

-

crm_set_ped_makeup

ped [number]; data [table]

-

crm_set_ped_clothing

ped [number]; data [table]

-

crm_set_ped_accessories

ped [number]; data [table]

-

crm_set_ped_appearance

ped [number]; data [table]

-

crm_set_player_appearance

data [table]

-

crm_init_player_appearance

gender [string] ("crm-male" or "crm-female")

-

Last updated