mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 22:22:46 +00:00
new docs
This commit is contained in:
1 parent
3cebaf7fa5
commit
b5eba8423f
229 files changed
+6238
-10690
No files matched your search
@@ -0,0 +1,39 @@
|
||||
import { Steps } from 'nextra-theme-docs';
|
||||
import ResourceLinks from '@components/resource-links';
|
||||
|
||||
<ResourceLinks repo="https://github.com/overextended/ox_fuel" />
|
||||
|
||||
A simple fuel resource meant to replace LegacyFuel or serve as a showcase for using petrol cans as an item.
|
||||
|
||||
## Installation
|
||||
|
||||
<Steps>
|
||||
### Install all resource dependencies.
|
||||
- [ox_lib](../ox_lib/)
|
||||
- [ox_inventory](../ox_inventory/)
|
||||
|
||||
### Download a [release](https://github.com/overextended/ox_fuel/releases) or clone the source code.
|
||||
|
||||
```bash
|
||||
git clone https://github.com/overextended/ox_fuel.git
|
||||
```
|
||||
|
||||
### Install optional dependencies.
|
||||
|
||||
These resources aren't required but provide additional functionality.
|
||||
|
||||
- [ox_target](../ox_target/)
|
||||
|
||||
</Steps>
|
||||
|
||||
## Get vehicle fuel amount
|
||||
|
||||
```lua
|
||||
local fuel = Entity(vehicleId).state.fuel
|
||||
```
|
||||
|
||||
## Set vehicle fuel amount
|
||||
|
||||
```lua
|
||||
Entity(vehicleId).state.fuel = fuelAmount
|
||||
```
|
||||
Reference in new issue
Block a user