Jump to content

[HELP] Skins


JamesCIT

Recommended Posts

  
local accountSkins = { 
    ["James"] = 0 --CJ skin 
    ["Jack"] = 1 --No idea what skin this is 
} 
  
function onPlayerLogin(_,account) 
    local account = getAccountName(account) 
     
    if (accountSkins[account]) then 
        setPlayerSkin(source,accountSkins[account]) 
    end 
end 
addEventHandler("onPlayerLogin",root,onPlayerLogin) 
  

Link to comment
  
local accountSkins = { 
    ["James"] = 0 --CJ skin 
    ["Jack"] = 1 --No idea what skin this is 
} 
  
function onPlayerLogin(_,account) 
    local account = getAccountName(account) 
     
    if (accountSkins[account]) then 
        setPlayerSkin(source,accountSkins[account]) 
    end 
end 
addEventHandler("onPlayerLogin",root,onPlayerLogin) 
  

thnx but whta is Jack ? and what write insted of and insted of 1

and if for groups

Link to comment
Jack will give the user Jack the skin number 1

and i will do the meta ad .txd and .dff files right ?

That's right but you don't need txd/dff for that unless you are planning to have a custom skin.

In that case, you can replace them by using following functions:

  
engineLoadTXD 
engineImportTXD 
engineLoadDFF 
engineReplaceModel 
  

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...