Jump to content

MaRcell

Members
  • Content Count

    160
  • Joined

  • Last visited

Everything posted by MaRcell

  1. so on my system when i'm going to set something on the player and take it with setTimer dps for 9 seconds, won't you? will it be because that is not all that has to do to put setTimer inside the function? elseif (type == "Crack") then local inventory = getElementData(client,"inventory") if inventory[type] then inventory[type].amount = inventory[type].amount - 1 outputChat
  2. how would it be right to use, for the chat to appear just for me? never used outpuchatbox on the client side
  3. 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(progr
  4. 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,
  5. MaRcell

    [HELP]BOTS

    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 setPedAimTa
  6. MaRcell

    [HELP] SPAWN

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

    [HELP] SPAWN

    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)
  8. MaRcell

    [HELP] SPAWN

    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 )
  9. 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 lo
  10. MaRcell

    [HELP] IKICK

    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 t
  11. MaRcell

    [HELP]SCRIPT

    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
  12. yes , nice thanks
  13. 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
  14. ah got it i didn't know about this value question thank you very much !!
  15. 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!
  16. msm eu colocando true ali no lugar do false no visible , nao aparece meu painel /=
  17. yes, or false it was only for a test since with true the panel would not open only the cursor the problem is that my panel doesn't open, just open the msm cursor having true there instead of false
  18. I am creating a script with dgs a gang panel, so that the marker does not open my panel will I have done something wrong? for me it's all right. obs: I don't know how to move with dgs local screenx, screeny = guiGetScreenSize() local sx, sy = (screenx/1920), (screeny/1080) loadstring(exports.dgs:dgsImportFunction())() ------groveWindow STREET------------- local markergrove = createMarker ( 2498.9873046875, -1685.6142578125, 13.446597099304 -1,"cylinder", 1.5, 0 ,255 ,0 ,170) groveWindow= dgsCreateWindow (sx*20, sy*300, sx*300, sy*400, "GROVE STREET", true
  19. Eu estou criando um script com dgs um painel de gang , so que a marker nao abre meu painel sera que eu fiz algo errado ? pra min ta tudo certo . obs : nao sei mecher mto com dgs local screenx, screeny = guiGetScreenSize() local sx, sy = (screenx/1920), (screeny/1080) loadstring(exports.dgs:dgsImportFunction())() ------groveWindow STREET------------- local markergrove = createMarker ( 2498.9873046875, -1685.6142578125, 13.446597099304 -1,"cylinder", 1.5, 0 ,255 ,0 ,170) groveWindow= dgsCreateWindow (sx*20, sy*300, sx*300, sy*400, "GROVE STREET", true, to
  20. I was wondering how I can be making a weapon shader script, like an ak 47 with several different skins, examples (one camouflaged skin, one red and such)
  21. Eu queria saber como eu posso estar fazendo um script de shader em armas , tipo uma ak 47 com varias skins diferentes , exemplos ( uma skin camuflada , outra vermelha e tals )
  22. eu queria ta usando o weapon selector , mas so ele sem a hud default do mta queria saber se tem como eu fazer isso ?
  23. MaRcell

    LOGIN BUG

    but it is not dx and framework / =
  24. MaRcell

    LOGIN BUG

    My login does not appear on the screen. LINK https://ibb.co/n1visR local super = Class("Login", Container3D, function() static.getInstance = function() return LuaObject.getSingleton(static) end end).getSuperclass() function Login:paintComponent(g) local x, y = self:getLocationOnScreen() local w = self.width local h = self.height g:drawSetColor(self:getBackground()) g:drawFilledRect(x, y, w, h) super.paintComponent(self, g) end function Login:init() super.init(self) self:setStylesheet(StylesheetParser():parsestr([[ button { color: #000000; back
×
×
  • Create New...