Guest User

Untitled

a guest
Oct 9th, 2017
9
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. u_skins.update_player_skin = function(player)
  2.         local name = player:get_player_name()
  3.         if u_skins.get_type(u_skins.u_skins[name]) == u_skins.type.SPRITE then
  4.                 player:set_properties({
  5.                         visual = "upright_sprite",
  6.                         textures = {u_skins.u_skins[name]..".png",u_skins.u_skins[name].."_back.png"},
  7.                         visual_size = {x=1, y=2},
  8.                 })
  9.         elseif u_skins.get_type(u_skins.u_skins[name]) == u_skins.type.MODEL then
  10.                 player:set_properties({
  11.                         visual = "mesh",
  12.                         textures = {u_skins.u_skins[name]..".png"},
  13.                         visual_size = {x=1, y=1},
  14.                 })
  15.         end
  16.         u_skins.save()
  17. end
RAW Paste Data