Get Skin
um-multicharacter > framework > getskin.lua
lib.callback.register("um-multicharacter:server:getSkin", function(_, cid)
local skinQuery = MySQL.single.await('SELECT * FROM playerskins WHERE citizenid = ? AND active = ? LIMIT 1',
{ cid, 1 })
if skinQuery ~= nil then
local skin = json.decode(skinQuery.skin)
return skinQuery.model or skin.model or nil, skin
end
return nil, nil
end)