MRThinker Posted July 6, 2018 Share Posted July 6, 2018 Hi Guys There is a problem with my server. Please give me a resource to help me make the player skin unchanged! I'm killing when I'm done. Skin is converted to CJ Please help P Link to comment
FlyingSpoon Posted July 6, 2018 Share Posted July 6, 2018 I don't know if this is right, but I assume you want to keep the CJ Skin when a player dies? So what you'd do is, use on when they respawn after they die assuming it's onPlayerWasted, then set their skin to 0 using setElementModel. Link to comment
Galactix Posted July 7, 2018 Share Posted July 7, 2018 function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local accountSkinData = getAccountData (theCurrentAccount, "skinid") spawnPlayer (source, 0, 0, 1, 0, playerSkin, 0, 0) end end addEventHandler ("onPlayerLogin", getRootElement(), playerLogin) function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData (account, "skinid", tostring (getPedSkin (source))) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now