DgsGetExportedFunctionName: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Blanked the page)
Tag: Blanking
 
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.
==Returns==
Returns a table contains the exported function name or a exported 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