Skip to content

OnLookChange

The player’s own look changed - the server’s word.

The mode gave the player a look (SetPlayerLook), took the one the script asked for (RequestLookChange), or took it off; the table is what GetPlayerLook returns from now on. A creator closes itself here: the look it asked for is the player’s.

function OnLookChange(look)
-- ...
end
Parameter Type
look table {body, head, hair, beard, gender} - the parts the mode set (a part the soul decides is absent); gender is "female" on a woman’s look

nothing

function OnLookChange(look)
if creating then
creating = false
HideLookPreview()
ClearUi()
SetKeyboardCapture(false)
ShowNotification("Your character is ready.")
end
end

RequestLookChange · GetPlayerLook · the Looks and the character creator group of the index