Jump to content

Alguem pode me ajudar nesse codico


Recommended Posts

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

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...