New pages
Jump to navigation
Jump to search
- 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 и содержит полезные ссылки. == Включение == По умолчанию ООП откл...")
- 14:19, 15 May 2024 RU/MTA:SA Developers: Mobile (hist | edit) [8,678 bytes] Limedev (talk | contribs) (Created page with "{| style="float: right; border-collapse: collapse; width: 270px" |256px |} {{TOClimit|1}} ==Введение== MTA:SA Developers: Mobile — это улучшенная версия приложения [https://forum.multitheftauto.com/topic/128180-mta-compiler-script-editor/ MTA Compiler & Script editor], которая содержит в себе мобильную версию форума, wiki и сообщества MTA:SA, улучшенн...")
- 14:17, 15 May 2024 MTA:SA Developers: Mobile (hist | edit) [5,077 bytes] Limedev (talk | contribs) (Created page with "{| style="float: right; border-collapse: collapse; width: 270px" |256px |} {{TOClimit|1}} ==Введение== MTA:SA Developers: Mobile — это улучшенная версия приложения [https://forum.multitheftauto.com/topic/128180-mta-compiler-script-editor/ MTA Compiler & Script editor], которая содержит в себе мобильную версию форума, wiki и сообщества MTA:SA, улучшенн...")
- 20:06, 12 May 2024 Modules/CMR Protected (hist | edit) [3,105 bytes] Camargo (talk | contribs) (Adding a new page for a new module that protects scripts)
- 14:30, 5 May 2024 Levenshtein (hist | edit) [1,218 bytes] ItsHasaN (talk | contribs) (Created page with "__NOTOC__ {{Useful Function}} This function can be used to calculate the Levenshtein distance between two strings ==Syntax== <syntaxhighlight lang="lua">int levenshtein(string1, string2)</syntaxhighlight> ===Required Arguments=== * '''string1''': first string. * '''string2''': second string. ===Returns=== Returns an integer representing the levenshtein distance between this two strings ==Code== <section name="Function source (Server/Client)" class="both" show="true">...")
- 07:45, 5 May 2024 DgsCreateQuad (hist | edit) [1,842 bytes] Thisdp (talk | contribs) (Created page with "__NOTOC__ {{Client function}} <span style="color:#FF0000;text-shadow:black 0.1em 0.1em 0.6em;">>>>Warning: This feature requires pixel shader model 2_a<<<</span> This function creates a quadrilateral shader that can be used for dgs elements. ==Syntax== <syntaxhighlight lang="lua"> element dgsCreateQuad( table corners [, int color = 0xFFFFFFFF, texture background = nil, bool colorOverwritten = true ] ) </syntaxhighlight> Image:DGS_Rounded_Rectangle.png|300px|thumb...")
- 16:44, 21 April 2024 Element/Building (hist | edit) [355 bytes] TheNormalnij (talk | contribs) (Created page with "__NOTOC__ The building class represents static, 3-D models in the GTA world. Examples of buildings include building models, roads, and terrain. Buildings, unlike objects, can contain '''glass''' and '''shadows'''. The element type of this class is '''"building"'''. ==Related scripting functions== {{Building functions}} Category:Element Types en:Element/Building")
- 12:10, 19 April 2024 PL/Sync interval settings (hist | edit) [2,828 bytes] FileEX (talk | contribs) (Translated to PL)
- 11:38, 19 April 2024 PL/Resource:scoreboard (hist | edit) [11,443 bytes] FileEX (talk | contribs) (Translated to PL)
- 13:01, 16 April 2024 PL/Resource:OldScoreboard (hist | edit) [2,096 bytes] FileEX (talk | contribs) (PL)
- 15:46, 14 April 2024 GregorianToJalali (hist | edit) [2,310 bytes] ItsHasaN (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ This function converts Gregorian date to Jalali (Shamsi) date ==Syntax== <syntaxhighlight lang="lua">table gregorianToJalali(year, month, day)</syntaxhighlight> ===Required Arguments=== * '''year''': year. * '''month''': month. * '''day''': day. ===Returns=== Returns a table of substrings with different time format. {| border="2" cellpadding="2" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; bor...")
- 12:20, 12 April 2024 PL/Resource:Helpmanager (hist | edit) [2,940 bytes] FileEX (talk | contribs) (Translated to PL)
- 13:47, 8 April 2024 CreateBuilding (hist | edit) [2,191 bytes] Fernando187 (talk | contribs) (Created page with "{{Client functions that need documenting}} __NOTOC__")
- 16:41, 6 April 2024 Collision surface sounds (hist | edit) [3,609 bytes] FileEX (talk | contribs) (Created page with "This page contains all the sounds that can be set for the surface in [https://www.gtagarage.com/mods/show.php?id=1154 Steve M's Colision Editor] {| class="wikitable" |- ! Categories !! Sound !! Surface Types |- | Default, Concrete, Gravel, Dirt, Sand, Stone, Misc | File:surface_default.mp3 | Default, Tarmac, Tarmac (fucked), Tarmac (really fucked), Pavement, Pavement (fucked), Concrete (fucked), Painted Ground, P Concrete, P Poolside, P Concrete (litter), P Alley R...")
- 10:30, 5 April 2024 IsPlayerAccount (hist | edit) [1,068 bytes] Tracer (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ This function checks if the account is valid player account (the account exists and is not a guest account) == Syntax == <syntaxhighlight lang="lua"> bool isPlayerAccount ( account theAccount )</syntaxhighlight> === Required Arguments === * '''theAccount''': The account you want to check === Returns === Returns true if the account is valid, false otherwise == Code == <section name="Server" class="server" show="true"> <syntaxhighlight lan...")
- 16:04, 29 March 2024 PL/mtaserver.conf (hist | edit) [29,340 bytes] FileEX (talk | contribs) (Tłumaczenie)
- 15:04, 28 March 2024 PL/Server Commands (hist | edit) [6,988 bytes] FileEX (talk | contribs) (Tłumaczenie)
- 19:03, 27 March 2024 PL/Command fakelag (hist | edit) [1,683 bytes] FileEX (talk | contribs) (Tłumaczenie)
- 18:41, 27 March 2024 PL/Client Commands (hist | edit) [5,378 bytes] FileEX (talk | contribs) (Tłumaczenie)
- 17:37, 25 March 2024 PL/Roller Coaster Generator (hist | edit) [4,375 bytes] FileEX (talk | contribs) (Tłumaczenie) originally created as "PLRoller Coaster Generator"
- 12:01, 25 March 2024 PL/Resource:Editor/Plugins (hist | edit) [3,423 bytes] FileEX (talk | contribs) (Tłumaczenie)
- 14:32, 23 March 2024 GTA Crash Codes (hist | edit) [12,395 bytes] Tracer (talk | contribs) (Created page with "== Code: 0xC0000005 == {| class="wikitable" |- ! Offset !! Function |- | {{CrashCodeEntry|0x0013388E|CEntity::CreateEffects()}} |- | {{CrashCodeEntry|0x0000F64C|CCollisionData::GetShadTrianglePoint(CVector&, int)}} |- | {{CrashCodeEntry|0x000F0EBA|CAEStaticChannel::SetAudioBuffer(OALBuffer*, ushort, short, short, ushort)}} |- | {{CrashCodeEntry|0x003C91CC|__rpD3D9SkinGeometryReinstance}} |- | {{CrashCodeEntry|0x002FE144|CCustomRoadsignMgr::Initialise()}} |- | {{CrashCo...")
- 18:25, 13 March 2024 FixPersianString (hist | edit) [2,647 bytes] RubyCommunity (talk | contribs) (Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This function returns a fixed sorted bilingual RTL for strings consisting of Persian/Arabic and English. just copy & paste and see the magic ;D ==Syntax== <syntaxhighlight lang="lua">str fixPersianString ( string text )</syntaxhighlight> ===Required Arguments=== * '''text''': The bilingual string. ===Returns=== Returns a fixed string . ==Code== {{RequiredFunctions|Check}} <section name="Server/Client si...")
- 10:48, 10 March 2024 DgsEditAutoCompleteAddParameterFunction (hist | edit) [974 bytes] Thisdp (talk | contribs) (Created page with "__NOTOC__ {{Client function}} This function adds the advanced usage of dgs edit auto complete, which can be used as dynamic auto complete. ==Syntax== <syntaxhighlight lang="lua"> element dgsEditAutoCompleteAddParameterFunction( string parameterType, string functionCode ) </syntaxhighlight> ===Required Arguments=== *'''parameterType:''' A string of the parameter type you want to attach. *'''functionCode :''' A string of the function that you want to execute. ===Ret...")
- 16:17, 21 February 2024 GetBanBySerial (hist | edit) [1,359 bytes] AirNewSCR (talk | contribs) (Created page with "{{Useful_Function}} <lowercasetitle/> __NOTOC__ This function returns the ban if the serial is banned, otherwise false. ==Syntax== <syntaxhighlight lang="lua">ban getBanBySerial ( string serial )</syntaxhighlight> ===Required Arguments=== * '''serial''': The banned player serial. ==Code== <section name="Server" class="server" show="true"> <syntaxhighlight lang="lua"> function getBanBySerial(serial) local result = false if serial then for _, ban in ipai...")
- 11:33, 11 January 2024 Explosion types (hist | edit) [2,956 bytes] Srslyyyy (talk | contribs) (Add explosion types with specific details, much thanks for Zango to research.)
- 01:09, 5 January 2024 EngineStreamingSetModelCacheLimits (hist | edit) [1,305 bytes] Nurupo (talk | contribs) (Created page with "To do")
- 16:38, 21 December 2023 Commands (hist | edit) [105 bytes] Fernando187 (talk | contribs) (Created page with "View the list of built in MTA commands: Client Commands Server Commands Category: Support")
- 11:19, 21 December 2023 SetVehicleRotorSpeed (hist | edit) [1,547 bytes] Nurupo (talk | contribs) (Created page with "__NOTOC__ {{Client function}} Sets the rotor speed of a helicopter or plane. This function now applies to both helicopters and planes. {{Note|Setting higher values will cause problems to the client}} ==Syntax== <syntaxhighlight lang="lua"> bool setVehicleRotorSpeed ( vehicle theVehicle, float speed ) </syntaxhighlight> {{OOP||vehicle:setVehicleRotorSpeed|vehicleRotorSpeed|getVehicleRotorSpeed}} ===Required Arguments=== *'''theVehicle:''' the vehicle (helicopter or...")
- 11:16, 21 December 2023 GetVehicleRotorSpeed (hist | edit) [1,549 bytes] Nurupo (talk | contribs) (Created page with "__NOTOC__ {{Client function}} Retrieves the speed at which the rotor of a helicopter or plane rotates. ==Syntax== <syntaxhighlight lang="lua"> float getVehicleRotorSpeed ( vehicle theVehicle ) </syntaxhighlight> {{OOP||vehicle:getVehicleRotorSpeed|vehicleRotorSpeed|setVehicleRotorSpeed}} ===Required Arguments=== *'''theVehicle:''' the vehicle element (helicopter or plane) to get the rotor speed of. ===Returns=== Returns the rotor speed if successful. This is 0 whe...")
- 20:15, 20 December 2023 PT-BR/fileWrite (hist | edit) [2,190 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Escreve uma ou mais strings para um determinado arquivo, iniciando na posição de leitura/gravação atual. A posição avança de acordo com o número de bytes que estiver sendo escrito. ==Sintaxe== <syntaxhighlight lang="lua"> int fileWrite ( file theFile, string string1 [, string string2, string string3 ...]) </syntaxhighlight> {{PT-BR/POO||file:write}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' no qual...")
- 20:03, 20 December 2023 PT-BR/fileSetPos (hist | edit) [1,588 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Define a posição atual para leitura/gravação no arquivo. ==Sintaxe== <syntaxhighlight lang="lua"> int fileSetPos ( file theFile, int offset ) </syntaxhighlight> {{PT-BR/POO||file:setPos|pos|PT-BR/fileGetPos}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' que você quer mudar a posição de leitura/gravação. *'''offset:''' A nova posição. Este é o número de bytes partindo do início do arquivo. Se est...")
- 19:50, 20 December 2023 PT-BR/fileRename (hist | edit) [1,889 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Renomeia o arquivo que especificar. {{BR/Nota|Com esta função você também pode mover determinado arquivo para um lugar diferente, seja uma pasta diferente no resource atual ou até mesmo para a pasta de um outro resource. Mas para fazer isso o resource deve ter a seguinte permissão da ACL definida para ''true'': 'ModifyOtherObjects'.}} ==Sintaxe== <syntaxhighlight lang="lua"> bool fileRename ( string filePath, string newFileP...")
- 19:37, 20 December 2023 PT-BR/fileRead (hist | edit) [1,892 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Faz a leitura de uma especificada quantidade de bytes de um determinado arquivo, começando em sua posição atual de leitura/gravação, e retorna o valor como uma ''string''. ==Sintaxe== <syntaxhighlight lang="lua"> string fileRead ( file theFile, int count ) </syntaxhighlight> {{PT-BR/POO||file:read}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' que deseja fazer a leitura. Use fileOpen p...")
- 19:25, 20 December 2023 PT-BR/fileOpen (hist | edit) [4,414 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Abre um arquivo existente para leitura e gravação. {{BR/Nota|Para prevenir perdas de memórias, garanta que cada execução bem sucedida de fileOpen tenha um fileClose para fechar o arquivo aberto.}} {{BR/Tip|As funções que manipulam arquivos não devem ser utilizadas para implementar arquivos de configuração. É recomendado usar as Shared_Scripting_Functions#XML_functions|funções XM...")
- 19:04, 20 December 2023 PT-BR/fileIsEOF (hist | edit) [1,816 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Verifica se a posição atual no arquivo está no fim dele. {{BR/Nota|Devido às restrições subjacentes da API C, esta função pode retornar '''false''' até que seja feita uma tentativa de leitura além do final do arquivo.}} ==Sintaxe== <syntaxhighlight lang="lua"> bool fileIsEOF ( file theFile ) </syntaxhighlight> {{PT-BR/POO||file:isEOF|eof}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' que você quer...")
- 18:55, 20 December 2023 PT-BR/fileGetSize (hist | edit) [1,161 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Retorna o tamanho total (em bytes) de determinado arquivo. ==Sintaxe== <syntaxhighlight lang="lua"> int fileGetSize ( file theFile ) </syntaxhighlight> {{PT-BR/POO||file:getSize|size}} ===Argumentos necessários=== *'''theFile:''' o '''arquivo''' que você deseja obter o tamanho total. ===Retorno=== Retorna o tamanho do arquivo se tiver sido executado com sucesso, ou '''false''' se tiver ocorrido algum erro (ex.: um '''arqui...")
- 18:51, 20 December 2023 PT-BR/fileGetPos (hist | edit) [1,429 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Retorna a posição atual na leitura/gravação de um determinado arquivo. ==Sintaxe== <syntaxhighlight lang="lua"> int fileGetPos ( file theFile ) </syntaxhighlight> {{PT-BR/POO||file:getPos|pos|PT-BR/fileSetPos}} ===Argumentos necessários=== *'''theFile:''' o '''arquivo''' que você deseja obter a posição. ===Retorna=== Retorna a posição do arquivo, ou ''false'' se tiver ocorrido algum erro (ex.: um '''arquivo''' inv...")
- 18:43, 20 December 2023 PT-BR/fileGetPath (hist | edit) [1,069 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} {{PT-BR/New feature/item|3.0153|1.5.3|7446| Esta função retorna o caminho de um determinado arquivo. }} ==Sintaxe== <syntaxhighlight lang="lua"> string fileGetPath ( file theFile ) </syntaxhighlight> {{PT-BR/POO||file:getPath|path}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' que você quer obter o caminho. ===Retorno=== Retorna uma ''string'' representando o caminho do arquivo, ''false'' se um arquivo inv...")
- 18:30, 20 December 2023 PT-BR/fileGetContents (hist | edit) [1,977 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} {{PT-BR/Added feature/item|1.6.1|1.6.0|21938| Faz a leitura de todo o conteúdo do arquivo, opcionalmente verifica o arquivo lido calculando e comparando a soma de verificação com o que é esperado, e retorna o conteúdo em formato de ''string''. A posição do cursor (caret) do arquivo não é modificada pelas execuções dessa função. }} Por favor note que sempre que você habilitar SD #22 e #23 no seu servidor, você não es...")
- 18:14, 20 December 2023 PT-BR/fileFlush (hist | edit) [1,590 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Força a execução de gravações pendentes no disco. fileWrite não grava diretamente no disco, mas coloca os dados em um buffer temporário; só quando existe dados o suficiente nesse buffer é que as informações são gravadas no disco. Execute essa função se você precisar que os dados sejam gravados no instante em que chamar, sem precisar fechar o arquivo que estiver aberto com as gravações pendentes....")
- 17:59, 20 December 2023 PT-BR/fileExists (hist | edit) [2,937 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Esta função verifica se um determinado arquivo existe em um resource. ==Sintaxe== <syntaxhighlight lang="lua"> bool fileExists ( string filePath ) </syntaxhighlight> {{PT-BR/POO|Esta é uma função estática abaixo da classe File.|File.exists}} ===Argumentos necessários=== *'''filePath:''' O caminho do arquivo a ser criado seguindo o seguinte formato: '''":resourceName/path"'''. '''resourceName''' é o nome do...")
- 17:45, 20 December 2023 PT-BR/fileDelete (hist | edit) [1,770 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Deleta um determinado arquivo. ==Sintaxe== <syntaxhighlight lang="lua"> bool fileDelete ( string filePath ) </syntaxhighlight> {{PT-BR/POO|Esta é uma função estática abaixo da classe File.|File.delete}} ===Argumentos necessários=== *'''filePath:''' O caminho do arquivo para deletar no seguinte formadt: '''":resourceName/path"'''. ''resourceName'' é o nome do resource do arquivo que vai estar lá, e ''path''...")
- 17:35, 20 December 2023 PT-BR/fileCopy (hist | edit) [2,598 bytes] Lettify (talk | contribs) (Created page with "{{BR/Funcao compartilhada}} __NOTOC__ Esta função copia um arquivo. {{BR/Nota|As funções que manipulam arquivos não devem ser utilizadas para implementar arquivos de configuração. É recomendado usar as funções XML.}} {{BR/Tip|Se você não quiser compartilhar o conteúdo do arquivo criado com outros servidores, nomeie o caminho do arquivo com '''@''' no início. Veja a página filepath para entender melhor.}} ==...")
- 17:24, 20 December 2023 PT-BR/fileClose (hist | edit) [1,263 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Fecha um '''arquivo''' obtido por fileCreate ou fileOpen. ==Sintaxe== <syntaxhighlight lang="lua"> bool fileClose ( file theFile ) </syntaxhighlight> {{PT-BR/POO||file:close}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' que quer fechar. ===Retorno=== Retorna ''true'' se o arquivo tiver sido fechado com sucesso, ''false'' caso contrário. ==Exemplo== Este exemplo cria u...")
- 17:13, 20 December 2023 PT-BR/fileCreate (hist | edit) [3,402 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{BR/Funcao compartilhada}} Cria um novo arquivo em um diretório do resource. Se já existir algum arquivo com o nome e caminho especificado, então haverá uma substituição para este novo arquivo vazio criado. {{BR/Nota|Para prevenir perdas de memória, certifique que está fechando o arquivo com fileClose depois de aberto e trabalhado com esse arquivo.}} {{BR/Nota|As funções que manipulam arquivos não devem ser utilizadas para implementar arquivos...")
- 14:09, 14 December 2023 Math.absin (hist | edit) [2,000 bytes] Deiwn (talk | contribs) (This function returns a formula representing the just positive half of a sine wave.)
- 12:47, 10 December 2023 GetDiscordRichPresenceUserID (hist | edit) [1,519 bytes] Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|The function will correctly display the UserID when the user has given consent and successfully connected to the Rich Presence application.}} {{New feature/item|3.0161|1.6.0|22329| The function returns the client Discord UserID. }} ==Syntax== <syntaxhighlight lang="lua"> string getDiscordRichPresenceUserID() </syntaxhighlight> ===Returns=== It will return an ''empty string ("")'' if the user has not given consent or has...")
- 13:51, 27 November 2023 OnPlayerTriggerEventThreshold (hist | edit) [1,036 bytes] LopSided (talk | contribs) (Created page with "__NOTOC__ {{Server event}} {{Added feature/item|1.6.1|1.6.0|22311|This event is triggered when a player exceeds the maximum threshold for events via triggerServerEvent.}} ==Parameters== None ==Source== The source of this event is the player who exceeded the threshold. ===Canceling=== Canceling this event has no effect. ==Example== <syntaxhighlight lang="lua"> function start() setServerConfigSetting("player_triggered_event_inte...")
- 21:36, 26 November 2023 SCamera (hist | edit) [3,598 bytes] KhaledX (talk | contribs) (Created page with "== sCamera == '''The function creates a speed camera in-game, fines speeding vehicles, and notifies the driver and take money from player based on vehicle speed. ''' == Syntax == <syntaxhighlight lang="lua"> function sCamera(modelId, x, y, z, speed, between) </syntaxhighlight> == Parameters == * modelId: The model ID of the camera object to be created. * x, y, z: The coordinates where the camera object will be placed in the game world. * speed: The speed limit tha...")