New pages

Jump to navigation Jump to search
New pages
Hide bots | Hide redirects
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)
  • 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,670 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)