Jump to content

WenbleckPBP

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by WenbleckPBP

  1. addCommandHandler("rinventario", function(cmd, name) if getElementData(localPlayer,"Policial") ~= true then return end if(not name)then outputChatBox("#00FF00[use]: #ffffff/"..cmd.." [nome / ID]",0,0,0,true) return end local targetPlayer, targetPlayerName = exports.global:findPlayer(getLocalPlayer(), name) if(not targetPlayer)then return end if targetPlayer == localPlayer then outputChatBox('#ffffffVocê não pode se revistar!', 255, 255, 255, true) return end showInventory = true cursorInSlot = {-1, -1, -1, -1} movedItem = {-1, -1, -1, -1} openInventory(targetPlayer) activeInvState = 'bag' craftTick = 0 setTimer(function() removeEventHandler('onClientRender', root, drawInventory) addEventHandler('onClientRender', root, drawInventory, true, 'low-5') end, 50, 1) toggleControl ("fire", false) playSound("files/sounds/open.mp3", false) bodySearch = false end) Estou tentando fazer quando uma pessoa digite / rinventario e consiga acessar o inventario que estou configurando alguem pode me ajudar
×
×
  • Create New...