Exports
All exports are client side.
| Export | What it does |
|---|---|
Open(fresh, cb, sex) | Opens the creator. fresh true starts from a blank face, false from their current face. cb and sex ('male' or 'female') are optional |
startPlayerCustomization(cb, options) | Same as Open, with options.fresh and options.sex |
GetLook() | The player's current look |
DressPed(ped, look) | Applies a look to a ped |
exports['fusing-character-creator']:Open(false)
exports['fusing-character-creator']:Open(true)
The callback gets whether the player saved, and the look if they did:
exports['fusing-character-creator']:Open(true, function(saved, look)
if saved then
print('done')
end
end)
The creator also opens on the client event fusing-character-creator:open (pass true for a blank face), and on qb-clothes:client:CreateFirstCharacter.