Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/03/19 in Posts

  1. 1 point
  2. You'd be better off saying it once here than repeating yourself numerous times on Discord.
    1 point
  3. dxDraw não se esconde. Apenas para de ser renderizado. Se fosse CEGUI, dai sim vc poderia ocultar sem destruir.
    1 point
  4. Então cara. É o seguinte: Você não poderá remover o eventHandler dessa sua função enquanto não der um nome a ela. A função precisa ter um nome para poder ser chamada depois. Exemplo de teste, use o comando /eae function drawRender () local lvl = getElementData(localPlayer, "Level") or 1 local exp = getElementData(localPlayer, "Exp") or 0 local needexp = lvl * 1 dxDrawRectangle(x*12, y*495, x*298, y*27, tocolor(0, 0, 0, 207), false) -- Nivel dxDrawRectangle(567*sW, 700*sH, -540*sW, 30*sH, tocolor(0, 51, 153)) dxDrawRectangle(567*sW, 700*sH, -540*sW, 30*sH, tocolor(0, 51, 153)) dxDrawText(string.format("%d", 100/(needexp/exp)).."%", 670*sW, 1350*sH, 400*sW, 80*sH, tocolor(0, 0, 0), 1.20, "default-bold", "center", "center") end addEventHandler("onClientRender", root, drawRender) function teste (cmd) removeEventHandler("onClientRender", root, drawRender) end addCommandHandler ("eae", teste)
    1 point
  5. Anexe o objeto no osso da mão do personagem. Para isso, use o Resource:Bone_attach (link de download está na página deste link)
    1 point
  6. addEventHandler("onPlayerLogin", root, function() bindKey(source, "l", "down", lights) bindKey(source, "j", "down", engine) end) addEventHandler("onResourceStart", resourceRoot, function() for _, v in pairs (getElementsByType("player")) do bindKey(v, "l", "down", lights) bindKey(v, "j", "down", engine) end end) --//Engine On / Off function engine (src, cmd) if getPedOccupiedVehicle (src) and getPedOccupiedVehicleSeat (src) == 0 then local vehicle = getPedOccupiedVehicle (src) if getVehicleEngineState (vehicle) == true then setVehicleEngineState (vehicle, false) outputChatBox ("Motor ligado!", src, 255, 0, 0) else setVehicleEngineState (vehicle, true) outputChatBox ("Motor desligado!", src, 0, 255, 0) end else return false end end addCommandHandler ("motor", engine) --//-- --//Vehicle Lights function lights (src, cmd) if getPedOccupiedVehicle (src) and getPedOccupiedVehicleSeat (src) == 0 then local vehicle = getPedOccupiedVehicle (src) if getVehicleOverrideLights (vehicle) == 1 then setVehicleOverrideLights (vehicle, 2) outputChatBox ("Luzes ligadas!", src, 0, 255, 0) else setVehicleOverrideLights (vehicle, 1) outputChatBox ("Luzes desligadas!", src, 255, 0, 0) end else return false end end addCommandHandler ("luzes", lights)
    1 point
  7. executeSQLQuery -- Use this to create your database / update the table you've created to add the modifications for your player. You can use INSERT, UPDATE and SELECT, if you check the examples they give a good demonstration of everything you need.
    1 point
  8. hello everybody i have an idea about creating admin panel but in php so if you have website you gonna but it on it and enter your admin account in server and every thing gonna be like server if your rank in server don't allow to you to kick the player then it will be same on the website but before i start am gonna ask you is it good idea so am gonna process in it it will have cheap price maybe 30-35 dollar and it's unlimited version and even i will try to add update system on it but is it good idea? and does any one interest to buy it or am gonna lose my time
    1 point
  9. No one would request a script and then wait months for it to be developed and then pay you money. Best bet is to create the script, release a few spoilers to catch their attention and you'll be bound to get some offers. All the best.
    1 point
  10. Como esta seu código? talvez um removeEventHandler resolve o problema.
    1 point
  11. Please download and run MTADiag and follow the instructions. Press 'n' when asked. Post any Pastebin URL MTADiag gives you
    1 point
  12. try /debugscript 3 and see
    1 point
  13. A Isso só pode ser mentira, '- Com meus 5 Anos de MTA Primeira vez que vejo alguém com nick igual ao meu.
    1 point
  14. 1. Você deve estudar lógica de programação se você procurar no YouTube tem alguns vídeos, só não mando agora pois estou no celular, a partir dai você já vai ter uma noção. 2. Agora você deve estudar as funções do MTA acessando a wiki. 3. E último passo é baixar alguns recursos e tentar entender oque cada parte faz, aconselho ir comentando linha por linha e se tiver dúvidas fique a vontade para usar nosso lindo forum pt-br que todos aqui somos uma família e ajudamos uns aos outros.
    1 point
  15. Troque o seguinte trecho para testar se abre: addEventHandler("onPlayerLogin", root, function (_, account) -- if not getAccountData(account, "salvarDx") then triggerClientEvent( source,"D13:abrirDx", getRootElement()) -- setAccountData(account, "salvarDx", true) -- end end)
    1 point
  16. FEATURES Compatible with all gamemodes. A monitor that allows the user to view the drone's camera. First person / Third person drone monitor. /drone - starts drone /droned - stops drone MEDIA https://community.multitheftauto.com/index.php?p=resources&s=details&id=13056
    1 point
  17. Some crashes in 32 bit Windows are caused by MTA running out of address space. The best solution is to use 64 bit Windows. For 32 bit Windows, these MTA settings may help a little: 1) Settings->Advanced->Fast CJ clothes loading->Off 2) Settings->Advanced->Streaming memory->Min 3) Remove all GTA:SA graphic mods (GTA:SA reinstall is ideal) Or, you could try enabling the 3GB switch in 32 bit Windows Details at this link In summary, for 32 bit Windows 7,8,10: 1) Find C:\Windows\system32\cmd.exe in Windows Explrorer 2) Right click on cmd.exe and select 'Run as Administrator' 3) In the black box enter this command: bcdedit /set IncreaseUserVa 3072 4) Press return 5) Restart computer 6) Pray
    1 point
  18. hey, whats that mean? and how can i fix the problem? when i open the console it will take 5 mins to start resources, etc..
    1 point
  19. Ele criou a conta 11 horas atrás. Antes não tinha ninguém mesmo.
    0 points
×
×
  • Create New...