MaRcell

Members
  • Content Count

    146
  • Joined

  • Last visited

Community Reputation

0 Neutral

About MaRcell

  • Rank
    Busta
  • Birthday 26/04/2000

Details

  • Gang
    GROVE STREET
  • Location
    Brazil
  • Occupation
    Scripter
  • Interests
    Aprender

Recent Profile Visitors

597 profile views
  1. 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
  2. MaRcell

    [HELP] MARKER

    yes , nice thanks
  3. MaRcell

    [HELP] MARKER

    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
  4. MaRcell

    [HELP] MARKER

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

    [HELP] MARKER

    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!
  6. msm eu colocando true ali no lugar do false no visible , nao aparece meu painel /=
  7. MaRcell

    [HELP] MARKER

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

    [HELP] MARKER

    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, tocolor(0 ,0 ,0), sy*30, false, tocolor(0 ,238, 0 ,255), nil, tocolor(28 ,28, 28,120), 5,true) label= dgsCreateLabel(2, 10,100, 90,"BEM VINDO A groveWindow STREET",false,groveWindow) label1= dgsCreateLabel(2, 50,10, 10,"é uma das principais gang de LS",false,groveWindow) label2= dgsCreateLabel(2, 70,20, 20,"A GS é uma gangue de rua",false,groveWindow) label3= dgsCreateLabel(2, 90,20, 20,"afro-americana e uma das mais",false,groveWindow) label4= dgsCreateLabel(2, 110,20, 20,"antigas gangues de rua em LS",false,groveWindow) label5= dgsCreateLabel(2, 160,20, 20,"RIVAIS : BALLAS, VAGOS",false,groveWindow) buttonEntrar = dgsCreateButton(2, 210,100,40,"ENTRAR!", false, groveWindow ) buttonSair= dgsCreateButton(100, 210,100,40,"SAIR!", false, groveWindow ) dgsSetFont ( label, "sans" ) dgsSetFont ( label1, "sans" ) dgsSetFont ( label2, "sans" ) dgsSetFont ( label3, "sans" ) dgsSetFont ( label4, "sans" ) dgsSetFont ( label5, "default-bold" ) addEventHandler ("onClientMarkerHit",root, function () if (source == markergrove) then dgsSetVisible(groveWindow,false) showCursor(true) end end)
  9. 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, tocolor(0 ,0 ,0), sy*30, false, tocolor(0 ,238, 0 ,255), nil, tocolor(28 ,28, 28,120), 5,true) label= dgsCreateLabel(2, 10,100, 90,"BEM VINDO A groveWindow STREET",false,groveWindow) label1= dgsCreateLabel(2, 50,10, 10,"é uma das principais gang de LS",false,groveWindow) label2= dgsCreateLabel(2, 70,20, 20,"A GS é uma gangue de rua",false,groveWindow) label3= dgsCreateLabel(2, 90,20, 20,"afro-americana e uma das mais",false,groveWindow) label4= dgsCreateLabel(2, 110,20, 20,"antigas gangues de rua em LS",false,groveWindow) label5= dgsCreateLabel(2, 160,20, 20,"RIVAIS : BALLAS, VAGOS",false,groveWindow) buttonEntrar = dgsCreateButton(2, 210,100,40,"ENTRAR!", false, groveWindow ) buttonSair= dgsCreateButton(100, 210,100,40,"SAIR!", false, groveWindow ) dgsSetFont ( label, "sans" ) dgsSetFont ( label1, "sans" ) dgsSetFont ( label2, "sans" ) dgsSetFont ( label3, "sans" ) dgsSetFont ( label4, "sans" ) dgsSetFont ( label5, "default-bold" ) addEventHandler ("onClientMarkerHit",root, function () if (source == markergrove) then dgsSetVisible(groveWindow,false) showCursor(true) end end)
  10. MaRcell

    [HELP] SHADER

    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)
  11. 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 )
  12. eu queria ta usando o weapon selector , mas so ele sem a hud default do mta queria saber se tem como eu fazer isso ?
  13. MaRcell

    LOGIN BUG

    but it is not dx and framework / =
  14. 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; background-color: #B5E61E; cursor: pointer; } button:hover { color: #FFFFFF; background-color: #467C00; cursor: pointer; } ]])) self:setBounds(459, 216, 448, 310) self:setBackground(tocolor(80, 80 ,80, 200)) self.subPanel = Panel() self.subPanel:setBackground(tocolor(0, 135, 239 ,200)) self.subPanel:setBounds(0,0, 448, 50) self:add(self.subPanel) self.labelInfo = Label() self.labelInfo:setForeground(tocolor(255,255,255)) self.labelInfo:setBackground(tocolor(0, 0, 0)) self.labelInfo:setScale(2.0) self.labelInfo:setText("MTA Torcidas") self.labelInfo:setAlignment(Label.CENTER) self.labelInfo:setBounds(0,0, 448, 50) self:add(self.labelInfo) self.labelUser = Label() self.labelUser:setForeground(tocolor(255,255,255)) self.labelUser:setBackground(tocolor(0, 0, 0)) self.labelUser:setScale(2.0) self.labelUser:setText("Login:") self.labelUser:setAlignment(Label.LEFT) self.labelUser:setBounds(10, 60, 100, 50) self:add(self.labelUser) self.labelSenha = Label() self.labelSenha:setForeground(tocolor(255,255,255)) self.labelSenha:setBackground(tocolor(0, 0, 0)) self.labelSenha:setScale(2.0) self.labelSenha:setText("Senha:") self.labelSenha:setAlignment(Label.LEFT) self.labelSenha:setBounds(10, 120, 100, 50) self:add(self.labelSenha) self.userEdit = TextField() self.userEdit:setForeground(tocolor(0,0,0,200)) self.userEdit:setBackground(tocolor(255, 255, 255,200)) self.userEdit:setBounds(110, 60, 300, 50) self:add(self.userEdit) self.senhaEdit = PasswordField() self.senhaEdit:setForeground(tocolor(0,0,0,200)) self.senhaEdit:setBackground(tocolor(255, 255, 255,200)) self.senhaEdit:setBounds(110, 120, 300, 50) self:add(self.senhaEdit) self.loginButton = Button("Logar") self.loginButton:setForeground(tocolor(0,0,0,200)) self.loginButton:setBackground(tocolor(255, 255, 255,200)) self.loginButton:addMouseListener(self) self.loginButton:addActionListener(self) self.loginButton:setBounds(260, 180, 150, 50) self:add(self.loginButton) self.registerInfo = Label() self.registerInfo:setForeground(tocolor(255,255,255)) self.registerInfo:setBackground(tocolor(0, 0, 0)) self.registerInfo:setScale(2.0) self.registerInfo:setText("Não tem conta?") self.registerInfo:setAlignment(Label.LEFT) self.registerInfo:setBounds(10, 250, 100, 50) self:add(self.registerInfo) self.registerButton = Button("Registre - se") self.registerButton:setForeground(tocolor(0,0,0,200)) self.registerButton:setBackground(tocolor(255, 255, 255,200)) self.registerButton:addMouseListener(self) self.registerButton:addActionListener(self) self.registerButton:setBounds(260, 250, 150, 50) self:add(self.registerButton) self:setVisible(false) return self end Toolkit.getInstance():add(Login.getInstance()) function Login:actionPerformed(e) if (e.source == self.loginButton) then local username = self.userEdit:getText() -- puxa texto edit do login: exemplo Shinigami local password = self.senhaEdit:getText() -- puxa a senha texto no senha: 123456 if (username ~= "") and (password ~= "") then -- se o edit de user e o edit de senha não estive em branco então triggerServerEvent("submitLogin", getRootElement(), localPlayer, username, password) else outputChatBox("Digite o login e a senha!", 255, 0, 0, false) end playSoundFrontEnd(6) elseif (e.source == self.registerButton) then local username = self.userEdit:getText() -- puxa texto edit do login: exemplo Shinigami local password = self.senhaEdit:getText() -- puxa a senha texto no senha: 123456 if (username ~= "") and (password ~= "") then -- se o edit de user e o edit de senha não estive em branco então triggerServerEvent("submitRegister", getRootElement(), localPlayer, username, password) else outputChatBox("Digite o login e a senha!", 255, 0, 0, false) end playSoundFrontEnd(6) end end function Login:mouseEntered(e) -- isso aqui é uma função metodo por que ela Login: a partir do momento que tem Login: vc ta acessando o self if (e.source == self.loginButton) or (e.source == self.registerButton) then playSoundFrontEnd(3) end end function joinLogin() fadeCamera(true) setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) Login.getInstance():setVisible(true) showCursor(true) end addEvent("joinLogin", true) addEventHandler("joinLogin", getRootElement(), joinLogin) function hideLoginWindow() exports.painelGTO:showGUItimes() Login.getInstance():setVisible(false) showCursor(false) end addEvent("hideLoginWindow", true) addEventHandler("hideLoginWindow", getRootElement(), hideLoginWindow) function hideRegisterWindow() exports.painelGTO:showGUItimes() Login.getInstance():setVisible(false) showCursor(false) end addEvent("hideRegisterWindow", true) addEventHandler("hideRegisterWindow", getRootElement(), hideRegisterWindow)