OutputCmdMessage

From Multi Theft Auto: Wiki
Revision as of 10:07, 18 August 2017 by Ahmed Ly (talk | contribs) (Created page with " ==Syntax== <syntaxhighlight lang="lua">bool outputCmdMessage ( element cmd , string text )</syntaxhighlight> ==Required Arguments== *'''Cmd:''' The cmd window. *'''text:'''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

bool outputCmdMessage ( element cmd , string text )

Required Arguments

  • Cmd: The cmd window.
  • text: The text string that you wish to send to the cmd window.


Example 1:

DGS = exports.dgs
cmd = DGS:dgsDxCreateCmd(310, 208, 505, 429,false)


addCommandHandler("22",
function (_,arg)
if arg ~=  "" then 
DGS:outputCmdMessage(cmd,arg)
end
end 
)