Resource:RDX: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 16: Line 16:
* [[RoundedRectangle|dxRoundedRectangle]]
* [[RoundedRectangle|dxRoundedRectangle]]
* [[isMouseInPosition|dxIsInPosition]]
* [[isMouseInPosition|dxIsInPosition]]
* [[dxDrawCircle|dxCircle]]
* [[dxDrawImageSection|dxImageSection]]
* [[guiCreateWindow|guiWindow]]
* [[guiCreateButton|guiButton]]
* [[guiCreateMemo|guiMemo]]
* [[guiCreateLabel|guiLabel]]
* [[guiCreateCheckBox|guiCheckBox]]
* [[guiCreateEdit|guiEdit]]
* [[guiCreateProgressBar|guiProgress]]
* [[guiCreateRadioButton|guiRadioButton]]
* [[guiCreateGridList|guiGridList]]
* [[guiCreateTabPanel|guiTabPanel]]
* [[guiCreateTab|guiTab]]
* [[guiCreateStaticImage|guiImage]]
* [[guiCreateScrollBar|guiScrollBar]]
* [[guiCreateScrollPane|guiScrollPane]]
* [[guiCreateComboBox|guiComboBox]]


==Example==   
==Example==   

Revision as of 17:10, 5 January 2023

Download

Github Source: https://github.com/Mr3bOfficial/rdx

How to Use

First you need to add to the top of your code loadstring(exports.rdx:import())() then you have to change some codes as showing in examples

Notes

1 - You need to change the resolution from rdx/config/data.lua to your resolution.
2 - Do not change any thing in rdx/server-side/update.lua or fixing/update.cfg.
3 - To update the resource you need to type /update-rdx.

Functions

Example

Click to collapse [-]
Client
loadstring(exports.rdx:import())()

addEventHandler("onClientRender", root,
    function()
        dxRectangle(468, 279, 430, 211, tocolor(255, 255, 255, 255), false)
        dxText("Hello this is Mr3b", 468, 279, 898, 307, tocolor(0, 0, 0, 254), 1.00, "default", "center", "center", false, false, false, false, false)
        dxImage(622, 338, 123, 92, ":guieditor/images/examples/mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
    end
)

See Also