Jump to content

MandaBraza

Members
  • Posts

    12
  • Joined

  • Last visited

About MandaBraza

  • Birthday April 17

Recent Profile Visitors

1,069 profile views

MandaBraza's Achievements

Square

Square (6/54)

4

Reputation

  1. Você pode fazer isso usando tostring e tonumber. como o próprio nome já diz, a função vai converter de texto para número ou de número para texto. editPistola = guiCreateEdit(0.34, 0.46, 0.13, 0.04, "Munições Pistola", true) if (tonumber(guiGetText(editPistola))) then -- executa seu trigger else outputChatBox("número invalido") end
  2. I really dont know what is happening with your code. I tried to adapt but nothing works. Here mine version:
  3. Show the updated code, maybe can i integrate him with part of my code and solve this. I'm still think we can solve that using XML.
  4. I tested your code, the car seems normal to me. I created a recorder sometime ago (the play record was made by my friend), and the car had the same delay problem. Maybe this is a problem from mta.
  5. Try to save the path into a XML using table.insert and onClientRender, should resolve.
  6. function chamarUber(player, cmd, ...) local msg = table.concat({...}, " ") for k,v in ipairs (getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(v)), aclGetGroup("Uber")) then outputChatBox("#ff0000(UBER) #ffffff" ..getPlayerName(player).." #ffffffpediu um uber em: "..msg, v, 255, 255, 255, true) end end outputChatBox("#ff6464[UBER] #ffffffUber chamado com sucesso!", player, 255, 255, 255, true) end addCommandHandler("uber", chamarUber)
  7. Are you using dxCreateRenderTarget? looks like yes, if yes, use dxSetBlendMode. here's an example from wiki: function updateRenderTarget() dxSetRenderTarget(yourRenderTarget, true) dxSetBlendMode("modulate_add") -- Set 'modulate_add' when drawing stuff on the render target dxDrawText("Testing "..getTickCount(), 0, 0, 0, 0, tocolor(255, 255, 255, 255), 2, "clear") dxSetBlendMode("blend") -- Restore default blending dxSetRenderTarget() end As @sanyisasha said, seems had another dxDrawText in background of 1st one.
  8. team = createTeam("MINHA TEAM", 255, 165, 0) addEventHandler("onPlayerLogin", root, function() local account = getAccountName(getPlayerAccount(source)) if (isObjectInACLGroup("user." ..account, aclGetGroup("teamName"))) then -- "teamName" é o nome do seu grupo que você criou na acl. setPlayerTeam(source, team) setTeamFriendlyFire(team, false) end end) addEventHandler("onPlayerLogout", root, function() setPlayerTeam(source, nil) end)
  9. function getNearestPlayer() local x,y,z = getElementPosition(localPlayer) for i, v in ipairs(getElementsByType("player")) do local distance = getDistanceBetweenPoints3D(x, y, z, getElementPosition(v)) if distance <= 20 then outputChatBox("ta perto") else outputChatBox("ta longe") end end end addCommandHandler("near", getNearestPlayer)
  10. function playersWantedLevel(player, cmd, getTarget) local target = getPlayerFromParticalName(getTarget) if (target) then if (isElement(target)) then local level = getPlayerWantedLevel(player) outputChatBox(getPlayerName(target).. " #ffffffestá com: " ..level.. " estrelas de procurado!", root, 255, 255, 255, true) end else outputChatBox("Não foi encontrando nenhum player com esse nome.", 255, 0, 0) end end addCommandHandler("getlevel", playersWantedLevel) function getPlayerFromParticalName(thePlayerName) local thePlayer = getPlayerFromName(thePlayerName) if thePlayer then return thePlayer end for _,thePlayer in ipairs(getElementsByType("player")) do if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), thePlayerName:lower(), 1, true) then return thePlayer end end return false end Seria isso?
  11. local peds = {} function ped(id, model, x,y,z, rotz) local pedTable = {} pedTable.newPed = createPed(model, x,y,z, rotz) setElementFrozen(pedTable.newPed, true) setElementCollisionsEnabled(pedTable.newPed, false) setElementDimension(pedTable.newPed, getElementDimension(localPlayer)) table.insert(peds, pedTable) end function execute() for i, v in pairs(peds) do if (v.id == "1") then -- do whatever you want end end end bindKey("f", "down", execute) ped("1", 65, 2488.64160, -1664.28223, 13.34375, 90) -- grove street
×
×
  • Create New...