Okay try this:
function drawStuff()
dxDrawText("Message", 924, 375, 977, 390, tocolor(255, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false)
end
local show = false
addCommandHandler( "yourcommand",
function( )
showMssg( not show )
end
)
function showMssg( state )
if state then
showCursor ( true )
addEventHandler( "onClientRender", root, drawStuff )
else
showCursor ( false )
removeEventHandler( "onClientRender", root, drawStuff )
end
show = state
end
showMssg( show )
Hope it help'd you can add what ever you want within the drawStuff function.