New pages

Jump to navigation Jump to search
New pages
Hide bots | Show redirects
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)
  • 11:16, 21 December 2023GetVehicleRotorSpeed (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 2023PT-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 2023PT-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 2023PT-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 2023PT-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 2023PT-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 2023PT-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 2023PT-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 2023PT-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 2023PT-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 2023PT-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 2023PT-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 2023PT-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 2023PT-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 2023PT-BR/fileCopy (hist | edit) ‎[2,567 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 2023PT-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 2023PT-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 2023Math.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 2023GetDiscordRichPresenceUserID (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 2023OnPlayerTriggerEventThreshold (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 2023SCamera (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...")
  • 14:31, 21 November 2023Fingerprint (hist | edit) ‎[2,786 bytes]Mtaowner (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ This function calculates a fingerprint unique to each computer. ==Syntax== <syntaxhighlight lang="lua"> void fingerprint ( function callback ) </syntaxhighlight> ===Required arguments=== *'''callback''': a callback function with syntax as described below ====Callback syntax==== <syntaxhighlight lang="lua"> function ( int value ) </syntaxhighlight> ==Code== <section name="Code" class="client" show="true"> <syntaxhighlight lang="lua"> func...")
  • 16:55, 15 November 2023SplitMultiple (hist | edit) ‎[1,364 bytes]Arran Fortuna (talk | contribs) (Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This function splits a string into a table when the specified character(s) are detected.<br/> ==Syntax== <syntaxhighlight lang="lua">table splitMultiple( string str )</syntaxhighlight> ===Required Arguments=== * '''str''': The string to split. * '''chars''': The characters to detect and split the string at. ===Returns=== Returns a table containing the pieces of the split string. ==Code== <section name="S...")
  • 02:43, 15 November 2023DgsGradientSetColor (hist | edit) ‎[912 bytes]Thisdp (talk | contribs) (Created page with "__NOTOC__ {{Client function}} This function sets the color of the dgs gradient plugin. ==Syntax== <syntaxhighlight lang="lua"> bool dgsGradientSetColor( element gradShader, int colorFrom, int colorTo ) </syntaxhighlight> ===Required Arguments=== *'''gradShader:''' The dgs gradient you want to set. *'''colorFrom''': Gradient color 1. ( Left side when '''rotation''' is 0 ) *'''colorTo ''': Gradient color 2. ( Right side when '''rotation''' is 0 ) ===Returns=== Return...")
  • 22:43, 14 November 2023OnPlayerDetonateSatchels (hist | edit) ‎[809 bytes]Zangomangu (talk | contribs) (Created page with "__NOTOC__ {{Server event}} {{Added feature/item|1.6.1|1.6.0|22293|This event is triggered every time satchels are detonated - either by a player or through detonateSatchels.}} ==Parameters== No parameters. ==Source== The source of this event is the player whose satchels are being detonated. ===Canceling=== If this event is canceled, the satchels will not detonate. ==Example== <syntaxhighlight lang="...")
  • 22:35, 14 November 2023OnPlayerProjectileCreation (hist | edit) ‎[2,037 bytes]Zangomangu (talk | contribs) (Created page with "__NOTOC__ {{Server event}} {{Added feature/item|1.6.1|1.6.0|22293|This event is triggered every time a projectile is created by a player - either through a weapon, a vehicle weapon or createProjectile.}} ==Parameters== <syntaxhighlight lang="lua"> int weaponType, float x, float y, float z, float force, element target, float rotX, float rotY, float rotZ, float velX, float velY, float velZ </syntaxhighlight> *'''weaponType:''' ID, see below {{Projectiles}} *'''x:''...")
  • 02:53, 10 November 2023EngineSetModelTXDID (hist | edit) ‎[570 bytes]TheNormalnij (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6.0|22190|This function changes the TXD ID of the given model ID.}} ==Syntax== <syntaxhighlight lang="lua"> bool engineSetModelTXDID( int modelID, int txdID ) </syntaxhighlight> {{OOP||Engine.setModelTXDID}} ===Required Arguments=== *'''modelID:''' The ID of the model to update TXD ID. *'''txdID:''' The ID of target TXD. Use engineRequestTXD to get a new TXD ID. ===Returns=== Returns ''true'' if this fu...")
  • 11:47, 29 October 2023GetPositionInFrontOfElement (hist | edit) ‎[1,943 bytes]Bover. (talk | contribs) (Created page with "{{Useful Function}} This function returns position in provided distance away from element, including element's rotation<br> ==Syntax== <syntaxhighlight lang="lua">float, float, float getPositionInFrontOfElement( element theElement, float distance )</syntaxhighlight> ===Required Arguments=== * '''theElement''': The element you want to get position in front of. * '''distance''': Distance from an element you want to get position in. ===Returns=== Returns three ''floats'...")
  • 20:04, 24 October 2023DxDrawEditbox (hist | edit) ‎[7,362 bytes]IManGaaX (talk | contribs) (add new function)
  • 16:27, 21 October 2023EngineStreamingSetProperty (hist | edit) ‎[3,031 bytes]Dutchman101 (talk | contribs) (correct TEDERIs' mistake: moved English main page from RU/engineStreamingSetProperty to "engineStreamingSetProperty")
  • 16:20, 18 October 2023IsPedNearbyWall (hist | edit) ‎[2,377 bytes]IManGaaX (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ <lowercasetitle></lowercasetitle> This function checks if player/ped is nearby walls like buildings or objects. ==Syntax== <syntaxhighlight lang="lua">bool isPedNearbyWall( element element[player/ped] )</syntaxhighlight> ===Required Arguments=== * '''element''': the player/ped element to check. ===Returns=== * ''true'' if the player/ped is nearby a wall. * ''false'' otherwise. ==Code== <section name="Client" class="client...")
  • 12:17, 18 October 2023AclObjectGetGroups (hist | edit) ‎[966 bytes]Tracer (talk | contribs) (Created page with "__NOTOC__ {{Server function}} This function returns a table of all groups the object is in. ==Syntax== <syntaxhighlight lang="lua"> table aclObjectGetGroups ( string object ) </syntaxhighlight> ===Required Arguments=== * '''object:''' The name of the ACL entry to get groups of ===Returns=== Returns a table of all groups the object is in on success, false if something went wrong. ==Examples== This example outputs a list of all groups of the calling user <section...")
  • 06:06, 14 October 2023DxDrawModel3D (hist | edit) ‎[1,861 bytes]CrosRoad95 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|You can not use this function to draw vehicles and ped}} {{Important Note|This function doesn't obey any streaming limits, you can draw as many models as you want}} {{Important Note|You can not render model to render target.}} This function draws a 3D model - rendered for '''one''' frame. Drawn models are indistinguishable from this one created by "createObject" function. This should be used in conjunction with onClientR...")
  • 03:28, 14 October 2023DxFade (hist | edit) ‎[3,779 bytes]LordHenry (talk | contribs) (Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This function allows you to fade-in or fade-out any dxDraw by gradually changing its alpha value.<br> {{Note|You can fade up to 3 values at the same time, as long as they are properly declared together on the same interpolateBetween function and on the ''dxFade'' function parameters.}} {{Note|If you need to start another fade while this function is already fading something, you will need another ''dxFade...")
  • 16:42, 12 October 2023SetDiscordRichPresenceEndTime (hist | edit) ‎[1,363 bytes]LopSided (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|To use this function, you must set up your own application setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22270| This function sets the remaining time of Discord Rich Presence. }} ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceEndTime(int seconds) </syntaxhighlight> {{OOP||DiscordRPC:setEndTime}} ===Required arguments=== *'''seconds''': an integer representing the number of seconds...")
  • 06:37, 12 October 2023SetDiscordRichPresencePartySize (hist | edit) ‎[1,406 bytes]LopSided (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|To use this function, you must set up your own application setDiscordApplicationID}} {{Note|For the party size to be displayed, the state must be set setDiscordRichPresenceState}} {{New feature/item|3.0161|1.6.0|22270| This function sets the party size of Discord Rich Presence. }} ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresencePartySize(int size, int max) </syntaxhighlight> {{OOP||DiscordRPC...")
  • 06:35, 12 October 2023SetDiscordRichPresenceStartTime (hist | edit) ‎[1,234 bytes]LopSided (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|To use this function, you must set up your own application setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22270| This function sets the elapsed time of Discord Rich Presence. }} ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceStartTime(int seconds) </syntaxhighlight> {{OOP||DiscordRPC:setDetails}} ===Required arguments=== *'''seconds''': an integer representing the number of seconds...")
  • 20:05, 10 October 2023SetDiscordRichPresenceButton (hist | edit) ‎[1,449 bytes]Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} The function sets a custom button through which we can access the website on Discord. ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceButton(int index, string text, string url) </syntaxhighlight> {{OOP||DiscordRPC:setButton}} ===Required arguments=== *'''index''': a int index of the button (possible 1 and 2) *'''text''': a string with title name *'''url''': a string with url name (works only with '''https://''' or...")
  • 19:58, 10 October 2023SetDiscordRichPresenceDetails (hist | edit) ‎[1,233 bytes]Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} The function sets own details text on Rich Presence. ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceDetails(string details) </syntaxhighlight> {{OOP||DiscordRPC:setDetails}} ===Required arguments=== *'''details''': a string with details name ===Returns=== Returns ''true'' if function succeeds, ''false'' if the client has disabled synchronisation. ==Example== This example prints out if the application was succes...")
  • 19:50, 10 October 2023SetDiscordRichPresenceState (hist | edit) ‎[1,113 bytes]Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} The function sets own state text on Rich Presence. ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceState(string state) </syntaxhighlight> {{OOP||DiscordRPC:setState}} ===Required arguments=== *'''state''': a string with state name ===Returns=== Returns ''true'' if function succeeds, ''false'' if the client has disabled synchronisation. ==Example== This example prints out if the application was successfully set u...")
  • 19:45, 10 October 2023SetDiscordRichPresenceSmallAsset (hist | edit) ‎[1,402 bytes]Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} The function, you can set the small image of the application. The maximum size of Assets is ''1024x1024'', the minimum ''512x512''. ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceSmallAsset(string assetImage, string text) </syntaxhighlight> {{OOP||DiscordRPC:setSmallAsset}} ===Required arguments=== *'''assetImage''': a string indicating the image you uploaded to your application's asset list. *'''text''': a strin...")
  • 19:43, 10 October 2023SetDiscordRichPresenceAsset (hist | edit) ‎[1,383 bytes]Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} The function, you can set the main image of the application. The maximum size of Assets is ''1024x1024'', the minimum ''512x512''. ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceAsset(string assetImage, string text) </syntaxhighlight> {{OOP||DiscordRPC:setAsset}} ===Required arguments=== *'''assetImage''': a string indicating the image you uploaded to your application's asset list. *'''text''': a string displayed...")
  • 19:28, 10 October 2023SetDiscordApplicationID (hist | edit) ‎[1,445 bytes]Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|To reset, please use resetDiscordRichPresenceData}} The function can assign your own application to use in Rich Presence. You can create own '''[https://discord.com/developers/applications here]''' ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordApplicationID(string applicationKey) </syntaxhighlight> {{OOP||DiscordRPC:setApplication}} ===Required arguments=== *'''applicationKey''': a string represent key...")
  • 19:04, 10 October 2023ResetDiscordRichPresenceData (hist | edit) ‎[1,051 bytes]Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} The function resets all the data we have previously transmitted and sets to default. ==Syntax== <syntaxhighlight lang="lua"> bool resetDiscordRichPresenceData() </syntaxhighlight> ===Returns=== Returns ''true'' if reset was successfull, ''false'' if the client has disabled synchronisation. ==Example== The example shows if you set up your own application and sample asset and then reset the data. <syntaxhighlight lang="lua"> setDiscordAp...")
  • 18:53, 10 October 2023IsDiscordRichPresenceConnected (hist | edit) ‎[1,034 bytes]Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} The function check the client has synchronisation with Discord Rich Presence enabled. ==Syntax== <syntaxhighlight lang="lua"> bool isDiscordRichPresenceConnected() </syntaxhighlight> {{OOP||DiscordRPC:isConnected}} ===Returns=== Returns ''true'' if the Discord Rich Presence is enabled on the client, ''false'' if the client has disabled synchronisation. ==Example== This example prints out if the client has enabled Discord Rich Prese...")
  • 05:38, 9 October 2023AR/table.flip (hist | edit) ‎[1,557 bytes]IManGaaX (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ <lowercasetitle></lowercasetitle> هذه الوظيفة تقوم بإرجاع الجدول بالقيم من اخر قيمه لاول قيمه مثل الانعكاس ==Syntax== <syntaxhighlight lang="lua">table table.flip( table theTable )</syntaxhighlight> ===Required Arguments=== * '''theTable''': الجدول الذى تريد انعكاس قيمه. ===Returns=== إرجاع الجدول بالقيم من اخر الجدول إلى ا...")
  • 04:51, 7 October 2023GetElementZoneFullName (hist | edit) ‎[1,725 bytes]IManGaaX (talk | contribs) (Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This function allows you to retrieve the zone full name of a element ==Syntax== <syntaxhighlight lang="lua">string getElementZoneFullName( element theElement )</syntaxhighlight> ===Required Arguments=== * '''theElement''': The element to get its full zone name ===Returns=== Returns the full name of the element zone ==Code== <section name="Shared" class="both" show="true"> <syntaxhighlight lang="lua"> fun...")
  • 16:09, 6 October 2023Debounce (hist | edit) ‎[1,202 bytes]CrosRoad95 (talk | contribs) (Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This function is removing unwanted input noise from buttons, switches or other user input. see: https://www.techtarget.com/whatis/definition/debouncing ==Syntax== <syntaxhighlight lang="lua"> void debounce( number timeout, function callback, ...arguments) </syntaxhighlight> ==Code== <section name="Shared" class="both" show="true"> <syntaxhighlight lang="lua"> local debounces = {} function debounce(timeou...")
  • 07:49, 6 October 2023OnPlayerZoneChange (hist | edit) ‎[2,201 bytes]IManGaaX (talk | contribs) (Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This code implements an event that is triggered when the player enters a new area on the map ==Parameters== <syntaxhighlight lang="lua">string newCity, string newZone</syntaxhighlight> * newCity: New city is name. * newZone: New zone is name. ==Source== The source of this event is the player whose zone was changed <section name="Shared event" class="both" show="true"> <syntaxhighlight lang="lua"> local p...")
  • 12:02, 3 October 2023IsLastExecuteInTimer (hist | edit) ‎[1,299 bytes]IManGaaX (talk | contribs) (Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This function check if the execute in timer is the last execute ==Syntax== <syntaxhighlight lang="lua">bool isLastExecuteInTimer( timer theTimer )</syntaxhighlight> ===Required Arguments=== * '''theTimer''': The timer to check. ===Returns=== Returns ''true'' if the execute is the last execute in the timer, ''false'' if the execute is not the last execute in the timer <section name="Shared function" class...")
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)