ايهاب Posted August 4, 2015 Share Posted August 4, 2015 hey all iem not programer need script cj save clothes Link to comment
HUNGRY:3 Posted August 4, 2015 Share Posted August 4, 2015 https://community.multitheftauto.com/in ... ls&id=1868 Link to comment
ايهاب Posted August 4, 2015 Author Share Posted August 4, 2015 no woork iem not need command Link to comment
HUNGRY:3 Posted August 4, 2015 Share Posted August 4, 2015 then replace command /saveclothes with this addEventHandler("onPlayerQuit",root,saveClothes) Link to comment
ايهاب Posted August 4, 2015 Author Share Posted August 4, 2015 the script not work + iem no porgramer Link to comment
iMr.SFA7 Posted August 4, 2015 Share Posted August 4, 2015 https://community.multitheftauto.com/in ... ls&id=1868 --commands: -- /saveClothes (saves the clothes) -- /loadClothes (loads saved clothes) Link to comment
HUNGRY:3 Posted August 4, 2015 Share Posted August 4, 2015 https://community.multitheftauto.com/index.php?p=resources&s=details&id=1868 --commands: -- /saveClothes (saves the clothes) -- /loadClothes (loads saved clothes) he says that he don't want command to save.. Link to comment
HUNGRY:3 Posted August 4, 2015 Share Posted August 4, 2015 just replace this in server.lua --[[ 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 addEventHandler("onPlayerLogin",root,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 addEventHandler("onPlayerQuit",root,saveClothes) Link to comment
ايهاب Posted August 4, 2015 Author Share Posted August 4, 2015 save not work for me man this my shop ps downlod this teel me save work for you or no https://community.multitheftauto.com/index.php?p= ... ls&id=9689 Link to comment
ايهاب Posted August 4, 2015 Author Share Posted August 4, 2015 save not work for me man this my shop ps downlod this teel me save work for you or no https://community.multitheftauto.com/index.php?p= ... ls&id=9689 Link to comment
aboodehoms2014 Posted August 4, 2015 Share Posted August 4, 2015 https://community.multitheftauto.com/in ... s&id=11348 good luck Link to comment
nasserdfdd Posted August 4, 2015 Share Posted August 4, 2015 iam willing to sell u egype skype me jone.cina11 i mean about like cit job and blabla bla not cj clothes saver Link to comment
HUNGRY:3 Posted August 4, 2015 Share Posted August 4, 2015 save not work for me man this my shop ps downlod this teel me save work for you or nohttps://community.multitheftauto.com/index.php?p= ... ls&id=9689 I tested it, it works just put it in server side Link to comment
ايهاب Posted August 5, 2015 Author Share Posted August 5, 2015 save work for you you out in server johin = save cloths pls edit the mood save meta.xml sever.lua you uoplod the mood save your edit iem downlod the fails Link to comment
Recommended Posts