Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- u_skins.update_player_skin = function(player)
- local name = player:get_player_name()
- if u_skins.get_type(u_skins.u_skins[name]) == u_skins.type.SPRITE then
- player:set_properties({
- visual = "upright_sprite",
- textures = {u_skins.u_skins[name]..".png",u_skins.u_skins[name].."_back.png"},
- visual_size = {x=1, y=2},
- })
- elseif u_skins.get_type(u_skins.u_skins[name]) == u_skins.type.MODEL then
- player:set_properties({
- visual = "mesh",
- textures = {u_skins.u_skins[name]..".png"},
- visual_size = {x=1, y=1},
- })
- end
- u_skins.save()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement