DarkBeautyDZ Posted December 18, 2018 Share Posted December 18, 2018 (edited) i'm still beginner in scripting but i'm trying to complete this script (client ) for saving a skin in a save slot 1 for example and load it again when the player want to do so , this is my script : function saveplayerskin(player) addEventHandler("onResourceStart", resourceRoot, function() addCommandHandler("saveskin1",saveplayerskin) addCommandHandler("loadskin1",loadplayerskin) addCommandHandler('saveskin1', function ( player ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerskin = getPedSkin ( source ) setAccountData ( playeraccount, "skin", playerskin ) then outputChatBox("skin saved in slot1!",player,255) return end end end addCommandHandler('loadskin1', function ( player ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerskin = getAccountData ( playeraccount, "skin" ) if ( playerskin ) then setPedSkin ( source, playerskin )then outputChatBox("skin loaded from slot1!",player,255) return end end end addCommandHandler("saveskin1",saveplayerskin) addCommandHandler("loadskin1",loadplayerskin) is there someone nice enough to help a girl in a trouble please ? Edited December 18, 2018 by DarkBeautyDZ 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