Resource:RDX: Difference between revisions
Jump to navigation
Jump to search
OfficialMr3b (talk | contribs) |
OfficialMr3b (talk | contribs) |
||
Line 9: | Line 9: | ||
==Supported Functions== | ==Supported Functions== | ||
1 | 1 | ||
==Example== | |||
<section show="true" name="Example 1 - Client" class="client"> | |||
<syntaxhighlight lang="lua"> | |||
loadstring(exports.fixing:importSizes())() | |||
addEventHandler("onClientRender", root, | |||
function() | |||
dxDrawRectangleFixed(468, 279, 430, 211, tocolor(255, 255, 255, 255), false) | |||
dxDrawTextFixed("Hello this is Mr3b", 468, 279, 898, 307, tocolor(0, 0, 0, 254), 1.00, "default", "center", "center", false, false, false, false, false) | |||
dxDrawImageFixed(622, 338, 123, 92, ":guieditor/images/examples/mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) | |||
end | |||
) | |||
</syntaxhighlight> | |||
</section> |
Revision as of 15:42, 5 January 2023
How to Use
First you need to add to the top of your code `loadstring(exports.fixing:importSizes())()` then you have to change some codes as showing in examples
Notes
1 - You need to change the resolution from fixing/config/data.lua to your resolution.
2 - Do not change any thing in fixing/server-side/update.lua or fixing/update.cfg.
3 - To update the resource you need to type /update-fixing.
Supported Functions
1
Example
Click to collapse [-]
Example 1 - Clientloadstring(exports.fixing:importSizes())() addEventHandler("onClientRender", root, function() dxDrawRectangleFixed(468, 279, 430, 211, tocolor(255, 255, 255, 255), false) dxDrawTextFixed("Hello this is Mr3b", 468, 279, 898, 307, tocolor(0, 0, 0, 254), 1.00, "default", "center", "center", false, false, false, false, false) dxDrawImageFixed(622, 338, 123, 92, ":guieditor/images/examples/mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end )