Hello guys! I want to make a new resource with the command /ss for screenshots in Roleplay. This /ss needs to put a black image in the back of the chat.
I did it, when I type /ss the black image appears, but did't appear in the back of the chat...
Here is the code:
local image = guiCreateStaticImage( 10, 10, 700, 700, "image.png", false )
function showClientImage()
guiSetVisible (image, not guiGetVisible ( image ) )
end
addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage )
addCommandHandler( "ss", showClientImage )
I don't know where to put guiMoveToBack and how. So please help