Skip to content

LookFromString

A look’s one line back into its table.

kind=name pairs separated by ; (or , or spaces), in any order; a pair of another kind is skipped. "" is {}. gender=female (or woman) sets gender = "female".

LookFromString(text)
Parameter Type
text string the one-line form

table - {body, head, hair, beard, gender}

local look = LookFromString(row.look)
look.beard = "m_beard_00" -- a shave
SetPlayerLook(pid, look)

LookToString · the Looks and character creation group of the index