murilo2929

Members
  • Content Count

    116
  • Joined

  • Last visited

Everything posted by murilo2929

  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
  14. Então eu estou tentando mudar o método de dinheiro dessa loja de tuning para o método que uso mas não estou conseguindo, alguem consegue me ajudar? Meu sistema de money exports.dinheiro:tDinheiro(Player, Quantidade) --- Para ver se o player tem dinheiro exports.dinheiro:pDinheiro(Player, Quantidade) --- Para pegar o dinheiro do player Parte do codigo que eu acho que deveria mudar, mas quando mudo não funciona 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
  15. I think I understand what you want to do, for you to do that just go to the map editor and put your custom model somewhere in the map of preference below it, and get his position, if it has a door goes near it and get the coordinates then you get those coordinates and put them in your interior script.
  16. como poderia fazer sem a tabela e fazer o script puxar automaticamente qual lugar vai ser solto, tipo se ele estiver na prisao federal puxa as coordenadas da prisão federal.
  17. Estou montando um sistema de prisão, é o seguinte, se o player estiver em uma determinada prisão digamos Prisão Federal na hora que ele for solto ele vai ser setado para area de soltura da prisão federal fiz assim as areas de solturar. localsoltura = { -- x, y, z, int, dim ["Federal"] = {-1047.03125, -632.498046875, 32.0078125, 0, 0}, -- Prisao federal ["PD"] = {1544.5283203125, -1669.046875, 13.558586120605, 0, 0}, -- PD ["HP"] = {633.3251953125, -566.7724609375, 16.3359375, 0, 0} -- HP } o problema é que quando vou soltar o player aparece o seguinte erro. [2019-10-07 13:32:51] WARNING: sistemaprisao\s_prisao.Lua:61: Bad argument @ 'setElementPosition' [Expected number at argument 3, got none] [2019-10-07 13:32:51] WARNING: sistemaprisao\s_prisao.Lua:62: Expected number, got non-convertible string. This warning may be an error in future versions. [2019-10-07 13:32:51] WARNING: sistemaprisao\s_prisao.Lua:63: Expected number, got non-convertible string. This warning may be an error in future versions. E é assim que esta essas linhas de codigos setElementPosition(value, "localsoltura") setElementDimension(value, "localsoltura") setElementInterior(value, "localsoltura") Essas linhas no caso serveriam para puxar se o player estivesse na prisao federal a area de soltura seria da federal, caso estivesse na PD seria a area de soltura na PD, mas não estou conseguindo resolver.
  18. I am trying to make sure that when a player is not in isElementWithinColShape a message appears stating that it is not in the right place but not working how can I do it? local mechanic = isElementWithinColShape( localPlayer, mecanico ) if not mechanic then outputChatBox("TEST", 255, 0, 0) this is just part of the code saying how I did it, I already set where is the sphere and everything
  19. murilo2929

    UNBINDKEY

    how can i be doing for unbind key mouse 1 which is to shoot? in server.
  20. local update = updateItemValue(client, firstClipInventorySlot,firstClipArr[1] ..":"..weaponSyncPacket[3] ..":".. firstClipArr[3] ) Estou com o seguinte problema nesse código acima. ERROR: inventario\s_armas.Lua:196: attempt to index local 'firstClipArr' (a nil value) Como posso estar resolvendo?
  21. Muito obrigado pela ajuda funcionou perfeitamente, só estou tendo um problema agora que quando me distancio um pouco certos objetos que eu removi usando o script aparecem, ai quando chego mais perto eles somem de novo sabe como arrumar?
  22. Gostaria de saber como faz para remover esses objetos circulados na foto? não consigo remover com a ferramenta padrão do editor.