• Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About MaRcell

  • Rank
  • Birthday 26/04/2000


  • Gang
  • Location
  • Occupation
  • Interests

Recent Profile Visitors

628 profile views
  1. how would it be right to use, for the chat to appear just for me? never used outpuchatbox on the client side
  2. loadstring(exports.dgs:dgsImportFunction())() local sw, sh = guiGetScreenSize() local sx, sy = (sw/1920), (sh/1080) progressbar = dgsCreateProgressBar(80,730, 226, 34,false,nil,nil,tocolor(28 ,28 ,28, 120),nil,tocolor(255,255, 255, 120) , nil) text = dgsCreateLabel (0.02,0.04,0.94,0.2,"LEVEL: " ..(getElementData(localPlayer,"Level") or 0),true,progressbar,tocolor(0 ,0 ,0,255), nil, nil,nil,nil,nil,"center") font = dgsSetFont(text , "bankgothic") xp = 0 setTimer(function () local team = getPlayerTeam(localPlayer) if team then dgsSetVisible(progressbar,true) else dgsSetVisible(progressbar, false) end end,1000,0) setTimer(function () local xp = getElementData( localPlayer, "xp") local level = getElementData(localPlayer, "level") if xp and level then if xp >=100 then setElementData(localPlayer,"level",level +1) outputChatBox("#FFFFFF[GANG] #00FFFF Você Passou pro level "..(getElementData(localPlayer,"level").. " na sua gang.",localPlayer,255, 255, 255, true ) setElementData(localPlayer,"xp", 0) dgsProgressBarSetProgress(progressbar,0) else setElementData(localPlayer,"xp",xp + 10) dgsProgressBarSetProgress(progressbar,xp+10) end dgsSetText(text,"LEVEL: "..level) end end,60000,0) is giving error in the outputChatBox, in the localPlayer, ta returning q and a value nil do not understand it seems all right ..
  3. local screenx, screeny = guiGetScreenSize() local sx, sy = (screenx/1920), (screeny/1080) loadstring(exports.dgs:dgsImportFunction())() local blip = nil local blip2 = nil local width = 700 local height = 700 GangMarcar = dgsCreateWindow((screenx - sx*720)/2, (screeny - sy*810)/2, sx*720, sy*810, "MARQUE UM DESTINO PARA SUA GANG", false, tocolor(0, 0, 0, 255), sy*50, nil, tocolor(0, 255, 255, 150), nil, tocolor(0, 0, 0, 150), sy*5, true) dgsWindowSetMovable(GangMarcar, false) dgsWindowSetSizable(GangMarcar, false) dgsSetVisible(GangMarcar, false) GangMarcarMap = dgsCreateImage(sx*10, sy*10, width, width, "Images/radar.jpg", false, GangMarcar, tocolor(255,255,255,255)) GangMarcarLabel0 = dgsCreateLabel(sx*10, sy*720, sx*480, sy*20, "BOTÃO DIREITO DO MOUSE PRA TIRAR", false, GangMarcar, tocolor(255, 255, 0, 255), sy*1.5, sy*1.5, sy*1.5, sy*1.5, tocolor(0, 0, 0, 255), "right", "center") GangMarcarSair = dgsCreateButton(sx*610, sy*720, sx*100, sy*30, "SAIR", false, GangMarcar, tocolor(0, 0, 0, 255), sy*1.5, sy*1.5, nil, nil, nil, tocolor(255, 77, 77, 150), tocolor(255, 0, 0, 150), tocolor(255, 61, 153, 150)) addEventHandler("onDgsMouseClick", getRootElement(), function(button, state, absoluteX, absoluteY) if (button == "left" and state == "down") then if (source == GangMarcarMap) then elseif (source == GangMarcarSair) then dgsSetVisible(GangMarcar, false) dgsSetEnabled(Gang, true) painelsVisivel = nil end end end) Hello guys, my problem is to calculate the click on the gui map with the position of gta
  4. MaRcell


    I was wondering if there is any way to improve this system of ped / bot, when the bot sees the player he already shoots, and how do I create more bots on the msm team for them to try to kill my player? and like I want them to attack me without me attacking them ped = createPed(106, 2439.27856, -2096.04248 ,13.54688) addEventHandler("onClientPedDamage", getRootElement(), function(attacker) if source == ped then givePedWeapon(ped, 27, 500, true) setPedControlState(source, "fire", true) if attacker then setPedAimTarget(source,getElementPosition(attacker)) end end end )
  5. MaRcell


    would i have to use a spawn player for each value in the table?
  6. MaRcell


    it is because afterwards I will put other values in the table so from the table otherwise I would only do a spawnPlayer (source, x, y, z)
  7. MaRcell


    how do I pull the value from the table, for the spawn? I have doubts I thought it was so but it was not lol local spawnLocation = { {2028.17480 ,-1405.71252 ,17.22696} } function spawn() spawnPlayer(source,spawnLocation) fadeCamera(source, true) setCameraTarget(source, source) end addEventHandler( "onPlayerWasted", getRootElement(), spawn )
  8. MaRcell

    [HELP] BAN

    well, I did this system of banning player by command, but it is not going, I write / iban ID, days and nothing happens .. will there be a problem with the account I made addCommandHandler("iban", function(playerSource, commandName, id, days, ...) if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(playerSource)), aclGetGroup ("Admin")) then if(id) then local playerID = tonumber(id) seconds = tonumber(seconds) or 60 if(playerID) then local targetPlayer = getPlayerID(playerID) if targetPlayer then local seconds = days*86400 local reason = table.concat({...}, " ") if ( hasObjectPermissionTo (playerSource, "function.banPlayer" ) ) then outputChatBox("#00FFFFO jogador "..getPlayerName(targetPlayer).." foi banido por ".. tostring(seconds).." dias por "..getPlayerName(playerSource)..". Motivo: "..reason..".",root,0,0,0,true) banPlayer(targetPlayer , false, false, true, getRootElement(), reason, seconds) end end end end end end)
  9. MaRcell


    it is a function only of those who are in that acl may be kicking the player but it doesn’t happen due to an error systemAdm/a.Lua:99: cannot use '...' outside a vararg function near '...' addCommandHandler("ikick", function(playerSource,commandName,id) if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(playerSource)), aclGetGroup ("Admin")) then if(id) then local playerID = tonumber(id) if(playerID) then local targetPlayer = getPlayerID(playerID) if targetPlayer then local reason = table.concat({...}," ") kickPlayer ( playerID, PlayerSource, reason ) end end end end end
  10. MaRcell


    I wanted to know the functions that I could create a script to / sell, / buy drugs, the player could start working on selling drugs for a marker and would have a panel of what drugs he would have and the player who bought the drug would also have one panel of what drugs do I buy
  11. MaRcell


    yes , nice thanks
  12. MaRcell


    it hasn't worked yet the panel opens as soon as I turn on the resource and doesn't open when I pass the marker
  13. MaRcell


    ah got it i didn't know about this value question thank you very much !!
  14. MaRcell


    But without the marker, if I put the panel to appear without a marker, it appears normally so I thought it wasn’t the problem of the coordinates but I will test it thanks!
  15. msm eu colocando true ali no lugar do false no visible , nao aparece meu painel /=