MTA:Eir/FileSystem/type: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ This function returns the type of the given Eir FileSystem object. ==Syntax== <syntaxhighlight lang="lua"> string fsnamespace.type( userdata obj ) </syntaxhighlight> ==Arguments== *'''obj''': the Eir FileSystem object to retrieve the type from ==Returns== This function returns the type string of the queried object. ===Possible Return Values=== *file *file-translator ==Example== <syntaxhighlight lang="lua"> -- TODO </syntaxhighlight> {{:MTA:Eir/FileSystem/n...") |
m (→Returns) |
||
(One intermediate revision by the same user not shown) | |||
Line 11: | Line 11: | ||
==Returns== | ==Returns== | ||
This function returns the type string of the queried object. | This function returns the type string of the queried object, false if not successful. For destroyed objects the return value is always false. | ||
===Possible Return Values=== | ===Possible Return Values=== | ||
Line 22: | Line 22: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{:MTA:Eir/FileSystem/namespace/functions}} | {{:MTA:Eir/FileSystem/namespace/functions}} | ||
Latest revision as of 08:26, 17 January 2022
This function returns the type of the given Eir FileSystem object.
Syntax
string fsnamespace.type( userdata obj )
Arguments
- obj: the Eir FileSystem object to retrieve the type from
Returns
This function returns the type string of the queried object, false if not successful. For destroyed objects the return value is always false.
Possible Return Values
- file
- file-translator
Example
-- TODO