Jump to content

[N]inja

Members
  • Posts

    21
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

[N]inja's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. desculpe function closePanel(_,state) if isEventHandlerAdded("onClientRender", root, acessingUI) then if state == "both" then if isCursorOnElement(screenW * 0.4619, screenH * 0.5820, screenW * 0.0771, screenH * 0.1042) then playSound("sfx/hit.mp3", false) --setTimer( function() removeEventHandler("onClientRender", root, acessingUI) addEventHandler("onClientRender", root, caixaUI) --end, 3000, 1) end end end if isEventHandlerAdded("onClientRender", root, caixaUI) then if state == "down" then if isCursorOnElement(x*1068, y*94, x*36, y*38) then showCursor(false) showChat(true) setElementData(localPlayer, "Notification", false) setElementData(localPlayer, "Notification:S", false) playSound("sfx/hit.mp3", false) removeEventHandler("onClientRender", root, caixaUI) end end end if isEventHandlerAdded("onClientRender", root, transUI) then if state == "down" then if isCursorOnElement(x*1068, y*94, x*36, y*38) then showCursor(false) setElementData(localPlayer, "Notification", false) setElementData(localPlayer, "Notification:S", false) showChat(true) playSound("sfx/hit.mp3", false) grid:SetVisible(false) removeEventHandler("onClientRender", root, transUI) changeVisibility("1", false) end end end if isEventHandlerAdded("onClientRender", root, depositUI) then if state == "down" then if isCursorOnElement(x*1068, y*94, x*36, y*38) then showCursor(false) showChat(true) playSound("sfx/hit.mp3", false) setElementData(localPlayer, "Notification", false) setElementData(localPlayer, "Notification:S", false) changeVisibility("2", false) removeEventHandler("onClientRender", root, depositUI) end end end if isEventHandlerAdded("onClientRender", root, sacUI) then if state == "down" then if isCursorOnElement(x*1068, y*94, x*36, y*38) then showCursor(false) setElementData(localPlayer, "Notification", false) setElementData(localPlayer, "Notification:S", false) showChat(true) playSound("sfx/hit.mp3", false) removeEventHandler("onClientRender", root, sacUI) changeVisibility("3", false) end end end if isEventHandlerAdded("onClientRender", root, sacUI) then if state == "down" then if isCursorOnElement(x*502, y*564, x*320, y*56) then playSound("sfx/hit.mp3", false) removeEventHandler("onClientRender", root, sacUI) addEventHandler("onClientRender", root, caixaUI) changeVisibility("3", false) end end end if isEventHandlerAdded("onClientRender", root, depositUI) then if state == "down" then if isCursorOnElement(x*502, y*564, x*320, y*56) then playSound("sfx/hit.mp3", false) removeEventHandler("onClientRender", root, depositUI) addEventHandler("onClientRender", root, caixaUI) changeVisibility("2", false) end end end end addEventHandler("onClientClick", root, closePanel)
  2. Como Faço Pra Em Vez De Clicar E Esperar Alguns Segundos E Mudar Para O Painel, Segurar Por 3 Segundos E Aparecer A Função function closePanel(_,state) if isEventHandlerAdded("onClientRender", root, acessingUI) then if state == "down" then if isCursorOnElement(screenW * 0.4619, screenH * 0.5820, screenW * 0.0771, screenH * 0.1042) then playSound("sfx/hit.mp3", false) setTimer( function() removeEventHandler("onClientRender", root, acessingUI) addEventHandler("onClientRender", root, caixaUI) end, 3000, 1) end end end end
  3. function abrir( key, keyState ) --if not isPedInVehicle ( localPlayer ) and isPedInVehicle ( localPlayer ) then if ( keyState == 'down' ) then addEventHandler ("onClientRender", root, dx) showCursor (true) som = playSound("sfx/effect.mp3") painel2 = true setElementData ( localPlayer, "shader", true ) elseif ( keyState == 'up' ) then showCursor (false) setElementData ( localPlayer, "shader", false ) stopSound(som) painel2 = false removeEventHandler ("onClientRender", root, dx) -- end end end bindKey( 'm', 'down', abrir ) bindKey( 'm', 'up', abrir ) unbindKey ('mouse_wheel_up') quero remover a troca de arma pelo q, e, mouse_wheel_up e mouse_wheel_down
  4. function pegarMoney (source) if getElementData(source, "MochilaRoubo") == true then if getElementData(source, "TS:Assaltando") == true then setElementData(source, "TS:Assaltando", false) setPedAnimation(source, "bomber", "bom_plant", 1, true, false, true) exports.sistemaMochila:createBag (source, 1548, 0, -0.005, -0.18, 0, 0, 90) givePlayerMoney(source, 500) setElementVisibleTo(marker, root, false) setTimer(function() setPedAnimation(source) end, 7*1000, 1 ) end end end
  5. function setItem(player,id,amount) exports["nomedomoddoinventario"]:giveItem(player,id,1, amount, 1) end function PegarArmamento (player) setItem(player,49, 1) end addCommandHandler("arma", PegarArmamento) -- aqui esta setando 1 m4 no inv como usar function PegarArmamento (player) setItem(player,aqui e o id do item, aqui e a quantidade que vai dar) end addCommandHandler("arma", PegarArmamento)
  6. Erro: 'end' expected (to close 'function' at line 5) near '<eof>' Server Side function dxMsg(source, text, type) exports.dxmessages:outputDx(source, text, type) end function darDinheiro (source) if commandDelay[source] == nil and not istimer(commandDelay[source]) then local Dinheiro = getPlayerMoney(source) if Dinheiro >= 1200 then return dxMsg(source, "Você possui dinheiro de mais para receber o auxílio.", "error") end givePlayerMoney(source, 1200) dxMsg(source, "Você recebeu o auxílio.", "success") resetCommand(source, 1000) else dxMsg(source, "Você ja recebeu o auxílio.", "warning") end addCommandHandler('auxilio', darDinheiro)
  7. Esta Dando Esse Erro 'end' expected (to close 'function' at line 5) near '<eof>' Server-Side function dxMsg(source, text, type) exports.dxmessages:outputDx(source, text, type) end function darDinheiro (source) if commandDelay[source] == nil and not istimer(commandDelay[source]) then local Dinheiro = getPlayerMoney(source) if Dinheiro >= 1200 then return dxMsg(source, "Você possui dinheiro de mais para receber o auxílio.", "error") end givePlayerMoney(source, 1200) dxMsg(source, "Você recebeu o auxílio.", "success") resetCommand(source, 1000) else dxMsg(source, "Você ja recebeu o auxílio.", "warning") end addCommandHandler('auxilio', darDinheiro)
×
×
  • Create New...