MissCrow Posted September 10, 2018 Share Posted September 10, 2018 Hello dear community , i'm looking for a resource that allows you to save a character, log in and select the character. Link to comment
Storm-Hanma Posted September 10, 2018 Share Posted September 10, 2018 You mean clothes saver ? Link to comment
[MTA]Weed Posted September 11, 2018 Share Posted September 11, 2018 function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) -- source instead of Acc if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local playerskin = getElementModel ( source ) -- source instead of Acc setAccountData ( playeraccount, "player.skin", playerskin ) end end function onPlayerLogin (_, playeraccount ) if ( playeraccount ) then local playerskin = getAccountData ( playeraccount, "player.skin" ) if ( playerskin ) then setElementModel ( source, playerskin ) -- source instead of Acc end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin ) 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