murilo2929

Members
  • Content Count

    116
  • Joined

  • Last visited

Community Reputation

0 Neutral

About murilo2929

  • Rank
    Sucka

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. [2019-10-23 18:43:17] QUIT: ADMIN_STAR left the game [Quit] [2019-10-23 18:43:17] WARNING: account\s_login.Lua:107: Bad argument @ 'getPedClothes' [Expected ped at argument 1, got nil] [2019-10-23 18:43:17] WARNING: account\s_login.Lua:108: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] [2019-10-23 18:43:17] WARNING: account\s_login.Lua:108: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2019-10-23 18:43:17] WARNING: account\s_login.Lua:107: Bad argument @ 'getPedClothes' [Expected ped at argument 1, got nil] [DUP x17] [2019-10-23 18:43:17] WARNING: account\s_login.Lua:108: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] [DUP x17] [2019-10-23 18:43:17] WARNING: account\s_login.Lua:108: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [DUP x17] [2019-10-23 18:43:17] ERROR: account\s_login.Lua:139: attempt to call global 'saveNewClothing' (a nil value)
  2. precisa usar esses comandos? eu estou não estou colocando eles
  3. esse script que eu estava tentando usar para salvar como pode ver ali em cima, mas não funcionou aqui
  4. irmão é essa loja que estou usando, e aqui no meu servidor ela não salva lol
  5. me envie a loja para eu dar uma olhada fazendo favor.
  6. 2019-10-23 09:01:08] QUIT: ADMIN_STAR left the game [Quit] [2019-10-23 09:01:09] WARNING: account\login_s.Lua:140: Bad argument @ 'getPedClothes' [Expected ped at argument 1, got string 'Quit'] [2019-10-23 09:01:09] WARNING: account\login_s.Lua:141: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got string 'Quit'] [2019-10-23 09:01:09] WARNING: account\login_s.Lua:141: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2019-10-23 09:01:15] WARNING: account\login_s.Lua:140: Bad argument @ 'getPedClothes' [Expected ped at argument 1, got string 'Quit'] [DUP x17] [2019-10-23 09:01:15] WARNING: account\login_s.Lua:141: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got string 'Quit'] [DUP x17] [2019-10-23 09:01:15] WARNING: account\login_s.Lua:141: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [DUP x17] that error appear when i exit
  7. 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) tentei assim e não deu amigo
  8. 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) i try like this and don't work
  9. murilo2929

    CJ Clothes

    how can i make to clothes of CJ save when player exit of server?
  10. Alguem poderia me ajudar, como posso fazer para salvar a roupa do cj para que quando o player saia e entre dnv no servidor a roupa seja a mesma que ele saiu.
  11. Amigo se não me engano tem um resource de uma hud que já vem com esse estilo, o player só caminha
  12. então no meu metafile eu coloquei apenas assim <export function="takeMoney" type="server" /> should i put one more line like this? <export function="takeMoney" type="server" /> <export function="takeMoney" type="client" /> remembering that all code including hasplayermoney is client-side
  13. So I'm trying to change this tuning shop's money method to the one I use but I can't, can anyone help me? My money system exports.dinheiro:tDinheiro(Player, Amount) --- To see if the player has money exports.dinheiro:pDinheiro(Player, Amount) --- To take money from the player Part of the code that I think should change, but when I change it doesn't work function hasPlayerMoney(money) if getPlayerMoney(localPlayer) >= money then return true end return false end function moneyChange(amount) takePlayerMoney(loopTable[hoveredCategory]["tuningPrice"]) giveNotification("success", getLocalizedText("notification.success.purchased")) playSoundEffect("moneychange.wav") if amount > 0 then moneyChangeTable = { ["tick"] = getTickCount() + 5000, ["amount"] = amount } end end