mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
formatting and typos
This commit is contained in:
1 parent
75698216e0
commit
724c7e356d
99 files changed
+515
-305
No files matched your search
+13
-8
@@ -8,7 +8,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
ox_lib is a collection of Lua and UI functions to utilise in other resources.
|
||||
|
||||
The UI is built in React so the code needs to be compiled into standard JS.
|
||||
The UI is built in React so the code needs to be compiled into standard JS.
|
||||
If you don't know how to do this then please download the [release](https://github.com/overextended/ox_lib/releases/latest) (ox_lib.zip) which is *already* compiled into a working resource.
|
||||
|
||||
<Tabs>
|
||||
@@ -28,6 +28,7 @@ Or if the library is the only shared script you use you can do:
|
||||
```lua
|
||||
shared_script '@ox_lib/init.lua'
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value='JS/TS'>
|
||||
|
||||
@@ -39,7 +40,7 @@ All supported functions are located inside the `resource` folder in the lib.
|
||||
|
||||
You can get the npm package [here](https://npmjs.com/package/@overextended/ox_lib).
|
||||
|
||||
**Usage:**
|
||||
**Usage:**
|
||||
You can either import the whole library object which contains all the functions for that scope (client/server/shared) or
|
||||
you can deconstruct it and import the functions you find needed at the time.
|
||||
|
||||
@@ -50,25 +51,27 @@ import lib from '@overextended/ox_lib/server'
|
||||
```ts
|
||||
import { versionCheck } from '@overextended/ox_lib/server'
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
**ACE Permissions:**
|
||||
```
|
||||
|
||||
```yaml
|
||||
add_ace resource.ox_lib command.add_ace allow
|
||||
add_ace resource.ox_lib command.remove_ace allow
|
||||
add_ace resource.ox_lib command.add_principal allow
|
||||
add_ace resource.ox_lib command.remove_principal allow
|
||||
```
|
||||
|
||||
That's it!
|
||||
That's it!
|
||||
You can now use the library functions inside of your resource, check the rest of the
|
||||
documentation to see how to utilise them.
|
||||
|
||||
# Using icons for interface functions
|
||||
## Using icons for interface functions
|
||||
|
||||
The icon library used is Font Awesome 6.0, if for the icon you define only a string
|
||||
the default icon type will be `solid`.
|
||||
the default icon type will be `solid`.
|
||||
If you want to use a different icon type, i.e
|
||||
apple as a brand, you need to define icon as a table (`array`) with the first value being
|
||||
the icon type (`fas`, `far`, `fab`) as a string, and the second being the icon name.
|
||||
@@ -79,23 +82,25 @@ the icon type (`fas`, `far`, `fab`) as a string, and the second being the icon n
|
||||
```lua
|
||||
icon = {'fab', 'apple'}
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value='JS/TS'>
|
||||
|
||||
```ts
|
||||
icon: ['fab', 'apple']
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
# Building the UI
|
||||
## Building the UI
|
||||
|
||||
If you wish to edit any of the UI elements you will need to download the *source* code, edit what you need and then
|
||||
compile it.
|
||||
|
||||
:::danger
|
||||
|
||||
**DO NOT** debundle and unminify the release CSS and JS files to edit them.
|
||||
**DO NOT** de-bundle and un-minify the release CSS and JS files to edit them.
|
||||
:::
|
||||
**Requirements:**
|
||||
|
||||
|
||||
Reference in new issue
Block a user