mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 14:06:02 +01:00
- seperated the 2000+ lines in ReadMe.md into seperate files. - useful if things expand - better readability for users - more organised layout
1.2 KiB
1.2 KiB
duifunctions.lua
These functions support dynamic UI image rendering in 3D environments using runtime texture dictionaries. Ideal for integrating nui:// or external http:// image URLs into MLOs or world props.
-
createDui(name, http, size, txd))
- Sets up a runtime texture dictionary and links an image from a
nui://orhttp://URL. - This function should be used once to create the texture dictionary needed for rendering Dui images.
- Example:
createDui("logo", "https://example.com/logo.png", { x = 512, y = 256 }, scriptTxd)
- Sets up a runtime texture dictionary and links an image from a
-
DuiSelect(data)
- Updates the URL on an existing texture dictionary to change the rendered image.
- Can be used at runtime to swap out visuals in MLOs or props.
- Parameters:
textureDict(string): The texture dictionary to target.texture(string): The specific texture name to override.url(string): The new image URL.width,height(number): The texture resolution.
- Example:
DuiSelect({ name = "logo", texn = "logoTex", texd = "someTxd", size = { x = 512, y = 256 } })