MTA:Eir/FileSystem/file/readUShort

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

Syntax

unsigned_short file:readUShort ()

Returns

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

Example

todo.

FileSystem File Functions