Jump to content

[Ajuda] Janela Minimizada


Recommended Posts

try this script

client-side
function minimize()
	for k, player in ipairs(getElementsByType("player")) do
    	if getElementData(player, "minimize") then
			local screenWidth, screenHeight = guiGetScreenSize()
			local sx,sy = getScreenFromWorldPosition (getElementPosition(player))
			dxDrawText("Janela Minimizada",sx,sy,screenWidth, screenHeight,tocolor ( 255, 255, 0, 0 ), 1.5,"sans")
      	end
	end
end
addEventHandler("onClientRender",rootElement, minimize)

function handleMinimize()
    setElementData(localPlayer, "minimize", true)
end
addEventHandler( "onClientMinimize", root, handleMinimize )


function handleRestore()
    setElementData(localPlayer, "minimize", false)
end
addEventHandler("onClientRestore",root,handleRestore)

 

  • Confused 1
Link to comment

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