MTA:Eir/FileSystem/type: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
 
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===

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

FileSystem Namespace Functions