User contributions for Mohab

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)

25 July 2025

  • 17:0117:01, 25 July 2025 diff hist −19 SetVehicleModelAudioSettingNo edit summary
  • 16:5616:56, 25 July 2025 diff hist +6,216 N GetVehicleModelAudioSettingsCreated 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 SetVehicleModelAudioSettingNo edit summary
  • 16:3816:38, 25 July 2025 diff hist +5,577 N SetVehicleModelAudioSettingCreated 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

10 July 2025

  • 09:2509:25, 10 July 2025 diff hist +613 GetMarkerTargetArrowPropertiesNo edit summary current
  • 09:0909:09, 10 July 2025 diff hist −17 DgsMenuAddSeparatorNo edit summary current
  • 08:5308:53, 10 July 2025 diff hist +1,255 N DgsMenuRemoveItemCreated 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 DgsMenuAddSeparatorNo edit summary
  • 08:3208:32, 10 July 2025 diff hist +18 N File:DGS Text Seperator.pngNo edit summary current
  • 08:2808:28, 10 July 2025 diff hist +6,359 N DgsMenuAddSeparatorCreated 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.pngNo edit summary current
  • 06:4306:43, 10 July 2025 diff hist +5,085 N DgsMenuGetItemColorCreated 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 DgsMenuSetItemColorCreated 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 DgsMenuGetItemTextSizeCreated 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 DgsMenuSetItemTextSizeCreated 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 DgsMenuGetItemTextNo edit summary current
  • 04:5104:51, 10 July 2025 diff hist −34 DgsMenuGetItemCommandNo edit summary current
  • 04:5104:51, 10 July 2025 diff hist −28 DgsMenuSetItemCommandNo edit summary current
  • 04:5104:51, 10 July 2025 diff hist −28 DgsMenuGetItemCommandNo edit summary
  • 04:5104:51, 10 July 2025 diff hist −28 DgsMenuSetItemTextNo edit summary current
  • 04:5004:50, 10 July 2025 diff hist −28 DgsMenuHideNo edit summary current
  • 04:5004:50, 10 July 2025 diff hist −28 DgsMenuAddItemNo edit summary current
  • 04:4904:49, 10 July 2025 diff hist +1,339 N DgsMenuGetItemTextCreated 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 DgsMenuSetItemTextNo edit summary
  • 04:4704:47, 10 July 2025 diff hist +2,023 N DgsMenuSetItemTextCreated 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 DgsMenuGetItemCommandCreated 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 DgsMenuSetItemCommandCreated 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 DgsMenuAddItemCreated 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 DgsMenuHideCreated 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 DgsAddPropertyListenerNo edit summary current
  • 04:1604:16, 10 July 2025 diff hist −112 DgsAddPropertyListenerNo edit summary
  • 04:1404:14, 10 July 2025 diff hist +5,321 N DgsAddPropertyListenerCreated 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:MohabCreated 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 OnDgsPropertyChangeCreated 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

(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)