Minotaur Posted June 22, 2013 Share Posted June 22, 2013 Hey everybody. I want cj clothes saver with window for example the bookmarks i want to type this /skin the window is appear Thanks in advence all Link to comment
Minotaur Posted June 22, 2013 Author Share Posted June 22, 2013 Or the skin saver is good Link to comment
iPrestege Posted June 22, 2013 Share Posted June 22, 2013 You mean : addCommandHandler guiSetVisible I can't understand you clearly also don't make double posts. Link to comment
Minotaur Posted June 22, 2013 Author Share Posted June 22, 2013 I mean skin saver for everyone the player type /skin, a window is appear where skins to load, skins to save , and skins to delete i hope you understand Link to comment
Tete omar Posted June 22, 2013 Share Posted June 22, 2013 You can use any save system such as MySQL/SQLite/XML. Link to comment
Minotaur Posted June 22, 2013 Author Share Posted June 22, 2013 What do you mean my friend? Link to comment
Minotaur Posted June 22, 2013 Author Share Posted June 22, 2013 --[[ original script by Justus (GA_Justus) --]] function saveClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) and ( getElementModel(source) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(source, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputDebugString("Clothessaver: Saved clothes") setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} end end addEventHandler("onPlayerQuit", getRootElement(), saveClothes) function setClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split(textureString, 44) local models = split(modelString, 44) setElementModel(source,0) for i=0, 17, 1 do if ( textures[i+1] ~= " " ) then addPedClothes(source, textures[i+1], models[i+1], i) end end outputChatBox("Clothes were added by clothessaver", source, 0, 255, 0) textures = {} models = {} end end addEventHandler("onPlayerLogin", getRootElement(), setClothes) function loadClothes(player) local account = getPlayerAccount(player) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split(textureString, 44) local models = split(modelString, 44) setElementModel(player,0) for i=0, 17, 1 do if ( textures[i+1] ~= " " ) then addPedClothes(player, textures[i+1], models[i+1], i) end end outputChatBox("Clothes were added by clothessaver", player, 0, 255, 0) textures = {} models = {} else outputChatBox("Please login!", player, 255, 0, 0) end end addCommandHandler("loadClothes", loadClothes) function saveClothes(player) local account = getPlayerAccount(player) if ( not isGuestAccount(account) ) then if ( getElementModel(player) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(player, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputDebugString("Clothessaver: Saved clothes") setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} else outputChatBox("Your skin must be skin 0 (CJ Skin)", player, 255, 0, 0) end else outputChatBox("Please login!", player, 255, 0, 0) end end addCommandHandler("saveClothes", saveClothes) it's not so bad, but I want to be window and one command to open the window /skin. I want something like this:https://www.facebook.com/photo.php?fbid=1381242018758269&set=a.1377594592456345.1073741828.100006174515990&type=1&theater Link to comment
iMr.3a[Z]eF Posted June 22, 2013 Share Posted June 22, 2013 and where is the window>? Link to comment
Minotaur Posted June 22, 2013 Author Share Posted June 22, 2013 I cant do it Help please Link to comment
iMr.3a[Z]eF Posted June 22, 2013 Share Posted June 22, 2013 lol look at this script and read description under the photos https://community.multitheftauto.com/ind ... ils&id=141 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