New pages
Jump to navigation
Jump to search
- 01:31, 23 October 2025 PT-BR/OnPlayerLogin (hist | edit) [1,729 bytes] Lettify (talk | contribs) (Created page with "{{Server event}} __NOTOC__ Este evento é acionado quando um jogador se conecta em sua conta dentro do jogo. ==Parâmetros== <syntaxhighlight lang="lua"> account thePreviousAccount, account theCurrentAccount </syntaxhighlight> *'''thePreviousAccount''': A conta que o jogador se conectou anteriormente. *'''theCurrentAccount''': A conta que o jogador se conectou agora. ==Source== O source deste evento é o Elemen...")
- 20:23, 22 October 2025 Astrath:createTab (hist | edit) [2,138 bytes] Sybellex (talk | contribs) (Created page with "= DxTab:new = {{Client function}} {{FuncDef|element DxTab:new ( element parent, string text, table color, table hoverColor, table activeColor, table tabColor )}} '''Description:''' Creates a new tab element inside a `DxTabPanel`. Tabs are linked to a panel and their positions are automatically managed according to the panel layout. Only usable with a valid `DxTabPanel` parent. '''Parameters:''' * parent (element) – A `DxTabPanel` element where this tab will be attac...")
- 20:19, 22 October 2025 Astrath:createTabPanel (hist | edit) [2,529 bytes] Sybellex (talk | contribs) (Created page with "= DxTabPanel:new = {{Client function}} {{FuncDef|element DxTabPanel:new ( float posX, float posY, float width, float height, element parent, boolean relative, table color, table tabColor, table activeColor, table hoverColor, string font, float fontsize, string style, string tabStyle )}} '''Description:''' Creates a new tab panel DX element. A tab panel can hold multiple tabs and manage their selection and hover states. Automatically adjusts child tab positions and size...")
- 20:17, 22 October 2025 Astrath:createShape (hist | edit) [1,657 bytes] Sybellex (talk | contribs) (Created page with "= DxShape:new = {{Client function}} {{FuncDef|element DxShape:new ( float posX, float posY, float width, float height, element parent, boolean relative, table color )}} '''Description:''' Creates a new DX-based shape element. Shapes can have custom colors, hover effects, and rounded corners. Each shape instance is automatically registered in the DX library. '''Parameters:''' * posX, posY (float) – Position on screen. * width, height (float) – Size of the shape. *...")
- 20:15, 22 October 2025 Astrath:createRadio (hist | edit) [2,281 bytes] Sybellex (talk | contribs) (Created page with "= DxRadio:new = {{Client function}} {{FuncDef|element DxRadio:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string key, string font, float fontsize )}} '''Description:''' Creates a new DX-based radio button element. Radio buttons are single-select controls grouped by a key, allowing only one selection per group. Each radio instance is automatically registered in the DX library. '''Parameters:''' * text (string)...")
- 20:14, 22 October 2025 Astrath:createMemo (hist | edit) [2,253 bytes] Sybellex (talk | contribs) (Created page with "= DxMemo:new = {{Client function}} {{FuncDef|element DxMemo:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize )}} '''Description:''' Creates a new DX-based memo element. Memos are multi-line text boxes that support scrolling, cursor positioning, text input, custom fonts, colors, and read-only mode. Each memo instance is automatically registered in the DX library. '''Parameters:''' * text...")
- 20:12, 22 October 2025 Astrath:createLabel (hist | edit) [2,542 bytes] Sybellex (talk | contribs) (Created page with "= DxLabel:new = {{Client function}} {{FuncDef|element DxLabel:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize, string horizontalAlign, string verticalAlign )}} '''Description:''' Creates a new DX-based label element. Labels display text, support parent-relative positioning, custom fonts, colors, alignment, and optional hover effects. Each label instance is automatically registered in th...")
- 19:59, 22 October 2025 Astrath:createImage (hist | edit) [1,621 bytes] Sybellex (talk | contribs) (Created page with "= DxImage:new = {{Client function}} {{FuncDef|element DxImage:new ( string path, float posX, float posY, float width, float height, element parent, boolean relative )}} '''Description:''' Creates a DX image element. An image element displays a static image from a file on the screen. '''Parameters:''' path (string) – Path to the image file (must exist). posX, posY (float) – Position on screen. width, height (float) – Size of the image. parent (element) – P...")
- 19:56, 22 October 2025 Astrath:createHidden (hist | edit) [1,709 bytes] Sybellex (talk | contribs) (Created page with "= DxHidden:new = {{Client function}} {{FuncDef|element DxHidden:new ( float posX, float posY, float width, float height, element parent, boolean relative )}} '''Description:''' Creates a hidden DX element. Hidden elements are not drawn and can be used as containers or invisible parents for other DX elements. They can store position and size information and manage child elements. '''Parameters:''' * posX, posY (float) – Position on screen. * width, height (float)...")
- 19:52, 22 October 2025 Astrath:createGridList (hist | edit) [3,670 bytes] Sybellex (talk | contribs) (Created page with "= DxGridlist:new = {{Client function}} {{FuncDef|element DxGridlist:new ( float posX, float posY, float width, float height, element parent, boolean relative, table columnSize, string font, float fontSize, table color, table headColor, table hoverColor, table activeColor, table scrollColor, table scrollBGColor )}} '''Description:''' Creates a new DX-based gridlist element. Gridlists display rows and columns of data, support scrolling, hover effects, row selection, and c...")
- 19:48, 22 October 2025 Astrath:createEditBox (hist | edit) [2,726 bytes] Sybellex (talk | contribs) (Created page with "= DxEdit:new / Astrath:createEditBox = {{Client function}} {{FuncDef|element DxEdit:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize, string placeholder )}} '''Description:''' Creates a new DX-based edit box element. Edit boxes allow text input with options for read-only mode, numeric-only input, hover effects, and color customization. Each edit box instance is automatically registered i...")
- 19:43, 22 October 2025 Astrath:createComboBox (hist | edit) [3,214 bytes] Sybellex (talk | contribs) (Created page with "= DxCombobox:new / Astrath:createCombobox = {{Client function}} {{FuncDef|element DxCombobox:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string desc, number maxItems, table color, string font, float fontSize, table scrollColor, table scrollBGColor )}} '''Description:''' Creates a new DX-based combobox element. Comboboxes allow selecting from a list of items, support scrolling, hover effects, and color customiz...")
- 19:40, 22 October 2025 Astrath:createCheckBox (hist | edit) [2,349 bytes] Sybellex (talk | contribs) (Created page with "= DxCheckbox:new / Astrath:createCheckbox = {{Client function}} {{FuncDef|element DxCheckbox:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize )}} '''Description:''' Creates a new DX-based checkbox element. Checkboxes can be attached to parent elements, support hover effects, custom colors, and selection state. Each checkbox instance is automatically registered in the DX library. '''Para...")
- 19:33, 22 October 2025 Astrath:createButton (hist | edit) [2,568 bytes] Sybellex (talk | contribs) (Created page with "= DxButton:new = {{Client function}} {{FuncDef|element DxButton:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, table color, string font, float fontsize, string description, boolean isIcon, float iconWidth, float iconHeight )}} '''Description:''' Creates a new DX-based button element. Buttons can be attached to parent elements, support hover effects, custom colors, icons, fonts, and descriptions. Each button insta...")
- 18:49, 22 October 2025 Astrath:createWindow (hist | edit) [2,698 bytes] Sybellex (talk | contribs) (Created page with "= Astrath:createWindow = {{Client function}} {{FuncDef|element Astrath:createWindow ( float x, float y, float width, float height, string title )}} '''Description:''' Creates a new DX-based window element. The window can then be shown, hidden, or manipulated using other Astrath functions. '''Parameters:''' * x (float) – The X position of the window on the screen * y (float) – The Y position of the window on the screen * width (float) – Width of the window * heig...")
- 15:59, 15 October 2025 Astrath (hist | edit) [1,236 bytes] Sybellex (talk | contribs) (Resource Astrath)
- 18:30, 13 October 2025 GetClosestPoint (hist | edit) [2,728 bytes] IManGaaX (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ <lowercasetitle></lowercasetitle> This function finds the closest point from a given element to a list of points in 2D space. thumb|512px|This image shows an example of what the examble below did and what the function actually does. ==Syntax== <syntaxhighlight lang="lua">float, float, float getClosestPoint( element theElement, table points )</syntaxhighlight> ===Required Arguments=== '''theElement''': the ele...")
- 23:59, 5 September 2025 PT-BR/setElementPosition (hist | edit) [2,945 bytes] Lettify (talk | contribs) (Translation to Brazilian Portuguese) originally created as "BR-PT/setElementPosition"
- 11:13, 5 September 2025 GetColorName (hist | edit) [2,348 bytes] IManGaaX (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ <lowercasetitle></lowercasetitle> This function retrieves the nearest color name for a given RGB value using an online API. {{Note|This function requires an active internet connection and fetches the color name from an external API asynchronously. The result is returned via a callback function.}} ==Syntax== <syntaxhighlight lang="lua">getColorName( int r, int g, int b, function callback(name) )</syntaxhighlight> ===Required Arguments=== *...")
- 10:12, 5 September 2025 Table.flatten (hist | edit) [1,750 bytes] IManGaaX (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ <lowercasetitle></lowercasetitle> This function converts a nested table into a flattened table with concatenated keys. {{Note|This function recursively traverses all nested subtables and creates a new table where keys represent the original hierarchy using dot notation.}} ==Syntax== <syntaxhighlight lang="lua">table table.flatten( table t, [ string prefix = "" ] )</syntaxhighlight> ===Required Arguments=== * '''t''': the nested table to f...")
- 00:31, 3 September 2025 GetServerAveragePing (hist | edit) [1,140 bytes] O22 (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ This function gets average players ping. ==Syntax== <syntaxhighlight lang="lua">int getAveragePing( )</syntaxhighlight> ===Returns=== Returns the average players ping as integer. <br> Returns '''0''' if no players are online. ==Code== <section name="Shared" class="both" show="true"> <syntaxhighlight lang="lua"> function getAveragePing() local players = getElementsByType("player") if #players == 0 then return 0 end...")
- 22:59, 23 August 2025 DgsGIFGetSize (hist | edit) [1,846 bytes] Lettify (talk | contribs) (Created page with "__NOTOC__ {{Client function}} Returns the dimensions (width and height) of a GIF element created using dgsCreateGIF. The values correspond to the original size extracted from the GIF file during loading. ==Syntax== <syntaxhighlight lang="lua"> int int dgsGIFGetSize( element gif ) </syntaxhighlight> ===Required Arguments=== *'''gif: ''' The '''dgs-dxgif''' type element you want to get the size of. ===Returns=== Returns two integers corresponding to ''width'' an...")
- 10:27, 23 August 2025 DgsCreateGIF (hist | edit) [707 bytes] Thisdp (talk | contribs) (Created page with "__NOTOC__ {{Client function}} This function creates a GIF interface plugin. ==Syntax== <syntaxhighlight lang="lua"> element dgsCreateGIF( string pathOrRaw ) </syntaxhighlight> ===Required Arguments=== *'''pathOrRaw: ''' A string representing the path to your GIF file, or the raw GIF data ===Returns=== Returns a dgs-dxgif element (DGS Plugin Type)[ dgs-dxgif (Element Type) ] if succeed, ''false'' otherwise ==Example== <syntaxhighlight lang="lua"> DGS = exports.dg...")
- 21:15, 17 August 2025 OnPedWeaponReload (hist | edit) [950 bytes] -ffs-PLASMA (talk | contribs) (Created page with "__NOTOC__ {{Server event}} This event is triggered when a ped reloads his weapons. ==Parameters== <syntaxhighlight lang="lua"> int weapon, int clip, int ammo </syntaxhighlight> *'''weapon''': an int representing the weapon that was switched from. *'''clip''': an int representing the weapon clip size. *'''ammo''': an int representing the weapon ammo. ==Source== The source of this event is the ped that reloade...")
- 01:39, 6 August 2025 AR/getDiscordRichPresenceUserID (hist | edit) [1,756 bytes] O22 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|ستُعيد الدالة معرف المستخدم بشكل صحيح إذا كان المستخدم قد منح الموافقة مسبقًا ومتصل بتطبيق Rich Presence.}} {{New feature/item|3.0161|1.6.0|22342| تُعيد الدالة معرف مستخدم Discord الخاص بالعميل. }} ==التركيب== <syntaxhighlight lang="lua"> string getDiscordRichPresenceUserID() </syntaxhighlight> ===الق...")
- 01:33, 6 August 2025 AR/setDiscordRichPresenceEndTime (hist | edit) [1,706 bytes] O22 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|لاستخدام هذه الدالة، يجب عليك إعداد تطبيقك الخاص باستخدام setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22276| تقوم هذه الدالة بتعيين الوقت المتبقي في Discord Rich Presence. }} ==التركيب== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceEndTime(int seconds) </syntaxhighlight> {{OOP||...")
- 01:30, 6 August 2025 AR/setDiscordRichPresenceStartTime (hist | edit) [1,528 bytes] O22 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|لاستخدام هذه الدالة، يجب عليك إعداد تطبيقك الخاص باستخدام setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22276| تقوم هذه الدالة بتعيين الوقت المنقضي في Discord Rich Presence. }} ==التركيب== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceStartTime(int seconds) </syntaxhighlight> {{OOP...")
- 01:27, 6 August 2025 AR/setDiscordRichPresencePartySize (hist | edit) [1,804 bytes] O22 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|لاستخدام هذه الدالة، يجب عليك إعداد تطبيقك الخاص باستخدام setDiscordApplicationID}} {{Note|لكي يتم عرض حجم المجموعة، يجب تعيين الحالة باستخدام setDiscordRichPresenceState}} {{New feature/item|3.0161|1.6.0|22276| تقوم هذه الدالة بتعيين حجم المج...")
- 00:14, 6 August 2025 AR/setDiscordRichPresenceState (hist | edit) [1,372 bytes] O22 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|لاستخدام هذه الدالة، يجب عليك إعداد تطبيقك الخاص باستخدام setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22270| تقوم هذه الدالة بتعيين الحالة لتطبيق Discord Rich Presence. }} ==التركيب== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceState(string state) </syntaxhighlight> {{OOP||Disc...")
- 00:11, 6 August 2025 AR/setDiscordRichPresenceSmallAsset (hist | edit) [1,828 bytes] O22 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|لاستخدام هذه الدالة، يجب عليك إعداد تطبيقك الخاص باستخدام setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22270| باستخدام هذه الدالة، يمكنك تعيين صورة الأصل الصغيرة (small asset) للتطبيق. الحد الأقصى لحجم الصور هو ''1024 x1024''، والحد الأدنى هو ''512...")
- 00:01, 6 August 2025 AR/setDiscordRichPresenceDetails (hist | edit) [1,508 bytes] O22 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|لاستخدام هذه الدالة، يجب عليك إعداد تطبيقك الخاص باستخدام setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22270| تقوم هذه الدالة بتعيين نص التفاصيل في Discord Rich Presence. }} ==التركيب== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceDetails(string details) </syntaxhighlight> {{OOP||[...")