mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 22:22:46 +00:00
Fix icon button links being too large
This commit is contained in:
1 parent
2d7f8b4f28
commit
56b7b3ab04
3 files changed
+75
-44
No files matched your search
@@ -16,9 +16,11 @@ import {FaNodeJs} from 'react-icons/fa'
|
|||||||
* Go through the install and make sure you install all of the features.
|
* Go through the install and make sure you install all of the features.
|
||||||
* Run `node --version` in cmd and make sure that it gives you the version number. If it doesn't then you didn't install it correctly.
|
* Run `node --version` in cmd and make sure that it gives you the version number. If it doesn't then you didn't install it correctly.
|
||||||
|
|
||||||
<a href="https://www.nodejs.org">
|
<div style={{width: 'fit-content'}}>
|
||||||
<IconButton side='left' icon={<FaNodeJs/>}>Download</IconButton>
|
<a href="https://www.nodejs.org">
|
||||||
</a>
|
<IconButton side='left' icon={<FaNodeJs/>}>Download</IconButton>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
## Installing Yarn:
|
## Installing Yarn:
|
||||||
|
|
||||||
|
|||||||
@@ -87,6 +87,8 @@ end
|
|||||||
|
|
||||||
We put together an example resoruce showcasing how to properly utilise the stash API:
|
We put together an example resoruce showcasing how to properly utilise the stash API:
|
||||||
|
|
||||||
<a href="https://www.github.com/overextended/ox_inventory_examples">
|
<div style={{width: 'fit-content'}}>
|
||||||
<IconButton side='left' icon={<BsGithub/>}>GitHub</IconButton>
|
<a href="https://www.github.com/overextended/ox_inventory_examples">
|
||||||
</a>
|
<IconButton side='left' icon={<BsGithub/>}>GitHub</IconButton>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
@@ -2,12 +2,11 @@
|
|||||||
title: Getting Started
|
title: Getting Started
|
||||||
---
|
---
|
||||||
|
|
||||||
import IconButton from '@site/src/components/IconButton'
|
import IconButton from '@site/src/components/IconButton';
|
||||||
import { BsGithub, BsBookHalf } from 'react-icons/bs'
|
import { BsGithub, BsBookHalf } from 'react-icons/bs';
|
||||||
import Tabs from '@theme/Tabs';
|
import Tabs from '@theme/Tabs';
|
||||||
import TabItem from '@theme/TabItem';
|
import TabItem from '@theme/TabItem';
|
||||||
|
|
||||||
|
|
||||||
:::caution
|
:::caution
|
||||||
|
|
||||||
This resource is being designed with the intention of providing advanced functionality while remaining easy to use,
|
This resource is being designed with the intention of providing advanced functionality while remaining easy to use,
|
||||||
@@ -23,13 +22,17 @@ We utilise our own resource to communicate with MySQL databases via the node-mys
|
|||||||
The backend is actively maintained and updated unlike the package used by mysql-async, providing improved performance, security, and features.
|
The backend is actively maintained and updated unlike the package used by mysql-async, providing improved performance, security, and features.
|
||||||
We provide full backwards compatibility with mysql-async and build for the current Cfx architecture.
|
We provide full backwards compatibility with mysql-async and build for the current Cfx architecture.
|
||||||
|
|
||||||
<div style={{display: 'flex'}}>
|
<div style={{ display: 'flex' }}>
|
||||||
<a href="https://www.github.com/overextended/oxmysql" style={{marginRight: '0.6rem'}}>
|
<a href="https://www.github.com/overextended/oxmysql" style={{ marginRight: '0.6rem' }}>
|
||||||
<IconButton side='left' icon={<BsGithub/>}>GitHub</IconButton>
|
<IconButton side="left" icon={<BsGithub />}>
|
||||||
</a>
|
GitHub
|
||||||
<a href="https://overextended.github.io/docs/oxmysql/Installation/">
|
</IconButton>
|
||||||
<IconButton side='left' icon={<BsBookHalf/>}>Documentation</IconButton>
|
</a>
|
||||||
</a>
|
<a href="https://overextended.github.io/docs/oxmysql/Installation/">
|
||||||
|
<IconButton side="left" icon={<BsBookHalf />}>
|
||||||
|
Documentation
|
||||||
|
</IconButton>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
### Ox Lib
|
### Ox Lib
|
||||||
@@ -38,23 +41,32 @@ A resource designed to provide reusable functions that can be loaded into any re
|
|||||||
|
|
||||||
**Currently used for:**
|
**Currently used for:**
|
||||||
|
|
||||||
* SetInterval
|
- SetInterval
|
||||||
* Server Callbacks
|
- Server Callbacks
|
||||||
* Table utilities (contains, matches)
|
- Table utilities (contains, matches)
|
||||||
* Requesting models, animations, etc.
|
- Requesting models, animations, etc.
|
||||||
* Disabling control actions
|
- Disabling control actions
|
||||||
|
|
||||||
<a href="https://www.github.com/overextended/ox_lib">
|
<div style={{ width: 'fit-content' }}>
|
||||||
<IconButton side='left' icon={<BsGithub/>}>GitHub</IconButton>
|
<a href="https://www.github.com/overextended/ox_lib">
|
||||||
</a>
|
<IconButton side="left" icon={<BsGithub />}>
|
||||||
|
GitHub
|
||||||
|
</IconButton>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
### Production Build
|
### Production Build
|
||||||
|
|
||||||
The interface is written in TypeScript using the React library, so the code included in the repository will not work.
|
The interface is written in TypeScript using the React library, so the code included in the repository will not work.
|
||||||
You either need to build the package yourself (more information in [guides](./Guides) section), or download a release (ox_inventory.zip).
|
You either need to build the package yourself (more information in [guides](./Guides) section), or download a release (ox_inventory.zip).
|
||||||
|
|
||||||
<a href="https://www.github.com/overextended/ox_inventory/releases/latest" style={{marginRight: '0.6rem'}}>
|
<div style={{ width: 'fit-content' }}>
|
||||||
<IconButton side='left' icon={<BsGithub/>}>GitHub</IconButton>
|
<a href="https://www.github.com/overextended/ox_inventory/releases/latest" style={{ marginRight: '0.6rem' }}>
|
||||||
</a>
|
<IconButton side="left" icon={<BsGithub />}>
|
||||||
|
GitHub
|
||||||
|
</IconButton>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
## Optional resources
|
## Optional resources
|
||||||
|
|
||||||
@@ -74,13 +86,17 @@ You will need to enable compatibility manually by adjusting your config - more i
|
|||||||
You must start qtarget before the inventory and after your framework.
|
You must start qtarget before the inventory and after your framework.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
<div style={{display: 'flex'}}>
|
<div style={{ display: 'flex' }}>
|
||||||
<a href="https://www.github.com/overextended/qtarget" style={{marginRight: '0.6rem'}}>
|
<a href="https://www.github.com/overextended/qtarget" style={{ marginRight: '0.6rem' }}>
|
||||||
<IconButton side='left' icon={<BsGithub/>}>GitHub</IconButton>
|
<IconButton side="left" icon={<BsGithub />}>
|
||||||
</a>
|
GitHub
|
||||||
<a href="https://overextended.github.io/qtarget/">
|
</IconButton>
|
||||||
<IconButton side='left' icon={<BsBookHalf/>}>Documentation</IconButton>
|
</a>
|
||||||
</a>
|
<a href="https://overextended.github.io/qtarget/">
|
||||||
|
<IconButton side="left" icon={<BsBookHalf />}>
|
||||||
|
Documentation
|
||||||
|
</IconButton>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
### NPWD
|
### NPWD
|
||||||
@@ -89,16 +105,19 @@ A standalone and feature-rich phone created by Project Error.
|
|||||||
|
|
||||||
The inventory will handle disabling the phone when the player has no item, and supports toggling the phone through item use.
|
The inventory will handle disabling the phone when the player has no item, and supports toggling the phone through item use.
|
||||||
|
|
||||||
<div style={{display: 'flex'}}>
|
<div style={{ display: 'flex' }}>
|
||||||
<a href="https://www.github.com/project-error/npwd" style={{marginRight: '0.6rem'}}>
|
<a href="https://www.github.com/project-error/npwd" style={{ marginRight: '0.6rem' }}>
|
||||||
<IconButton side='left' icon={<BsGithub/>}>GitHub</IconButton>
|
<IconButton side="left" icon={<BsGithub />}>
|
||||||
</a>
|
GitHub
|
||||||
<a href="https://projecterror.dev/docs">
|
</IconButton>
|
||||||
<IconButton side='left' icon={<BsBookHalf/>}>Documentation</IconButton>
|
</a>
|
||||||
</a>
|
<a href="https://projecterror.dev/docs">
|
||||||
|
<IconButton side="left" icon={<BsBookHalf />}>
|
||||||
|
Documentation
|
||||||
|
</IconButton>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
<Tabs>
|
<Tabs>
|
||||||
@@ -106,6 +125,7 @@ The inventory will handle disabling the phone when the player has no item, and s
|
|||||||
|
|
||||||
Use a compatible version of [ESX Legacy](https://github.com/esx-framework/esx-legacy) (1.6.0+)
|
Use a compatible version of [ESX Legacy](https://github.com/esx-framework/esx-legacy) (1.6.0+)
|
||||||
Execute the query inside [install.sql](https://github.com/overextended/ox_inventory/blob/main/setup/install.sql) and [vehicle.sql](https://github.com/overextended/ox_inventory/blob/main/setup/vehicle.sql)
|
Execute the query inside [install.sql](https://github.com/overextended/ox_inventory/blob/main/setup/install.sql) and [vehicle.sql](https://github.com/overextended/ox_inventory/blob/main/setup/vehicle.sql)
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="convert_esx" label="Convert ESX">
|
<TabItem value="convert_esx" label="Convert ESX">
|
||||||
|
|
||||||
@@ -115,6 +135,7 @@ and [vehicle.sql](https://github.com/overextended/ox_inventory/blob/main/setup/v
|
|||||||
Open `fxmanifest.lua` and uncomment `server_script 'setup/convert.lua'`
|
Open `fxmanifest.lua` and uncomment `server_script 'setup/convert.lua'`
|
||||||
Start the server and execute the `convertinventory` command from the console
|
Start the server and execute the `convertinventory` command from the console
|
||||||
Remove the conversion file
|
Remove the conversion file
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="convert_linden" label="Upgrade from Linden Inventory">
|
<TabItem value="convert_linden" label="Upgrade from Linden Inventory">
|
||||||
|
|
||||||
@@ -123,6 +144,7 @@ and [vehicle.sql](https://github.com/overextended/ox_inventory/blob/main/setup/v
|
|||||||
Open `fxmanifest.lua` and uncomment `server_script 'setup/convert.lua'`
|
Open `fxmanifest.lua` and uncomment `server_script 'setup/convert.lua'`
|
||||||
Start the server and execute the `convertinventory` linden command from the console
|
Start the server and execute the `convertinventory` linden command from the console
|
||||||
Remove the conversion file
|
Remove the conversion file
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="standalone" label="Standalone">
|
<TabItem value="standalone" label="Standalone">
|
||||||
|
|
||||||
@@ -130,6 +152,7 @@ Work in progress.
|
|||||||
|
|
||||||
Refer to the "bridge" module to get an idea of how you setup support for any framework.
|
Refer to the "bridge" module to get an idea of how you setup support for any framework.
|
||||||
Modifications will need to be made for licenses, owned vehicles, and jobs.
|
Modifications will need to be made for licenses, owned vehicles, and jobs.
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
@@ -139,6 +162,7 @@ You should restart your server after the first startup to ensure everything has
|
|||||||
:::
|
:::
|
||||||
|
|
||||||
## Upgrading ESX
|
## Upgrading ESX
|
||||||
|
|
||||||
Ox Inventory provides a complete suite of tools to replace the built-in items and inventory system from ESX, and is not intended to be used with resources designed around it.
|
Ox Inventory provides a complete suite of tools to replace the built-in items and inventory system from ESX, and is not intended to be used with resources designed around it.
|
||||||
|
|
||||||
- ESX loadouts do not exist - resources that use them need to remove references or be modified to look for the weapon as an item
|
- ESX loadouts do not exist - resources that use them need to remove references or be modified to look for the weapon as an item
|
||||||
@@ -147,6 +171,7 @@ Ox Inventory provides a complete suite of tools to replace the built-in items an
|
|||||||
- Resources like esx_inventoryhud, esx_trunkinventory, esx_addoninventory, etc. should be removed
|
- Resources like esx_inventoryhud, esx_trunkinventory, esx_addoninventory, etc. should be removed
|
||||||
|
|
||||||
### Optional optimisation
|
### Optional optimisation
|
||||||
|
|
||||||
All item related functions from xPlayer, such as `xPlayer.getInventoryItem`, have been modified for compatibility purposes; however they are considered deprecated.
|
All item related functions from xPlayer, such as `xPlayer.getInventoryItem`, have been modified for compatibility purposes; however they are considered deprecated.
|
||||||
|
|
||||||
The reasoning is fairly simple - there's now additional function references and overhead to consider. Fortunately, the new Inventory functions can be used directly and offer a great deal of improvements over the old ones.
|
The reasoning is fairly simple - there's now additional function references and overhead to consider. Fortunately, the new Inventory functions can be used directly and offer a great deal of improvements over the old ones.
|
||||||
@@ -157,12 +182,13 @@ You should read through the functions section for further information, but the f
|
|||||||
<TabItem value="esx" label="ESX">
|
<TabItem value="esx" label="ESX">
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
if xPlayer.getInventoryItem('acetone').count > 2 and xPlayer.getInventoryItem('antifreeze').count > 4 and xPlayer.getInventoryItem('sudo').count > 9 then
|
if xPlayer.getInventoryItem('acetone').count > 2 and xPlayer.getInventoryItem('antifreeze').count > 4 and xPlayer.getInventoryItem('sudo').count > 9 then
|
||||||
xPlayer.removeInventoryItem("acetone", 3)
|
xPlayer.removeInventoryItem("acetone", 3)
|
||||||
xPlayer.removeInventoryItem("antifreeze", 5)
|
xPlayer.removeInventoryItem("antifreeze", 5)
|
||||||
xPlayer.removeInventoryItem("sudo", 10)
|
xPlayer.removeInventoryItem("sudo", 10)
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="inventory" label="Inventory">
|
<TabItem value="inventory" label="Inventory">
|
||||||
|
|
||||||
@@ -182,5 +208,6 @@ if items and items.acetone > 2 and items.antifreeze > 4 and items.sudo > 9 then
|
|||||||
ox_inventory:RemoveItem(source, 'sudo', 10)
|
ox_inventory:RemoveItem(source, 'sudo', 10)
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
Reference in new issue
Block a user