New pages
Jump to navigation
Jump to search
- 14:03, 27 May 2024 Legacy/dxDrawMaterialPrimitive3D (hist | edit) [6,110 bytes] FileEX (talk | contribs) (Legacy version)
- 13:33, 27 May 2024 Legacy/dxDrawPrimitive3D (hist | edit) [2,174 bytes] FileEX (talk | contribs) (Legacy version)
- 13:31, 27 May 2024 Legacy/dxDrawMaterialSectionLine3D (hist | edit) [3,387 bytes] FileEX (talk | contribs) (Legacy version)
- 13:27, 27 May 2024 Legacy/dxDrawMaterialLine3D (hist | edit) [2,865 bytes] FileEX (talk | contribs) (Legacy version)
- 12:48, 27 May 2024 Legacy/DxDrawLine3D (hist | edit) [2,374 bytes] FileEX (talk | contribs) (Legacy versions) originally created as "DxDrawLine3D legacy"
- 12:12, 26 May 2024 PathIsDirectory (hist | edit) [1,630 bytes] Tracer (talk | contribs) (Created page with "__NOTOC__ {{Shared function}} {{Added feature/item|1.6.1|1.6.0|22470|Checks if a specified path points to a directory.}} ==Syntax== <syntaxhighlight lang="lua"> table pathIsDirectory ( string path ) </syntaxhighlight> {{OOP||path:isDirectory}} ===Required Arguments=== *'''path:''' A string containing a path you want to check against ===Returns=== Returns '''true''' if the path points to a directory, '''false''' otherwise. ==Example==...")
- 12:10, 26 May 2024 String.repeat (hist | edit) [943 bytes] Tracer (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ This function repeats a substring n times. ==Syntax== <syntaxhighlight lang="lua"> string string.repetition ( string what, int n ) </syntaxhighlight> ===Required Arguments=== * '''what''': String you want to repeat * '''n''': Number of times you want the string to repeat ===Returns=== Returns repeated string ==Code== <section name="Shared script" class="both" show="true"> <syntaxhighlight lang="lua"> function string.repetition(what, n)...")
- 11:32, 26 May 2024 PathIsFile (hist | edit) [861 bytes] Tracer (talk | contribs) (Created page with "__NOTOC__ {{Shared function}} {{Added feature/item|1.6.1|1.6.0|22470|Checks if a specified path points to a file.}} ==Syntax== <syntaxhighlight lang="lua"> table pathIsFile ( string path ) </syntaxhighlight> {{OOP||path:isFile}} ===Required Arguments=== *'''path:''' A string containing a path you want to check against ===Returns=== Returns '''true''' if the path points to a file, '''false''' otherwise. ==Example== <section name="Share...")
- 11:25, 26 May 2024 String.startsWith (hist | edit) [842 bytes] Tracer (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ This function checks if a string starts with other string. ==Syntax== <syntaxhighlight lang="lua"> bool string.startsWith ( string prefix ) </syntaxhighlight> ===Required Arguments=== * '''suffix''': Prefix you want to check your string against ===Returns=== Returns true if string starts with a prefix, false otherwise. ==Code== <section name="Shared script" class="both" show="true"> <syntaxhighlight lang="lua"> function string.startsWith...")
- 11:20, 26 May 2024 PathListDir (hist | edit) [1,638 bytes] Tracer (talk | contribs) (Created page with "__NOTOC__ {{Shared function}} {{Added feature/item|1.6.1|1.6.0|22470| Reads a specified directory and returns all entries inside of it. }} ==Syntax== <syntaxhighlight lang="lua"> table pathListDir ( string path ) </syntaxhighlight> {{OOP||path:listDir}} ===Required Arguments=== *'''path:''' A string containing a path you want to get entries from ===Returns=== Returns table with all entries in a specified directory. ==Example== <section name="Client" clas...")
- 10:48, 26 May 2024 String.endsWith (hist | edit) [871 bytes] Tracer (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ This function checks if a string ends with other string. ==Syntax== <syntaxhighlight lang="lua"> bool string.endsWith ( string suffix ) </syntaxhighlight> ===Required Arguments=== * '''suffix''': Suffix you want to check your string against ===Returns=== Returns true if string ends with a suffix, false otherwise. ==Code== <section name="Shared script" class="both" show="true"> <syntaxhighlight lang="lua"> function string:endsWith(suffix)...")
- 10:30, 26 May 2024 GetAccountType (hist | edit) [1,292 bytes] Tracer (talk | contribs) (Created page with "__NOTOC__ {{Server function}} {{New feature/item|3.0161|1.6.0|22470|This function returns an account type.}} ==Syntax== <syntaxhighlight lang="lua"> string getAccountType ( account theAccount ) </syntaxhighlight> {{OOP|This function is a static function underneath the Account class.|Account.getType||}} ===Required Arguments=== *'''theAccount:''' An account you want to get info from ===Returns=== Returns ''string'' containing the type of the account if t...")
- 10:02, 26 May 2024 OnAccountRemove (hist | edit) [833 bytes] Tracer (talk | contribs) (Created page with "__NOTOC__ {{Server event}} {{Added feature/item|1.6.1|1.6.0|22470|This event is triggered every time an account is removed}} ==Parameters== <syntaxhighlight lang="lua"> account theAccount </syntaxhighlight> *'''theAccount:''' An account element that was removed ==Source== The source of this event is the root element. ==Canceling== This event cannot be canceled. ==Example== This example prints a messa...")
- 10:01, 26 May 2024 OnAccountCreate (hist | edit) [810 bytes] Tracer (talk | contribs) (Created page with "__NOTOC__ {{Server event}} {{Added feature/item|1.6.1|1.6.0|22470|This event is triggered every time an account is created}} ==Parameters== <syntaxhighlight lang="lua"> account theAccount </syntaxhighlight> *'''theAccount:''' An account element that was created ==Source== The source of this event is the root element. ==Canceling== This event cannot be canceled. ==Example== This example prints a messa...")
- 15:10, 25 May 2024 RestoreAllGameBuildings (hist | edit) [410 bytes] TheNormalnij (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6.0|22420|This function cancels RemoveAllGameBuildings efffect}} {{Note|This function can destroy some scripted buildings if the building pool does not have enough free space for game buildings.}} ==Syntax== <syntaxhighlight lang="lua">nil restoreAllGameBuildings ( )</syntaxhighlight> ===Returns=== Nothing ==See Also== {{Building functions}}")
- 14:59, 25 May 2024 RemoveAllGameBuildings (hist | edit) [393 bytes] TheNormalnij (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6.0|22420|This function is used to remove all world buildings and frees building pool.}} ==Syntax== <syntaxhighlight lang="lua">nil removeAllGameBuildings ( )</syntaxhighlight> ===Returns=== Nothing ==See Also== {{Building functions}}")
- 20:02, 24 May 2024 OnPlayerTriggerInvalidEvent (hist | edit) [3,460 bytes] Srslyyyy (talk | contribs) (Add onPlayerTriggerInvalidEvent by lopsi (https://github.com/multitheftauto/mtasa-blue/pull/3400))
- 06:10, 24 May 2024 OnPlayerTeamChange (hist | edit) [1,281 bytes] Esmail9900 (talk | contribs) (→Player events)
- 18:29, 23 May 2024 OnResourceStateChange (hist | edit) [1,361 bytes] Tracer (talk | contribs) (Created page with "{{Server event}} <!-- Change version when https://buildinfo.multitheftauto.com will be updated --> {{Added feature/item|1.6.1|1.6.0|22430| This event is triggered when a resource's state is changed. This event is an extended version of onResourceLoadStateChange }} __NOTOC__ ==Parameters== <syntaxhighlight lang="lua"> resource changedResource, string oldState, string newState </syntaxhighlight> *'''changedResource''': The resource that was either loaded, re...")
- 15:45, 21 May 2024 Ru/OOP (hist | edit) [3,456 bytes] Flox (talk | contribs) (Created page with "Объектно-ориентированное программирование было введено в MTA:SA 1.4 и поставляется со специальными служебными классами, такими как Vector и Matrix. Эта страница содержит общую информацию о функциях OOP и содержит полезные ссылки. == Включение == По умолчанию ООП откл...")