Interface administrators, moderator
2,771
edits
No edit summary |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Template Name: ScriptItem2 | {{DISPLAYTITLE:Page Template Syntax}} | ||
== Template Name: ScriptItem2 == | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 15: | Line 16: | ||
|Including namespaces if applicable, excluding class name if object oriented | |Including namespaces if applicable, excluding class name if object oriented | ||
|name = gta.createBlip | |name = gta.createBlip | ||
|- | |||
|class | |||
|method, property | |||
|required | |||
|name of the class | |||
| | |||
|class = Element | |||
|- | |- | ||
|side | |side | ||
|all | |all | ||
|required | |required | ||
|server, client, | |server, client, shared | ||
| | | | ||
|side = shared | |side = shared | ||
Line 34: | Line 42: | ||
|required | |required | ||
|iii vc sa iv | |iii vc sa iv | ||
|Game support. | |[[GamesAndVersions|Game support]]. Separated by spaces. | ||
|games = iii vc sa iv | |games = iii vc sa iv | ||
|- | |||
|offline | |||
|all | |||
|optional | |||
|true/false | |||
|Whether the function works when '''not''' connected to a server | |||
|offline = true | |||
|- | |||
|online | |||
|all | |||
|optional | |||
|true/false | |||
|Whether the function works when connected to a server | |||
|online= true | |||
|- | |- | ||
|desc | |desc | ||
Line 65: | Line 87: | ||
|void<br>int -1 | |void<br>int -1 | ||
|- | |- | ||
|note | |cancel | ||
|event | |||
|required | |||
|true/false | |||
|Whether the event can be cancelled. | |||
|cancel = true | |||
|- | |||
|readonly | |||
|variable, property | |||
|required | |||
|true/false | |||
|Whether the variable/property is readonly. | |||
|readonly = true | |||
|- | |||
|note<br>note(2-20) | |||
|all | |all | ||
|optional | |optional | ||
Line 72: | Line 108: | ||
|note = Text goes here.<br>note2 = Text goes here. | |note = Text goes here.<br>note2 = Text goes here. | ||
|- | |- | ||
|compat<br>compat(1-20) | |||
|compat | |||
|all | |all | ||
|optional | |optional | ||
Line 86: | Line 115: | ||
|compat1 = Text goes here. | |compat1 = Text goes here. | ||
|- | |- | ||
|example | |example<br>exampleJS<br>exampleLua<br>exampleSquirrel<br>exampleJSSS<br>exampleJSCS<br>exampleLuaSS<br>exampleLuaCS<br>exampleSquirrelJS<br>exampleSquirrelCS | ||
|all | |all | ||
|optional | |optional | ||
Line 92: | Line 121: | ||
| | | | ||
|exampleJS = code here | |exampleJS = code here | ||
|- | |||
|cb(1-20)text | |||
|method, function, event | |||
|optional | |||
|Text | |||
|Extra description for the callback argument. | |||
|arg1 = function Arg1Name Arg 1 description.<br>cb1text = Extra callback description here. | |||
|- | |||
|cb(1-20)arg(1-20) | |||
|method, function, event | |||
|optional | |||
|A callback argument. | |||
|Syntax: '''type name description'''. | |||
|arg1 = Client client The element's syncer | |||
|- | |||
|} | |} |