MaRcell

Members
  • Content Count

    146
  • Joined

  • Last visited

Everything posted by MaRcell

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

    VipSystem

    if (getElementData(v,"isVIP") then error : expected near then
  16. MaRcell

    VipSystem

    It gave error in the part of acl, I say that it has no value, do I have to put it separate?
  17. MaRcell

    VipSystem

    I have a vip system and I wanted to know how to put those nametag over the head of the player only to whom and vip, what functions do you need?
  18. MaRcell

    VIP

    Eu tenho um sistema de vip e eu queria saber como coloca aqueles nametag encima da cabeça do jogador so pra quem e vip , qual funçoes necessarias?
  19. MaRcell

    ACL BUG

    I already decided, thank you
  20. MaRcell

    ACL BUG

    Did not work
  21. MaRcell

    ACL BUG

    I made a system to open the panel by acl but all players that enter the server have the right to open because? function showPanel(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("CHOQUE")) then triggerClientEvent(thePlayer, "opencho", getRootElement()) end end function onResStart() for index, player in ipairs(getElementsByType("player")) do bindKey(player, "F4", "down", showPanel) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onResStart) function onPlayerJoin() bindKey(source, "F4", "down", showPanel) end addEventHandler("onPlayerJoin", getRootElement(), onPlayerJoin) function cleanAll(player) for index, player in ipairs(getElementsByType("player")) do unbindKey(player, "F4", "down", showPanel) end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), cleanAll) function displayServerMessage(source, message, type) triggerClientEvent(source, "msgclear", getRootElement(), message, type) end function uniforme() setPedSkin(source, 281) displayServerMessage(source, "Você vestiu o uniforme do CHOQUE", "warning") end addEvent("uniform",true) addEventHandler("uniform", root, uniforme) function arma() giveWeapon(source, 25, 1) giveWeapon(source, 3, 1) giveWeapon(source, 41, 1) setWeaponAmmo(source, 25, 100) setWeaponAmmo(source, 41, 500) displayServerMessage(source, "Você pegou armamento", "warning") end addEvent("arm",true) addEventHandler("arm", root, arma) Vtr = {} function viat() local x, y, z = getElementPosition(source) if Vtr[source] and isElement(Vtr[source]) then destroyElement(Vtr[source]) end Vtr[source] = createVehicle (598, x, y, z) displayServerMessage(source, "Você chamou uma Viatura", "warning") setElementRotation(Vtr[source],0,0,90) warpPedIntoVehicle (source, Vtr[source]) end addEvent("via", true) addEventHandler("via", root, viat) function DestroyVeiculo () destroyElement (Vtr[source]) end addEventHandler ("onPlayerLogout", root, DestroyVeiculo) addEventHandler ("onPlayerQuit", root, DestroyVeiculo) addEventHandler ("onPlayerWasted", root, DestroyVeiculo) function escu() escudo = createObject(3062,0,0,0) exports["bone_attach"]:attachElementToBone(escudo, source,3, -0, 0.8,-0.2,185,-344, 15) -- protect = createObject(1337,0,0,0) -- exports["bone_attach"]:attachElementToBone(protect, source,3, -0.7, 0.8,-0.2,185,-360, 100) --setElementAlpha(protect, 0) displayServerMessage(source, "Você pegou o escudo do CHOQUE", "warning") end addEvent("esc", true) addEventHandler("esc", root, escu) function vidac() setElementHealth(source, 100) setPedArmor(source, 100) displayServerMessage(source, "Você restaurou sua vida", "warning") displayServerMessage(source, "e vestiu um colete!", "warning") end addEvent("vc", true) addEventHandler("vc", root, vidac) function ds() destroyElement(escudo, source) displayServerMessage(source, "Você destruiu seu escudo", "warning") end addEvent("desc", true) addEventHandler("desc", root, ds)
  22. MaRcell

    ERROR

    http://imgur.com/a/csyE6 LINE 1 ERROr addEvent("liderShout", true) function liderShout(textox) if isTimer(TimerF) then killTimer(TimerF) end if texto then texto:destroy() end texto = Text.new(textox, screenWidth / 2, screenHeight - dxGetFontHeight(3, "bankgothic") / 2 - screenHeight / 2 + 225, false, "bankgothic", 3, "left") texto:color(106, 90, 205, 255) texto:scale(2) texto:type("border", 2, 0, 0, 0, 255) TimerF = setTimer(function() texto:destroy() end,5000,1) end addEventHandler("liderShout", root, liderShout)
  23. MaRcell

    Doubt commands

    Type I want to create a system that the player that is in the acl group will be able to use the commands type / pull and tals