Update for docs (#116)

* Update for docs

* More changes and fix
This commit is contained in:
Maciej Ratyński authored and GitHub committed 2023-04-21 00:07:57 +10:00
1 parent 5850640094
commit 8ca3c1bdfc
21 files changed
+190 -7

No files matched your search

+13
View File
@@ -13,10 +13,23 @@ Returns whether the player pressed the confirm button or canceled the dialog.
<Tabs>
<TabItem value='Lua'>
<Tabs>
<TabItem value='Client'>
```lua
lib.alertDialog(data)
```
</TabItem>
<TabItem value='Server'>
```lua
TriggerClientEvent('ox_lib:alertDialog', source, data)
```
</TabItem>
</Tabs>
</TabItem>
<TabItem value='JS/TS'>
+13
View File
@@ -12,10 +12,23 @@ Custom notifications with a lot of styling options.
<Tabs>
<TabItem value='Lua'>
<Tabs>
<TabItem value='Client'>
```lua
lib.notify(data)
```
</TabItem>
<TabItem value='Server'>
```lua
TriggerClientEvent('ox_lib:notify', source, data)
```
</TabItem>
</Tabs>
</TabItem>
<TabItem value='JS/TS'>
+1
View File
@@ -38,6 +38,7 @@ lib.addRadialItem(items)
* Id of a menu to open.
* onSelect: `function(currentMenu: string | nil, itemIndex: number)` | `string`
* Function that's ran when a user clicks the item.
* keepOpen?: `boolean`
### lib.removeRadialItem