DgsGetExportedFunctionName: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client function}} __NOTOC__ This function is used to get a specific exported function name or all exported function names ==Syntax== <syntaxhighlight lang="lua"> table/stri...")
 
(Blanked the page)
Tag: Blanking
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Client function}}
__NOTOC__
This function is used to get a specific exported function name or all exported function names


==Syntax==
<syntaxhighlight lang="lua">
table/string dgsGetExportedFunctionName( [ string name ] )
</syntaxhighlight>
==Required Arguments==
*'''name :'''  The specific function name.
==Example==
<syntaxhighlight lang="lua">
DGS = exports.dgs
_dgsCreateImage = DGS:dgsGetExportedFunctionName("dgsCreateImage") -- Whether we have this function?
if _dgsCreateImage then
loadstring(DGS:dgsImportFunction(_dgsCreateImage))()
end
</syntaxhighlight>
==See Also==
{{DGSFUNCTIONS}}

Latest revision as of 01:48, 6 March 2023