Jump to content

Help me


ODutii

Recommended Posts

Posted

You could use variables for such matter. Add a command that sets a variable to true and check for it when you render your DX function.

for example:

status = true -- when you enter X command

if (status) then -- when you render your DX function
	-- your DX code  
end

 

  • Like 1
Posted

Hello, use its easy example

local panel = false
function drawPanel() 
  dxDrawImage() 
end

function useCmd() 
  if not panel then
  addEventHandler("onClientRender", root, drawPanel) 
  panel = true
end
addCommandHandler("cmd", useCmd) 

 

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