New pages

Jump to navigation Jump to search
New pages
Show bots | Show redirects
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)
  • 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...")
  • 08:02, 2 October 2023RO/getSoundProperties (hist | edit) ‎[1,754 bytes]Hydra (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0130|1.3.0|4097| Această funcție obține proprietățile unui anumit sound. }} ==Sintaxă== <syntaxhighlight lang="lua">float, float, float, bool getSoundProperties( element sound )</syntaxhighlight> {{OOP||sound:getProperties||setSoundProperties}} ===Argumente necesare=== *'''sound:'''' un sound element care este creat folosind playSound sau playSound3D. ===Returneaza=== Această funcție...")
  • 07:55, 2 October 2023RO/getSoundPan (hist | edit) ‎[925 bytes]Hydra (talk | contribs) (Created page with "__NOTOC__ {{Client function}} Această funcție este utilizată pentru a obține nivelul de panoramare al elementului sound specificat. ==Sintaxă== <syntaxhighlight lang="lua">float getSoundPan ( element theSound )</syntaxhighlight> {{OOP||sound:getPan|pan|setSoundPan}} ===Argumente necesare=== *''''theSound:'''' elementul sound pe care doriți să îl obțineți. ===Returnează=== Returnează valoarea ''float'' cu intervalul de la ''-1,0 (stânga)'' l...")
  • 07:47, 2 October 2023RO/getSoundFFTData (hist | edit) ‎[2,683 bytes]Hydra (talk | contribs) (Created page with "__NOTOC__ {{Client function}} Această funcție obține datele transformării rapide Fourier pentru un flux audio, care este un tabel de valori float reprezentând cadrul audio curent. Acest lucru permite vizualizări, de exemplu. O transformare Fourier rapidă generează un tabel cu toate frecvențele din cadrul audio curent, care începe de la capătul de jos al spectrului, trecând de la frecvențe medii la cele înalte, în această ordine. În cazul în care întâ...")
  • 07:12, 1 October 2023Table.flip (hist | edit) ‎[1,436 bytes]IManGaaX (talk | contribs) (Created page with "==Syntax== <syntaxhighlight lang="lua">string table.flip( table )</syntaxhighlight> ===Required Arguments=== * '''tbl''': The table to convert. ===Returns=== Returns table with flip values <section name="Shared function" class="both" show="true"> <syntaxhighlight lang="lua"> function table.flip(theTable) if (type(theTable) == "table") then local newTable = {} local tableNumber = -1 for i = 1, #theTable do tableNumber = tableNumber + 1 table.insert(newTabl...")
  • 17:32, 23 September 2023ProcessLineAgainstMesh (hist | edit) ‎[2,113 bytes]Pirulax (talk | contribs) (Create the page. Needs an example!)
  • 08:11, 21 September 2023SetCursorCenteredOnRectangle (hist | edit) ‎[1,286 bytes]Hydra (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ This function will center the cursor inside of an rectangle. ==Syntax== <syntaxhighlight lang="lua">bool setCursorCenteredOnRectangle ( float x, float y, float width, float height)</syntaxhighlight> ===Required Arguments=== * '''x:''' The x position of the rectangle. * '''y:''' The y position of the rectangle. * '''width:''' The width of the rectangle. * '''height:''' The width of the rectangle. ===Returns=== Returns a ''true'' if the op...")
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)