Jump to content

PashaBiceps

Members
  • Content Count

    109
  • Joined

  • Last visited

  • Days Won

    1

PashaBiceps last won the day on March 14 2019

PashaBiceps had the most liked content!

Community Reputation

18 Decent

1 Follower

About PashaBiceps

  • Rank
    Punk-@ss B*tch
  • Birthday December 24

Recent Profile Visitors

466 profile views
  1. Olá boa tarde! Gostaria de solicitar ajuda para o seguinte erro. ( Attempt to perform Arithmetic on field '?' a nil value). Ás vezes funciona, outras vezes dá esse erro! O que poderá ser? Agradeço a ajuda desde já. function Entregar_Caixas (source) local Emprego = getElementData ( source, "Emprego" ) local Occupied_Veh = getPedOccupiedVehicle(source) local Cargas = tonumber(getElementData(source, "DNL:Cargas")) or 0 local Random_Pos = math.random ( #Marker_Aleatorios ) if isPedInVehicle ( source ) then if (getElementModel (Occupied_Veh) == 413) then if Cargas >= 1 then
  2. Eu gostaria de colocar avatar na tela de login que ao escrevesse o nome, aparecesse o avatar desse usuário. Eu tenho isto, e está funcionando porém apenas quando o jogador faz login. Como posso colocar para aparecer o avatar ao escrever o nome no login? Obrigado pela ajuda desde já. local playername = getPlayerName(getLocalPlayer()) local avatar = getElementData(getLocalPlayer(), "avatar") or 1 if playername then if avatar >= 1 then dxDrawImage(x*639,y*306.5,x*94,y*94, "avatars/"..avatar..".png") end end
  3. I would like to check a part of my function, he works good but he is not checking and updating. local playername = getPlayerName(getLocalPlayer()) local avatar = getElementData(getLocalPlayer(), "avatar") if playername then if avatar >= 1 then dxDrawImage(x*639,y*306.5,x*94,y*94, "avatars/"..avatar..".png") else dxDrawImage(x*639,y*306.5,x*94,y*94,"gfx/avatar0.png") end end What i want is check this part of the function and when he don't detect the player name on log in, his avatar change immediately. I tried to use a timer but when i put it, this part of
  4. The point is.. I have an inventory that u press the item and the player wear a skin, if you press it again the item will give the old skin back to the player with a 10 seconds block to avoid bugs. But if the player leaves the game with the skin from the item that the player used before and the server don't give the old skin back when the player leaves, the old skin will dissapear forever.
  5. I would like to return it to the old skin when the player leaves the game, but it is not working. addEventHandler("onPlayerQuit",getRootElement(),function() local outskin = tonumber(getElementData(source, "skinout")) setElementModel(source, outskin) end) It's working good in-game!
  6. @IIYAMA Perfect! You're the best!
  7. elseif itemData["id"] == 34 then if checkPassiveTimer( "limit-item-id-34", true, 10000 ) then local emveiculo = getPedOccupiedVehicle ( localPlayer ) local outskin = tonumber(getElementData(localPlayer, "skinout")) if not emveiculo then if getElementData(localPlayer, "Male") == true then if getElementData(localPlayer, "WearingSkin") == false then skinatual = getElementModel(localPlayer) setElementData(localPlayer, "skinout", skinatual) setElementData(localPlayer, "WearingSkin", true) triggerServerEvent("itemAnims",localPlayer,loca
  8. Is giving me a nil value
  9. What i want is block this elseif itemData["id"] == 34 then for 10 seconds, but is not working
  10. PashaBiceps

    Timer

    Hello guys, the timer is not working very well. I think he is working just one time, when the player go into the server. What i did wrong? elseif itemData["id"] == 34 then local emveiculo = getPedOccupiedVehicle ( localPlayer ) local outskin = tonumber(getElementData(localPlayer, "skinout")) if not emveiculo then if getElementData(localPlayer, "Male") == true then if getElementData(localPlayer, "WearingSkin") == false then setTimer ( function(localPlayer) skinatual = getElementModel(localPlayer) setElementData(localPlayer, "skinout", skinatual)
  11. Resolveu, obrigado!
  12. PashaBiceps

    Old Skin

    Hello guys, I am trying to return the old skin to the player, but is not working, the player dont receive the old skin back ! Can you guys help me? local emveiculo = getPedOccupiedVehicle ( localPlayer ) local outskin tonumber(getElementData(localPlayer, "skinout")) if not emveiculo then if getElementData(localPlayer, "Male") == true then if getElementData(localPlayer, "WearingSkin") == false then skinatual = getElementModel(localPlayer) setElementData(localPlayer, "skinout", skinatual) setElementData(localPlayer, "WearingSkin", true) setT
×
×
  • Create New...