Difference between revisions of "Template:Native"

From GTAMods Wiki
Jump to navigation Jump to search
(Rewrote core functionality, tidyed up code, added support for up to 32 parameters)
 
Line 73: Line 73:
 
|game    = <use 5 for GTA V's native; 4 for IV's (default)>
 
|game    = <use 5 for GTA V's native; 4 for IV's (default)>
 
|noheader = <use 1 if you dont want a table header; otherwise 0>
 
|noheader = <use 1 if you dont want a table header; otherwise 0>
|np      = <number of parameters>
+
|np      = <number of parameters (max: 32)>
 
|p<1-32>t = <parameter type (integer, float, pointer, handle, boolean)>
 
|p<1-32>t = <parameter type (integer, float, pointer, handle, boolean)>
 
|p<1-32>d = <parameter description>
 
|p<1-32>d = <parameter description>

Latest revision as of 20:43, 6 June 2015

Native
Number of parameters: 0
Return value:
TypeDescription
None
{{Native
|name     = <name of native (optional: defaults to page title)>
|game     = <use 5 for GTA V's native; 4 for IV's (default)>
|noheader = <use 1 if you dont want a table header; otherwise 0>
|np       = <number of parameters (max: 32)>
|p<1-32>t = <parameter type (integer, float, pointer, handle, boolean)>
|p<1-32>d = <parameter description>
|r        = <1 if function returns something, otherwise 0>
|rt       = <result value type> 
|rd       = <result value description>
}}