mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
Update lib information and examples
This commit is contained in:
1 parent
4cc2aa440b
commit
8972054319
4 files changed
+23
-22
No files matched your search
@@ -135,3 +135,13 @@ As of the time writing this the buttons are sorted **alphabetically**.
|
|||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
|
### lib.getOpenContextMenu
|
||||||
|
|
||||||
|
Returns the id of the currently open context menu.
|
||||||
|
|
||||||
|
If not context menu is open returns `nil`.
|
||||||
|
|
||||||
|
```lua
|
||||||
|
lib.getOpenContextMenu()
|
||||||
|
```
|
||||||
@@ -69,15 +69,6 @@ end
|
|||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value='advanced' label='Advanced'>
|
<TabItem value='advanced' label='Advanced'>
|
||||||
|
|
||||||
:::danger
|
|
||||||
|
|
||||||
Everything under this advanced exampled requires ox_lib version at least 2.3.0 and
|
|
||||||
as of the time of writing this version **hasn't** been pushed yet.
|
|
||||||
|
|
||||||
Optionally you can download the source code and build the UI yourself if you don't
|
|
||||||
want to wait for the release.
|
|
||||||
:::
|
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
local input = lib.inputDialog('Police locker', {
|
local input = lib.inputDialog('Police locker', {
|
||||||
{ type = "input", label = "Locker number" },
|
{ type = "input", label = "Locker number" },
|
||||||
|
|||||||
@@ -53,14 +53,14 @@ lib.notify({
|
|||||||
description = 'Notification description',
|
description = 'Notification description',
|
||||||
position = 'top',
|
position = 'top',
|
||||||
style = {
|
style = {
|
||||||
backgroundColor = 'red',
|
backgroundColor = '#141517',
|
||||||
color = 'blue'
|
color = '#909296'
|
||||||
},
|
},
|
||||||
icon = 'bed',
|
icon = 'ban',
|
||||||
iconColor = 'purple'
|
iconColor = '#C53030'
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||

|

|
||||||
</TabItem>
|
</TabItem>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
|
|||||||
@@ -22,14 +22,13 @@ lib.showTextUI(text, options)
|
|||||||
|
|
||||||
**Example:**
|
**Example:**
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<TabItem label="Default" value="default">
|
<TabItem label="Basic" value="basic">
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
lib.showTextUI('[E] - Fuel vehicle', {
|
lib.showTextUI('[E] - Fuel vehicle')
|
||||||
position = "top-center",
|
|
||||||
icon = "gas-pump",
|
|
||||||
})
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|

|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem label="Custom style" value="custom">
|
<TabItem label="Custom style" value="custom">
|
||||||
|
|
||||||
@@ -37,14 +36,15 @@ lib.showTextUI('[E] - Fuel vehicle', {
|
|||||||
lib.showTextUI('[E] - Pick apple', {
|
lib.showTextUI('[E] - Pick apple', {
|
||||||
position = "top-center",
|
position = "top-center",
|
||||||
icon = 'hand',
|
icon = 'hand',
|
||||||
iconColor = "red",
|
|
||||||
style = {
|
style = {
|
||||||
borderRadius = 0,
|
borderRadius = 0,
|
||||||
backgroundColor = 'blue',
|
backgroundColor = '#48BB78',
|
||||||
color = 'red'
|
color = 'white'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|

|
||||||
</TabItem>
|
</TabItem>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user