Styles
SHARED FUNCTIONS
Provides a standalone set of data for all character customisation styles. This is used by the utils character creation functions.
Styles Data
Contains default styles for mp freemode m and f peds.
local ped_styles = {
m = {
genetics = {
mother = 0,
father = 0,
resemblance = 0,
skin = 0,
eye_colour = 1,
eye_opening = 0,
eyebrow_height = 0,
eyebrow_depth = 0,
nose_width = 0,
nose_peak_height = 0,
nose_peak_length = 0,
nose_bone_height = 0,
nose_peak_lower = 0,
nose_twist = 0,
cheek_bone = 0,
cheek_bone_sideways = 0,
cheek_bone_width = 0,
lip_thickness = 0,
jaw_bone_width = 0,
jaw_bone_shape = 0,
chin_bone = 0,
chin_bone_length = 0,
chin_bone_shape = 0,
chin_hole = 0,
neck_thickness = 0,
},
barber = {
hair = -1,
hair_colour = 0,
highlight_colour = 0,
fade = -1,
fade_colour = 0,
eyebrow = -1,
eyebrow_opacity = 1.0,
eyebrow_colour = 0,
facial_hair = -1,
facial_hair_opacity = 1.0,
facial_hair_colour = 0,
chest_hair = -1,
chest_hair_opacity = 1.0,
chest_hair_colour = 0,
make_up = -1,
make_up_opacity = 1.0,
make_up_colour = 0,
blush = -1,
blush_opacity = 1.0,
blush_colour = 0,
lipstick = -1,
lipstick_opacity = 1.0,
lipstick_colour = 0,
blemish = -1,
blemish_opacity = 1.0,
body_blemish = -1,
body_blemish_opacity = 1.0,
ageing = -1,
ageing_opacity = 1.0,
complexion = -1,
complexion_opacity = 1.0,
sun_damage = -1,
sun_damage_opacity = 1.0,
moles = -1,
moles_opacity = 0
},
clothing = {
mask_style = -1,
mask_texture = 0,
jacket_style = 15,
jacket_texture = 0,
shirt_style = 15,
shirt_texture = 0,
vest_style = -1,
vest_texture = 0,
legs_style = 21,
legs_texture = 0,
shoes_style = 34,
shoes_texture = 0,
hands_style = 15,
hands_texture = 0,
bag_style = -1,
bag_texture = 0,
decals_style = -1,
decals_texture = 0,
hats_style = -1,
hats_texture = 0,
glasses_style = -1,
glasses_texture = 0,
earwear_style = -1,
earwear_texture = 0,
watches_style = -1,
watches_texture = 0,
bracelets_style = -1,
bracelets_texture = 0,
neck_style = -1,
neck_texture = 0
},
tattoos = {
ZONE_HEAD = { name = '', label = '', hash_m = '', hash_f = '', collection = '' },
ZONE_TORSO = { name = '', label = '', hash_m = '', hash_f = '', collection = '' },
ZONE_LEFT_ARM = { name = '', label = '', hash_m = '', hash_f = '', collection = '' },
ZONE_RIGHT_ARM = { name = '', label = '', hash_m = '', hash_f = '', collection = '' },
ZONE_LEFT_LEG = { name = '', label = '', hash_m = '', hash_f = '', collection = '' },
ZONE_RIGHT_LEG = { name = '', label = '', hash_m = '', hash_f = '', collection = '' }
}
},
f = {
genetics = {
mother = 0,
father = 0,
resemblence = 0,
skin = 0,
eye_colour = 1,
eye_opening = 0,
eyebrow_height = 0,
eyebrow_depth = 0,
nose_width = 0,
nose_peak_height = 0,
nose_peak_length = 0,
nose_bone_height = 0,
nose_peak_lower = 0,
nose_twist = 0,
cheek_bone = 0,
cheek_bone_sideways = 0,
cheek_bone_width = 0,
lip_thickness = 0,
jaw_bone_width = 0,
jaw_bone_shape = 0,
chin_bone = 0,
chin_bone_length = 0,
chin_bone_shape = 0,
chin_hole = 0,
neck_thickness = 0,
},
barber = {
hair = -1,
hair_colour = 0,
highlight_colour = 0,
fade = -1,
fade_colour = 0,
eyebrow = -1,
eyebrow_opacity = 1.0,
eyebrow_colour = 0,
facial_hair = -1,
facial_hair_opacity = 1.0,
facial_hair_colour = 0,
chest_hair = -1,
chest_hair_opacity = 1.0,
chest_hair_colour = 0,
make_up = -1,
make_up_opacity = 1.0,
make_up_colour = 0,
blush = -1,
blush_opacity = 1.0,
blush_colour = 0,
lipstick = -1,
lipstick_opacity = 1.0,
lipstick_colour = 0,
blemish = -1,
blemish_opacity = 1.0,
body_blemish = -1,
body_blemish_opacity = 1.0,
ageing = -1,
ageing_opacity = 1.0,
complexion = -1,
complexion_opacity = 1.0,
sun_damage = -1,
sun_damage_opacity = 1.0,
moles = -1,
moles_opacity = 0
},
clothing = {
mask_style = -1,
mask_texture = 0,
jacket_style = -1,
jacket_texture = 0,
shirt_style = 10,
shirt_texture = -1,
vest_style = -1,
vest_texture = 0,
legs_style = 15,
legs_texture = 0,
shoes_style = 5,
shoes_texture = 0,
hands_style = 15,
hands_texture = 0,
bag_style = -1,
bag_texture = 0,
decals_style = -1,
decals_texture = 0,
hats_style = -1,
hats_texture = 0,
glasses_style = -1,
glasses_texture = 0,
earwear_style = -1,
earwear_texture = 0,
watches_style = -1,
watches_texture = 0,
bracelets_style = -1,
bracelets_texture = 0,
neck_style = -1,
neck_texture = 0
},
tattoos = {
ZONE_HEAD = { name = '', label = '', hash_m = '', hash_f = '', collection = '' },
ZONE_TORSO = { name = '', label = '', hash_m = '', hash_f = '', collection = '' },
ZONE_LEFT_ARM = { name = '', label = '', hash_m = '', hash_f = '', collection = '' },
ZONE_RIGHT_ARM = { name = '', label = '', hash_m = '', hash_f = '', collection = '' },
ZONE_LEFT_LEG = { name = '', label = '', hash_m = '', hash_f = '', collection = '' },
ZONE_RIGHT_LEG = { name = '', label = '', hash_m = '', hash_f = '', collection = '' }
}
}
}
Functions
ped_styles
Use the following to retrieve the current ped styles table.
--- Utils object
local styles = utils.styles.style
print('Ped Styles:', styles)
--- Direct export
local styles = exports.boii_utils:ped_styles()
get_style_defaults
Use the following to return the default styles.
--- Utils object
local default_styles = utils.styles.get_style_defaults()
print('Default Ped Styles:', default_styles)
--- Direct export
local default_styles = exports.boii_utils:get_style_defaults()
get_style
Use the following to retrieve the styles for a specified ped sex.
--- Retrieve style data for a specific sex
local sex = 'm' -- 'm' for mp_m_freemode_01, 'f' for mp_f_freemode_01
--- Utils object
local style_data = utils.styles.get_style(sex)
print('Style Data for', sex, ':', style_data)
--- Direct export
local style_data = exports.boii_utils:get_style(sex)
reset_styles
Use the following to reset the current ped styles back to default.
--- Utils object
utils.styles.reset_styles()
print('Styles have been reset to defaults.')
--- Direct export
exports.boii_utils:reset_styles()
Last updated