A light weight standalone selection of helper functions useful for creating anything where character creation can be used, multi-characters, clothing stores, tattoo shops etc.
Updates utils.shared.style with new values to be displayed on player.
--- Specify sexlocal sex ='m'--- Specify categorylocal category ='genetics'--- Specify id within categorylocal id ='resemblance'--- Define value to update tolocal value =75--- Utils objectutils.character_creation.update_ped_data(sex, category, id, value)--- Direct exportexports.boii_utils:update_ped_data(sex, category, id, value)
change_player_ped
Changes the players ped model based on selected sex.
--- Define sexlocal sex ='m' -- 'm' | 'f'--- Utils objectutils.character_creation.change_player_ped(sex)--- Direct exportexports.boii_utils:change_player_ped(sex)
rotate_ped
Rotates the current ped facing direction.
Options: 'right', 'left', 'flip', 'reset'
--- Specify directionlocal direction ='left'--- Utils objectutils.character_creation.rotate_ped(direction)--- Direct exportexports.boii_utils:rotate_ped(direction)
load_character_model
Loads and applys appearence to character model.
--- Define character datalocal data = { identity = { sex ='m' }, style = { genetics = { mother =21, father =12, resemblence =0.7,... }, barber = {... }, clothing = {... }, tattoos = { torso = {... } } }}--- Utils objectutils.character_creation.load_character_model(data)--- Direct exportexports.boii_utils:load_character_model(data)