Types: Difference between revisions

Jump to navigation Jump to search
111 bytes added ,  10 October 2021
no edit summary
No edit summary
No edit summary
Line 73: Line 73:
* <code>object</code> - For elements. <code>Userdata</code> if Lua.
* <code>object</code> - For elements. <code>Userdata</code> if Lua.
* <code>string</code>
* <code>string</code>
* <code>undefined</code> - Used in JS.


Container types.
Container types.
* <code>array&lt;Type&gt;</code> - <code>Table</code> if Lua. Keys start at 1 if Lua, otherwise keys start at 0.
* <code>array&lt;Type&gt;</code> - <code>Table</code> if Lua. Keys start at 1 if Lua, otherwise keys start at 0.
* <code>dictionary&lt;KeyType,ValueType&gt;</code> - <code>Table</code> if Lua.
* <code>dictionary&lt;KeyType,ValueType&gt;</code> - <code>Table</code> if Lua.
Other types.
* <code>void</code> - Represents no arguments or returns.


==Previous Versions==
==Previous Versions==


Type <code>Civilian</code> was removed. All functionality from type <code>Civilian</code>was moved to type <code>Ped</code>.
Type <code>Civilian</code> was removed. All functionality from type <code>Civilian</code>was moved to type <code>Ped</code>.
6,833

edits

Navigation menu