Jump to content

Furzy

Members
  • Posts

    161
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Furzy

  1. é so pegar o modelo que ta no wiki jogar em alguma script server-side. Obs: poste na área correta
  2. Pode converter sim, mas talvez tera que dar umas editada nas funçoes db
  3. Primeiramente cancele o evento onPlayerChangeNick cancela o comando nick com onPlayerCommand e pega o nick dele a primeira vez que ele entrar no servidor e salva com setAccountData ou xmldata e poste na area de lingua portuguesa
  4. try client side and remove getRootElement() from outputChatBox, or change localPlayer to thePlayer function element(thePlayer,cm,lang)
  5. local lang1 = "english" local lang2 = "polski" function element(cm,lang) if lang then if lang == tostring(lang1) then setElementData(localPlayer,"language",lang1) elseif lang == tostring(lang2) then setElementData(localPlayer,"language",lang2) end end end addCommandHandler("setlanguage",element) function chatbox() if getElementData(localPlayer,"language") == lang1 then outputChatBox("#123456[!] [DM]: #FFFFFF"..getPlayerName(killer).." #123456KILLED #FFFFFF"..getPlayerName(source).." #123456!", getRootElement(), 255, 0, 0, true) ----- English language elseif getElementData(localPlayer,"language") == lang2 then outputChatBox("#123456[!] [DM]: #FFFFFF"..getPlayerName(killer).." #123456Zabil si #FFFFFF"..getPlayerName(source).." #123456!", getRootElement(), 255, 0, 0, true) end end
  6. Vc setou seu emprego para Transportador? setElementData(p,"Emprego","Transportador")
  7. Ai eu nao sei, só algumas animações que permite movimentar no mta, como a CARRY partial
  8. what the best way? setElementData(player,"value",1) data = {} for k,v in ipairs(data) do table.insert(k,v) end just example i know its not right
  9. attachElements setElementPosition you can use bone_attach resource too
  10. Hey all, some tips to get best performance in server? use more tables than elementdata? (im not sure, i saw it in any place) reduce scripts size, anymore tips?
  11. tenta trocar o evento para onPlayerLogin ai vc troca o plr por source novamente
  12. SkinPickup = createPickup(1481.1931152344,-1758.419921875,17.53125, 3, 1275, 000) MarkerTeste = createMarker(1481.1931152344,-1758.419921875,16.53125, "cylinder", 1.5, 255,255,255,50) function MarkerVisible (plr) local account = getPlayerAccount(plr) if getAccountData(account, "FirstTime") then setElementVisibleTo ( MarkerTeste, plr, true ) else setElementVisibleTo(MarkerTeste, plr, false) end end addEventHandler("onResourceStart", root, MarkerVisible) o if getAccountData(account,"FirstTime") then ja retorna verdadeiro, mas voce pode usar if getAccountData(account,"FirstTime") == true then e para falso if getAccountData(account,"FirstTime") == false then O source desse evento é root.
  13. MTA É EM .Lua mas voce pode dar uma olhada em https://nightly.multitheftauto.com/ https://github.com/multitheftauto/mtasa-blue
  14. Na sua script do chat onde tiver o getPlayerName, troque pelo elemento do script RG exemplo outputChatBox(" "..getElementData(source,"NomeRG").." " ..chat,root,255,255,255)
  15. o convertnumber vai por numeros como 100000 para 100.000 function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end local caixa = getElementData(localPlayer,"Bank:Caixa") local convertido = convertNumber(caixa) -- exemplo dxDrawText("BANCO"..convertido, x*1500, y*86, x*158, y*37, tocolor(255, 255, 255, 255), x*1.30, "arial", "left", "top", false, false, false, false, false) caso queira usar
  16. Ja tentou tirar o convertnumber pra testar? caixa = getElementData(localPlayer, "Bank:Caixa") or 0
  17. function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end joga isso na sua script
  18. Ta dizendo que sua db ta trancada, tenta excluir ela
  19. Ele pega a variável TX e quando o player entra na sela o TX recebe um certo valor e assim vai, se o valor de tx for maior que o outro vai spawn mais ao lado como tem o +tx na coord X Player preso tx recebe tx + (valor) se o valor for maior entao a coord x vai ser maior (+tx) e os valores estao 4.7, 6.1 etc por causa da posição na cela. um jeito melhor se vc quiser crie markers ou colshapes mas eu acho assim muito mais facil kk
  20. Você ta testando /animacao nome ? local customBlockName = "myNewBlock" local IFP = engineLoadIFP( "python.ifp", customBlockName ) if not IFP then outputChatBox( "Failed to load'" ) end function setanimation( test, animationName ) if IFP then setPedAnimation( localPlayer, customBlockName, animationName ) end end addCommandHandler( "animacao", setanimation ) teste por o block das animaçoes python no myNewBlock
×
×
  • Create New...