User contributions for Mohab
Jump to navigation
Jump to search
25 July 2025
- 17:0117:01, 25 July 2025 diff hist −19 SetVehicleModelAudioSetting No edit summary
- 16:5616:56, 25 July 2025 diff hist +6,216 N GetVehicleModelAudioSettings Created page with "{{client function}} __NOTOC__ {{New feature/item|3.0161|1.6.0|23140|This function retrieves audio properties for a specific vehicle model. It allows inspection of various vehicle sound settings such as engine sounds, horn characteristics, door sounds, and radio settings.}} ==Syntax== <syntaxhighlight lang="lua"> table getVehicleModelAudioSettings ( int modelID ) </syntaxhighlight> ===Required Arguments=== *'''modelID:''' The vehicle model ID to retrieve audio settings..."
- 16:5216:52, 25 July 2025 diff hist +40 SetVehicleModelAudioSetting No edit summary
- 16:3816:38, 25 July 2025 diff hist +5,577 N SetVehicleModelAudioSetting Created page with "{{client function}} __NOTOC__ This function sets audio properties for a specific vehicle model. It allows customization of various vehicle sound settings such as engine sounds, horn characteristics, door sounds, and radio settings. ==Syntax== <syntaxhighlight lang="lua"> bool setVehicleModelAudioSetting ( int modelID, string property, float value ) </syntaxhighlight> ===Required Arguments=== *'''modelID:''' The vehicle model ID to modify audio settings for *'''property..."
15 July 2025
- 12:1312:13, 15 July 2025 diff hist +1,251 OnClientBrowserResourceBlocked No edit summary current
- 10:3310:33, 15 July 2025 diff hist +2 GetCameraMatrix No edit summary current
- 10:3210:32, 15 July 2025 diff hist −2 GetCameraMatrix No edit summary
- 10:3210:32, 15 July 2025 diff hist +100 GetCameraMatrix No edit summary
10 July 2025
- 09:2509:25, 10 July 2025 diff hist +613 GetMarkerTargetArrowProperties No edit summary current
- 09:0909:09, 10 July 2025 diff hist −17 DgsMenuAddSeparator No edit summary current
- 08:5308:53, 10 July 2025 diff hist +1,255 N DgsMenuRemoveItem Created page with "{{Client function}} __NOTOC__ This function removes an item from a DGS menu element. ==Syntax== <syntaxhighlight lang="lua"> bool dgsMenuRemoveItem ( element menu, int uniqueID ) </syntaxhighlight> ===Required Arguments=== *'''menu:''' The DGS menu element from which to remove the item *'''uniqueID:''' The unique ID of the menu item to remove (returned by dgsMenuAddItem) ===Returns=== Returns ''true'' if the item was successfully removed, ''false'' if the item wit..." current
- 08:3208:32, 10 July 2025 diff hist +231 DgsMenuAddSeparator No edit summary
- 08:3208:32, 10 July 2025 diff hist +18 N File:DGS Text Seperator.png No edit summary current
- 08:2808:28, 10 July 2025 diff hist +6,359 N DgsMenuAddSeparator Created page with "{{Client function}} __NOTOC__ This function adds a separator to a DGS menu. A separator is a visual divider that can be used to organize menu items into logical groups. It can be displayed as a horizontal line or as text. ==Syntax== <syntaxhighlight lang="lua"> int uniqueID, int position dgsMenuAddSeparator ( element menu [, string text, int parentItemID, int position ] ) </syntaxhighlight> ===Required Arguments=== *'''menu:''' The DGS menu element to add the separator..."
- 07:5307:53, 10 July 2025 diff hist +86 N File:Dgs seperator.png No edit summary current
- 06:4306:43, 10 July 2025 diff hist +5,085 N DgsMenuGetItemColor Created page with "{{Client function}} __NOTOC__ This function gets the color of a specific menu item. You can retrieve the colors either as separate RGBA components or as color values. ==Syntax== <syntaxhighlight lang="lua"> int r, int g, int b, int a, int hr, int hg, int hb, int ha dgsMenuGetItemColor ( element menu, int uniqueID ) int normalColor, int hoverColor dgsMenuGetItemColor ( element menu, int uniqueID, bool notSplitColor ) </syntaxhighlight> ===Required Arguments=== *'''menu:..."
- 06:1806:18, 10 July 2025 diff hist +4,335 N DgsMenuSetItemColor Created page with "{{Client function}} __NOTOC__ This function sets the color of a specific menu item. You can set both the normal and hover colors for the item. ==Syntax== <syntaxhighlight lang="lua"> bool dgsMenuSetItemColor ( element menu, int uniqueID, int r, int g, int b [, int a ] ) bool dgsMenuSetItemColor ( element menu, int uniqueID, int color ) bool dgsMenuSetItemColor ( element menu, int uniqueID, table colors ) </syntaxhighlight> ===Required Arguments=== *'''menu:''' The DGS..." current
- 06:0606:06, 10 July 2025 diff hist +1,405 N DgsMenuGetItemTextSize Created page with "{{Client function}} __NOTOC__ This function gets the text size of a specific menu item. ==Syntax== <syntaxhighlight lang="lua"> float, float dgsMenuGetItemTextSize ( element menu, int uniqueID ) </syntaxhighlight> ===Required Arguments=== *'''menu:''' The DGS menu element containing the item *'''uniqueID:''' The unique ID of the menu item (returned by dgsMenuAddItem) ===Returns=== Returns two floats representing the horizontal and vertical text scale factors, or '..." current
- 05:5905:59, 10 July 2025 diff hist +1,762 N DgsMenuSetItemTextSize Created page with "{{Client function}} __NOTOC__ This function sets the text size of a specific menu item. ==Syntax== <syntaxhighlight lang="lua"> bool dgsMenuSetItemTextSize ( element menu, int uniqueID, float textSizeX [, float textSizeY ] ) </syntaxhighlight> ===Required Arguments=== *'''menu:''' The DGS menu element containing the item *'''uniqueID:''' The unique ID of the menu item (returned by dgsMenuAddItem) *'''textSizeX:''' The horizontal scale of the text ===Optional Argum..." current
- 04:5204:52, 10 July 2025 diff hist −28 DgsMenuGetItemText No edit summary current
- 04:5104:51, 10 July 2025 diff hist −34 DgsMenuGetItemCommand No edit summary current
- 04:5104:51, 10 July 2025 diff hist −28 DgsMenuSetItemCommand No edit summary current
- 04:5104:51, 10 July 2025 diff hist −28 DgsMenuGetItemCommand No edit summary
- 04:5104:51, 10 July 2025 diff hist −28 DgsMenuSetItemText No edit summary current
- 04:5004:50, 10 July 2025 diff hist −28 DgsMenuHide No edit summary current
- 04:5004:50, 10 July 2025 diff hist −28 DgsMenuAddItem No edit summary current
- 04:4904:49, 10 July 2025 diff hist +1,339 N DgsMenuGetItemText Created page with "{{Client function}} __NOTOC__ This function retrieves the displayed text of a menu item. ==Syntax== <syntaxhighlight lang="lua"> string dgsMenuGetItemText ( element menu, int uniqueID ) </syntaxhighlight> ===Required Arguments=== *'''menu:''' The DGS menu element containing the item *'''uniqueID:''' The unique ID of the menu item (returned by dgsMenuAddItem) ===Returns=== Returns the text string if successful, ''false'' if the item doesn't exist. ==Examples== <sy..."
- 04:4704:47, 10 July 2025 diff hist −42 DgsMenuSetItemText No edit summary
- 04:4704:47, 10 July 2025 diff hist +2,023 N DgsMenuSetItemText Created page with "{{Client function}} __NOTOC__ This function changes the displayed text of an existing menu item. ==Syntax== <syntaxhighlight lang="lua"> bool dgsMenuSetItemText ( element menu, int uniqueID, string text ) </syntaxhighlight> ===Required Arguments=== *'''menu:''' The DGS menu element containing the item *'''uniqueID:''' The unique ID of the menu item (returned by dgsMenuAddItem) *'''text:''' The new text to display for this menu item ===Returns=== Returns ''true'' i..."
- 04:4404:44, 10 July 2025 diff hist +2,041 N DgsMenuGetItemCommand Created page with "{{Client function}} __NOTOC__ This function retrieves the command identifier of a menu item. The command is used to identify which action should be performed when the item is selected. ==Syntax== <syntaxhighlight lang="lua"> string dgsMenuGetItemCommand ( element menu, int uniqueID ) </syntaxhighlight> ===Required Arguments=== *'''menu:''' The DGS menu element containing the item *'''uniqueID:''' The unique ID of the menu item (returned by dgsMenuAddItem) ===Retur..."
- 04:4004:40, 10 July 2025 diff hist +2,233 N DgsMenuSetItemCommand Created page with "{{client function}} __NOTOC__ This function changes the command identifier of an existing menu item. The command is used to identify the item when it's selected. ==Syntax== <syntaxhighlight lang="lua"> bool dgsMenuSetItemCommand ( element menu, int uniqueID, string command ) </syntaxhighlight> ===Required Arguments=== *'''menu:''' The DGS menu element containing the item *'''uniqueID:''' The unique ID of the menu item (returned by dgsMenuAddItem) *'''command:''' Th..."
- 04:3204:32, 10 July 2025 diff hist +2,862 N DgsMenuAddItem Created page with "{{client function}} __NOTOC__ This function adds a new item to a DGS menu. Each item can have text, a command identifier, and can optionally be a child of another item to create submenus. ==Syntax== <syntaxhighlight lang="lua"> int, int dgsMenuAddItem ( element menu, string text, string command [, int parentItemID, int position ] ) </syntaxhighlight> ===Required Arguments=== *'''menu:''' The DGS menu element to add the item to *'''text:''' The text that will be display..."
- 04:2804:28, 10 July 2025 diff hist +1,444 N DgsMenuHide Created page with "{{client function}} __NOTOC__ This function hides a DGS menu and cleans up any associated submenus. ==Syntax== <syntaxhighlight lang="lua"> bool dgsMenuHide ( element menu ) </syntaxhighlight> ===Required Arguments=== *'''menu:''' The DGS menu element to hide ===Returns=== Returns ''true'' if the menu was hidden successfully, ''false'' otherwise. ==Examples== <syntaxhighlight lang="lua"> loadstring(exports.dgs:dgsImportFunction())()-- load functions -- Create a menu..."
- 04:1704:17, 10 July 2025 diff hist +9 DgsAddPropertyListener No edit summary current
- 04:1604:16, 10 July 2025 diff hist −112 DgsAddPropertyListener No edit summary
- 04:1404:14, 10 July 2025 diff hist +5,321 N DgsAddPropertyListener Created page with "{{client function}} __NOTOC__ This function enables monitoring of property changes on DGS elements. When a property that has been added to the listener list changes via dgsSetProperty, it triggers the onDgsPropertyChange event. {{Note|Property listeners only trigger when using dgsSetProperty, not when using specific setter functions}} {{Note|The '''onDgsPropertyChange''' event is only triggered for properties that have been explicitly added to th..."
- 02:5502:55, 10 July 2025 diff hist +1,228 N User:Mohab Created page with "__NOTOC__ I'm '''Mohab''' (also known as '''MohabCodeX'''), a Software Engineer & Content Creator ==Profile== *'''Username:''' Mohab *'''Also known as:''' MohabCodeX *'''Focus:''' MTA:SA Lua Scripting & Education ==Latest Contributions== ===Scripts & Resources=== *[https://community.multitheftauto.com/index.php?p=resources&s=details&id=18990 Debug GUI] - debugging tool with graphical interface *[https://community.multitheftauto.com/index.php?p=resources&s=details&id=1..." current
- 02:4402:44, 10 July 2025 diff hist +6,081 N OnDgsPropertyChange Created page with "__NOTOC__ {{Client event}} This event is triggered when a monitored property of a dgs element changes via dgsSetProperty. The property must be added to the listener using dgsAddPropertyListener for this event to fire. {{Note|This event only fires for properties that have been explicitly added as listeners using dgsAddPropertyListener}} {{Note|The event only triggers when using dgsSetProperty, not element-specific functions like dgsSetText}} {{Tip|Thi..." current
9 April 2025
- 02:3802:38, 9 April 2025 diff hist +1 m Template:AR/Useful Functions →وظائف أخرى مفيدة current
- 02:3702:37, 9 April 2025 diff hist +174 m Template:AR/Useful Functions →وظائف أخرى مفيدة: Added CreateDirectory page to arabic section
- 02:3402:34, 9 April 2025 diff hist +141 m Template:Useful Functions →Utility: added createDirectory page to utility functions list
- 02:3002:30, 9 April 2025 diff hist +23 m CreateDirectory Added redirect for arabic page current
- 02:2902:29, 9 April 2025 diff hist +4,629 N AR/createDirectory Arabic Translation for createDirectory Page current
- 01:5101:51, 9 April 2025 diff hist −9 Template:CreateDirectory Removed redirect to Multi Theft Auto: Wiki:CreateDirectory current Tag: Removed redirect
- 01:4901:49, 9 April 2025 diff hist +3,657 N CreateDirectory This function creates a directory in the resource's file system
- 01:4401:44, 9 April 2025 diff hist +52 N Template:CreateDirectory Mohab moved page Template:CreateDirectory to Multi Theft Auto: Wiki:CreateDirectory: removing ("Template:") word from the page name Tag: New redirect
- 01:4401:44, 9 April 2025 diff hist 0 m Multi Theft Auto: Wiki:CreateDirectory Mohab moved page Template:CreateDirectory to Multi Theft Auto: Wiki:CreateDirectory: removing ("Template:") word from the page name current
- 01:4001:40, 9 April 2025 diff hist +3,527 m Multi Theft Auto: Wiki:CreateDirectory No edit summary
- 01:3001:30, 9 April 2025 diff hist +75 m Multi Theft Auto: Wiki:CreateDirectory No edit summary
- 01:2401:24, 9 April 2025 diff hist +3,597 N Multi Theft Auto: Wiki:CreateDirectory Creates a directory in the resource's file system