MTA:Eir/FileSystem/file/readUInt: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ This function attempts to read an unsigned integer (native type) from a file and returns it. The amount of bytes read should be four. ==Syntax== <syntaxhighlight lang="lua"> unsigned...")
 
No edit summary
 
Line 4: Line 4:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
unsigned_int file.readUInt ()
unsigned_int file:readUInt ()
</syntaxhighlight>
</syntaxhighlight>



Latest revision as of 23:36, 16 January 2022

This function attempts to read an unsigned integer (native type) from a file and returns it. The amount of bytes read should be four.

Syntax

unsigned_int file:readUInt ()

Returns

Returns an unsigned integer if it was successfully read from the file, false otherwise.

Example

todo.

FileSystem File Functions