Help with a command

Hello, I have a menu, that allow the players press “G” and do something, but its possible add that by command? I’m looking something like

if IsControlJustReleased(0, Keys['F9']) or **write /gl** then
do stuff
end

Thanks for readme!

Use the Register command native to do the same stuff that holding a button will do.

RegisterCommand('gl', function(source)
Do stuff
End)

okay thank you a lot!