diff --git a/404.html b/404.html index 6fc78c2b..d19808a6 100644 --- a/404.html +++ b/404.html @@ -5,13 +5,13 @@ Page Not Found | Overextended - +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/assets/js/27ba855c.b92035a2.js b/assets/js/27ba855c.4979e865.js similarity index 85% rename from assets/js/27ba855c.b92035a2.js rename to assets/js/27ba855c.4979e865.js index 7ccaa9bc..dab02a45 100644 --- a/assets/js/27ba855c.b92035a2.js +++ b/assets/js/27ba855c.4979e865.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[653],{3905:function(e,n,t){t.d(n,{Zo:function(){return u},kt:function(){return m}});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),l=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},u=function(e){var n=l(e.components);return r.createElement(c.Provider,{value:n},e.children)},d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},p=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),p=l(t),m=o,f=p["".concat(c,".").concat(m)]||p[m]||d[m]||a;return t?r.createElement(f,i(i({ref:n},u),{},{components:t})):r.createElement(f,i({ref:n},u))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=p;var s={};for(var c in n)hasOwnProperty.call(n,c)&&(s[c]=n[c]);s.originalType=e,s.mdxType="string"==typeof e?e:o,i[1]=s;for(var l=2;l=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),l=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},u=function(e){var n=l(e.components);return r.createElement(c.Provider,{value:n},e.children)},d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},p=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),p=l(t),m=o,f=p["".concat(c,".").concat(m)]||p[m]||d[m]||a;return t?r.createElement(f,i(i({ref:n},u),{},{components:t})):r.createElement(f,i({ref:n},u))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=p;var s={};for(var c in n)hasOwnProperty.call(n,c)&&(s[c]=n[c]);s.originalType=e,s.mdxType="string"==typeof e?e:o,i[1]=s;for(var l=2;l=f)&&Object.keys(a.O).every((function(e){return a.O[e](n[u])}))?n.splice(u--,1):(c=!1,f0&&e[d-1][2]>f;d--)e[d]=e[d-1];e[d]=[n,r,f]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var f=Object.create(null);a.r(f);var o={};t=t||[null,n({}),n([]),n(n)];for(var c=2&r&&e;"object"==typeof c&&!~t.indexOf(c);c=n(c))Object.getOwnPropertyNames(c).forEach((function(t){o[t]=function(){return e[t]}}));return o.default=function(){return e},a.d(f,o),f},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))},a.u=function(e){return"assets/js/"+({31:"dadefd20",53:"935f2afb",85:"1f391b9e",93:"cadd292b",102:"b9b062d6",120:"2c127759",149:"9a9bc35c",231:"8e0f778b",237:"1df93b7f",256:"b51a0084",309:"f402e59b",315:"ba38ef30",334:"286f008d",358:"afe7e8e5",377:"8bbdd1b6",388:"d4cbf223",414:"393be207",477:"b2f554cd",506:"26f73f9f",514:"1be78505",521:"0f06fd08",528:"800d88d2",558:"a3457942",569:"8c300d32",596:"5ffc6399",608:"9e4087bc",653:"27ba855c",656:"1efa5838",661:"8c5ee32e",715:"c866fec6",763:"12ae9db4",791:"1d131567",868:"d03a288b",901:"ecb88550",918:"17896441",957:"09dc1e0e",961:"38789362",971:"c377a04b",974:"e3015b82"}[e]||e)+"."+{31:"d93098d7",53:"a2956abd",75:"80b3bad7",85:"da09ae97",93:"bf76a77b",102:"769ab2d4",120:"a4495884",149:"01867308",231:"718b0688",237:"54038379",256:"fe0d3329",309:"1ff45c8a",315:"664f9e43",334:"1648cce6",358:"6cd064d9",377:"37e696e8",388:"a27fb076",414:"32ecd2f8",460:"c5680b44",477:"c24f1afa",506:"4ac4a1a2",514:"23584bdc",521:"a9fdd5cf",528:"09e65ce2",558:"3d489b5f",569:"76e1f97e",596:"f40bed87",608:"c7c286b0",653:"b92035a2",656:"43c65469",661:"6be208c7",715:"8a11e5f4",763:"b8e2109f",791:"08ce21b4",868:"164e646c",897:"7e924ec6",901:"eed779a1",918:"41abfd04",957:"0966776d",961:"63a2aa39",971:"458e1645",974:"1f5d697e"}[e]+".js"},a.miniCssF=function(e){},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},f="website:",a.l=function(e,t,n,o){if(r[e])r[e].push(t);else{var c,u;if(void 0!==n)for(var b=document.getElementsByTagName("script"),d=0;d=f)&&Object.keys(a.O).every((function(e){return a.O[e](n[b])}))?n.splice(b--,1):(c=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[n,r,f]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var f=Object.create(null);a.r(f);var o={};t=t||[null,n({}),n([]),n(n)];for(var c=2&r&&e;"object"==typeof c&&!~t.indexOf(c);c=n(c))Object.getOwnPropertyNames(c).forEach((function(t){o[t]=function(){return e[t]}}));return o.default=function(){return e},a.d(f,o),f},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))},a.u=function(e){return"assets/js/"+({31:"dadefd20",53:"935f2afb",85:"1f391b9e",93:"cadd292b",102:"b9b062d6",120:"2c127759",149:"9a9bc35c",231:"8e0f778b",237:"1df93b7f",256:"b51a0084",309:"f402e59b",315:"ba38ef30",334:"286f008d",358:"afe7e8e5",377:"8bbdd1b6",388:"d4cbf223",414:"393be207",477:"b2f554cd",506:"26f73f9f",514:"1be78505",521:"0f06fd08",528:"800d88d2",558:"a3457942",569:"8c300d32",596:"5ffc6399",608:"9e4087bc",653:"27ba855c",656:"1efa5838",661:"8c5ee32e",715:"c866fec6",763:"12ae9db4",791:"1d131567",868:"d03a288b",901:"ecb88550",918:"17896441",957:"09dc1e0e",961:"38789362",971:"c377a04b",974:"e3015b82"}[e]||e)+"."+{31:"d93098d7",53:"a2956abd",75:"80b3bad7",85:"da09ae97",93:"bf76a77b",102:"769ab2d4",120:"a4495884",149:"01867308",231:"718b0688",237:"54038379",256:"fe0d3329",309:"1ff45c8a",315:"664f9e43",334:"1648cce6",358:"6cd064d9",377:"37e696e8",388:"a27fb076",414:"32ecd2f8",460:"c5680b44",477:"c24f1afa",506:"4ac4a1a2",514:"23584bdc",521:"a9fdd5cf",528:"09e65ce2",558:"3d489b5f",569:"76e1f97e",596:"f40bed87",608:"c7c286b0",653:"4979e865",656:"43c65469",661:"6be208c7",715:"8a11e5f4",763:"b8e2109f",791:"08ce21b4",868:"164e646c",897:"7e924ec6",901:"eed779a1",918:"41abfd04",957:"0966776d",961:"63a2aa39",971:"458e1645",974:"1f5d697e"}[e]+".js"},a.miniCssF=function(e){},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},f="website:",a.l=function(e,t,n,o){if(r[e])r[e].push(t);else{var c,b;if(void 0!==n)for(var u=document.getElementsByTagName("script"),i=0;i Archive | Overextended - +

Archive

Archive

- + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 85077c67..4af24acd 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,14 +5,14 @@ Documentation | Overextended - +

Documentation

Here you can find all of the official documentation for resoruces developed by the Overextended team

If you feel like the documentation is lacking in some department then feel free to go onto that page and click the "Edit this page" at the bottom and submit a Pull Request.

- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Interface/Keyboard/index.html b/docs/ox_inventory/Functions/External/Client/Interface/Keyboard/index.html index 7e198921..21783fed 100644 --- a/docs/ox_inventory/Functions/External/Client/Interface/Keyboard/index.html +++ b/docs/ox_inventory/Functions/External/Client/Interface/Keyboard/index.html @@ -5,7 +5,7 @@ Keyboard | Overextended - + @@ -13,7 +13,7 @@

Keyboard

Opens a keyboard input dialog.

The rows param takes a table of strings where each string entry will represent a single row.

-- header: string
-- rows: table
exports.ox_inventory:Keyboard(header, rows)

Returns a table of strings where the first index is going to be the first row of the dialog, the second index the second row and so on.

Example:

local input = exports.ox_inventory:Keyboard('Money transfer', {'Player name', 'Amount'})

if input then
local playerName = input[1]
local amount = tonumber(input[2])

if not playerName or not amount then return end
end
- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Interface/Progress/index.html b/docs/ox_inventory/Functions/External/Client/Interface/Progress/index.html index 6e8578fe..375d029d 100644 --- a/docs/ox_inventory/Functions/External/Client/Interface/Progress/index.html +++ b/docs/ox_inventory/Functions/External/Client/Interface/Progress/index.html @@ -5,13 +5,13 @@ Progress | Overextended - +

Progress

Starts a progress bar that can callback a function upon completion or cancellation.

Prevents actions such as opening the inventory, reloading, etc.

-- options: table
-- completed: function
exports.ox_inventory:Progress(options, completed)

Options table values:

-- duration: number
-- label: string
-- useWhileDead: boolean (optional)
-- canCancel: boolean (optional)
-- anim: table (optional)
-- dict: string
-- clip: string
-- flag: number (optional - default is 49)
-- scenario: string (optional)
-- prop/propTwo: table (optional)
-- model: hash or string
-- bone: number (optional - default is 60309)
-- pos: vector3 (optional)
-- rot: vector3 (optional)
-- disable: table (optional)
-- move: boolean (optional)
-- car: boolean (optional)
-- combat: boolean (optional)
-- mouse: boolean (optional)
danger

If you define a scenario while you have a defined anim table the scenario will be ignored.

Example:

exports.ox_inventory:Progress({
duration = 2000,
label = 'Drinking water',
useWhileDead = false,
canCancel = true,
disable = {
car = true
},
anim = {
dict = 'mp_player_intdrink',
clip = 'loop_bottle',
flags = 49,
},
prop = {
model = 'prop_ld_flow_bottle',
pos = vector3(0.03, 0.03, 0.02),
rot = vector3(0.0, 0.0, -1.5),
bone = 58866
},
}, function(cancel)
if not cancel then
print("You drank some water - that'll quench ya!")
end
end)

CancelProgress​

Cancels the currently active progress bar.

exports.ox_inventory:CancelProgress()

ProgressActive​

Returns true or false whether the progress bar is currently active or not

exports.ox_inventory:ProgressActive()
- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Inventory/Search/index.html b/docs/ox_inventory/Functions/External/Client/Inventory/Search/index.html index 0a75fa1d..23773be4 100644 --- a/docs/ox_inventory/Functions/External/Client/Inventory/Search/index.html +++ b/docs/ox_inventory/Functions/External/Client/Inventory/Search/index.html @@ -5,7 +5,7 @@ Search | Overextended - + @@ -13,7 +13,7 @@

Search

Searches the inventory for a specified item.

-- search: string
-- item: table or string
-- metadata: table or string (optional)
expors.ox_inventory:Search(search, item, metadata)

If the search argument is defined as 'slots' the return will be a table of slots where the item was found at.

Otherwise if the search argument is defined as 'count' the return value will be the amount of the specified item in player's inventory.

- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Items/index.html b/docs/ox_inventory/Functions/External/Client/Items/index.html index 037d3048..b52a91dd 100644 --- a/docs/ox_inventory/Functions/External/Client/Items/index.html +++ b/docs/ox_inventory/Functions/External/Client/Items/index.html @@ -5,13 +5,13 @@ Items | Overextended - + - + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Utils/notify/index.html b/docs/ox_inventory/Functions/External/Client/Utils/notify/index.html index c1e89b5d..f6b9cbd6 100644 --- a/docs/ox_inventory/Functions/External/Client/Utils/notify/index.html +++ b/docs/ox_inventory/Functions/External/Client/Utils/notify/index.html @@ -5,13 +5,13 @@ notify | Overextended - +

notify

Displays the notification used accross the inventory.

The notifications are built using the react-hot-teast library.

-- data: table
exports.ox_inventory:notify(data)

Values for the data table:

-- text: string
-- type: string (optional)
-- 'success'
-- 'info' - default
-- 'error'
-- position: string (optional)
-- 'top-left'
-- 'top-center' - default
-- 'top-right'
-- 'bottom-left'
-- 'bottom-center'
-- 'bottom-right
-- duration: number (optional - default is 4000 ms)

Example:

exports.ox_inventory:notify({type = 'Success', text = 'Making pancakes', duration = 2500})
- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Utils/weaponWheel/index.html b/docs/ox_inventory/Functions/External/Client/Utils/weaponWheel/index.html index fe7b4b95..a0b4a289 100644 --- a/docs/ox_inventory/Functions/External/Client/Utils/weaponWheel/index.html +++ b/docs/ox_inventory/Functions/External/Client/Utils/weaponWheel/index.html @@ -5,13 +5,13 @@ weaponWheel | Overextended - +

weaponWheel

Enables the weapon wheel, but disables the use of inventory items.

Mostly used for weaponised vehicles, though could be called for "minigames"

-- state: boolean
local exports.ox_inventory:weaponWheel(state)
- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/openInventory/index.html b/docs/ox_inventory/Functions/External/Client/openInventory/index.html index 6a1125b2..2bbfc5c4 100644 --- a/docs/ox_inventory/Functions/External/Client/openInventory/index.html +++ b/docs/ox_inventory/Functions/External/Client/openInventory/index.html @@ -5,13 +5,13 @@ openInventory | Overextended - +

openInventory

Opens an inventory using on the passed data.

-- inv: string
-- data: any
exports.ox_inventory:openInventory(invType, data)

exports.ox_inventory:openInventory('player', 1)
exports.ox_inventory:openInventory('stash', 1)
exports.ox_inventory:openInventory('shop', { type = 'PoliceArmoury', id = 1 })
- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/openNearbyInventory/index.html b/docs/ox_inventory/Functions/External/Client/openNearbyInventory/index.html index 863e5c54..4067d1d8 100644 --- a/docs/ox_inventory/Functions/External/Client/openNearbyInventory/index.html +++ b/docs/ox_inventory/Functions/External/Client/openNearbyInventory/index.html @@ -5,7 +5,7 @@ openNearbyInventory | Overextended - + @@ -13,7 +13,7 @@

openNearbyInventory

If possible opens the nearby player's inventory.

The player trying to open the invenotry must be able to open their own and if the player does not have a police job, the target player must be fatally injured or playing one of the death anims.

exports.ox_inventory:openNearbyInventory()
- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/setStashTarget/index.html b/docs/ox_inventory/Functions/External/Client/setStashTarget/index.html index 59333a6f..30570b9f 100644 --- a/docs/ox_inventory/Functions/External/Client/setStashTarget/index.html +++ b/docs/ox_inventory/Functions/External/Client/setStashTarget/index.html @@ -5,13 +5,13 @@ setStashTarget | Overextended - +

setStashTarget

Forces the secondary-inventory key to open the passed inventory. Can be useful to enable inventory access while standing inside a marker.

-- id: string or number
-- owner: string or number (optional)
exports.ox_inventory:setStashTarget(id, owner)

exports.ox_inventory:setStashTarget('motel5', 'bobsmith')
- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/useItem/index.html b/docs/ox_inventory/Functions/External/Client/useItem/index.html index dc97e05e..71cd915d 100644 --- a/docs/ox_inventory/Functions/External/Client/useItem/index.html +++ b/docs/ox_inventory/Functions/External/Client/useItem/index.html @@ -5,13 +5,13 @@ useItem | Overextended - +

useItem

Uses the passed item, then triggers the callback function.

-- data: table
-- cb: function (optional)
exports.ox_inventory:useItem(data, cb)
- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/useSlot/index.html b/docs/ox_inventory/Functions/External/Client/useSlot/index.html index 3cff10e2..97632d71 100644 --- a/docs/ox_inventory/Functions/External/Client/useSlot/index.html +++ b/docs/ox_inventory/Functions/External/Client/useSlot/index.html @@ -5,13 +5,13 @@ useSlot | Overextended - + - + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/placeholder/index.html b/docs/ox_inventory/Functions/External/Server/placeholder/index.html index d1eae102..f883cb5f 100644 --- a/docs/ox_inventory/Functions/External/Server/placeholder/index.html +++ b/docs/ox_inventory/Functions/External/Server/placeholder/index.html @@ -5,13 +5,13 @@ Placeholder | Overextended - + - + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/Internal/Client/placeholder/index.html b/docs/ox_inventory/Functions/Internal/Client/placeholder/index.html index d1f0caf0..e83b29b2 100644 --- a/docs/ox_inventory/Functions/Internal/Client/placeholder/index.html +++ b/docs/ox_inventory/Functions/Internal/Client/placeholder/index.html @@ -5,13 +5,13 @@ Placeholder | Overextended - + - + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/Internal/Server/placeholder/index.html b/docs/ox_inventory/Functions/Internal/Server/placeholder/index.html index 65df67df..ecffb3ca 100644 --- a/docs/ox_inventory/Functions/Internal/Server/placeholder/index.html +++ b/docs/ox_inventory/Functions/Internal/Server/placeholder/index.html @@ -5,13 +5,13 @@ Placeholder | Overextended - + - + \ No newline at end of file diff --git a/docs/ox_inventory/Guides/placeholder/index.html b/docs/ox_inventory/Guides/placeholder/index.html index 63990867..5f6dedaa 100644 --- a/docs/ox_inventory/Guides/placeholder/index.html +++ b/docs/ox_inventory/Guides/placeholder/index.html @@ -5,13 +5,13 @@ Placeholder | Overextended - + - + \ No newline at end of file diff --git a/docs/ox_inventory/config/index.html b/docs/ox_inventory/config/index.html index 6fe96bd3..b521ce5b 100644 --- a/docs/ox_inventory/config/index.html +++ b/docs/ox_inventory/config/index.html @@ -5,14 +5,14 @@ Configuration | Overextended - +

Configuration

You can add these settings directly to your 'server.cfg', or add them to a separate file and call it with exec.
-Convars must be set before starting ox_inventory.

The values below are defaults and should not be explicitly set unless changing the value.

# Activate specific event handlers and functions (supported: ox, esx)
setr inventory:framework "esx"

# Load specific language file from data/locales
setr inventory:locale "en"

# Number of slots for player inventories
setr inventory:slots 50

# Maximum carry capacity for players, in kilograms
setr inventory:weight 30000

# Weapons will reload after reaching 0 ammo
setr inventory:autoreload false

# Weapons must be aimed before shooting
setr aimedfiring false

# Blur the screen while accessing the inventory
setr inventory:screenblur true

# Trim whitespace from vehicle plates when checking owned vehicles
setr inventory:trimplate true

# Integrated support for qtarget stashes, shops, etc
setr inventory:qtarget false

# Default hotkeys to access primary and secondary inventories, and hotbar
setr inventory:keys ["F2", "K", "TAB"]

# Enable control action when inventory is open
setr inventory:enablekeys [249]

# Jobs with access to police armoury, evidence lockers, etc
setr inventory:police ["police", "sheriff"]

# Item prices fluctuate in shops
set inventory:randomprices true

# Compare current version to latest release on GitHub
set inventory:versioncheck true

# Loot will randomly generate inside unowned vehicles and dumpsters
set inventory:randomloot true

# Minimum job grade to remove items from evidence lockers
set inventory:evidencegrade 2

# Stashes will be wiped after remaining unchanged for the given time
set inventory:clearstashes "6 MONTH"

# Set the contents of randomly generated inventories
# [item name, minimum, maxiumum, loot chance]
set inventory:vehicleloot [
["cola", 1, 1],
["water", 1, 1],
["garbage", 1, 2, 50],
["panties", 1, 1, 5],
["money", 1, 50],
["money", 200, 400, 5],
["bandage", 1, 1]
]

set inventory:dumpsterloot [
["mustard", 1, 1],
["garbage", 1, 3],
["money", 1, 10],
["burger", 1, 1]
]

# Set datadog API key for inventory logging (https://app.datadoghq.com/organization-settings/api-keys)
set datadog:key ""

# Set server intake (https://docs.datadoghq.com/api/latest/logs/#send-logs)
set datadog:site "datadoghq.com"

# Set server hostname
set datadog:hostname "FXServer"

add_principal group.admin ox_inventory
add_ace resource.ox_inventory command.add_principal allow
add_ace resource.ox_inventory command.remove_principal allow
- +Convars must be set before starting ox_inventory.

The values below are defaults and should not be explicitly set unless changing the value.

# Activate specific event handlers and functions (supported: ox, esx)
setr inventory:framework "esx"

# Load specific language file from data/locales
setr inventory:locale "en"

# Number of slots for player inventories
setr inventory:slots 50

# Maximum carry capacity for players, in kilograms
setr inventory:weight 30000

# Weapons will reload after reaching 0 ammo
setr inventory:autoreload false

# Weapons must be aimed before shooting
setr aimedfiring false

# Blur the screen while accessing the inventory
setr inventory:screenblur true

# Trim whitespace from vehicle plates when checking owned vehicles
setr inventory:trimplate true

# Integrated support for qtarget stashes, shops, etc
setr inventory:qtarget false

# Default hotkeys to access primary and secondary inventories, and hotbar
setr inventory:keys ["F2", "K", "TAB"]

# Enable control action when inventory is open
setr inventory:enablekeys [249]

# Jobs with access to police armoury, evidence lockers, etc
setr inventory:police ["police", "sheriff"]

# Item prices fluctuate in shops
set inventory:randomprices true

# Compare current version to latest release on GitHub
set inventory:versioncheck true

# Loot will randomly generate inside unowned vehicles and dumpsters
set inventory:randomloot true

# Minimum job grade to remove items from evidence lockers
set inventory:evidencegrade 2

# Stashes will be wiped after remaining unchanged for the given time
set inventory:clearstashes "6 MONTH"

# Set the contents of randomly generated inventories
# [item name, minimum, maximum, loot chance]
set inventory:vehicleloot [
["cola", 1, 1],
["water", 1, 1],
["garbage", 1, 2, 50],
["panties", 1, 1, 5],
["money", 1, 50],
["money", 200, 400, 5],
["bandage", 1, 1]
]

set inventory:dumpsterloot [
["mustard", 1, 1],
["garbage", 1, 3],
["money", 1, 10],
["burger", 1, 1]
]

# Set datadog API key for inventory logging (https://app.datadoghq.com/organization-settings/api-keys)
set datadog:key ""

# Set server intake (https://docs.datadoghq.com/api/latest/logs/#send-logs)
set datadog:site "datadoghq.com"

# Set server hostname
set datadog:hostname "FXServer"

add_principal group.admin ox_inventory
add_ace resource.ox_inventory command.add_principal allow
add_ace resource.ox_inventory command.remove_principal allow
+ \ No newline at end of file diff --git a/docs/ox_inventory/installation/index.html b/docs/ox_inventory/installation/index.html index 00d21686..042a753e 100644 --- a/docs/ox_inventory/installation/index.html +++ b/docs/ox_inventory/installation/index.html @@ -5,7 +5,7 @@ Getting Started | Overextended - + @@ -30,7 +30,7 @@ and

​

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
  • Stashes from resources such as esx_policejob, esx_ambulancejob, etc. should be removed
  • Shops from esx_shops or the armoury from esx_policejob should be removed
  • Resources like esx_inventoryhud, esx_trunkinventory, esx_addoninventory, etc. should be removed

Optional optimisation​

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.

You should read through the functions section for further information, but the following should give you a decent idea.

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("antifreeze", 5)
xPlayer.removeInventoryItem("sudo", 10)
end
- + \ No newline at end of file diff --git a/docs/ox_lib/Client/cache/index.html b/docs/ox_lib/Client/cache/index.html index b080318b..347458bf 100644 --- a/docs/ox_lib/Client/cache/index.html +++ b/docs/ox_lib/Client/cache/index.html @@ -5,14 +5,14 @@ Cache | Overextended - +

Cache

Caches data related to the player and handling some events or statebags.
An interval runs every 100ms to update data that cannot be checked via handlers.

https://github.com/overextended/ox_lib/blob/master/resource/cache/client.lua

States​

cache.ped       -- player entity id
cache.vehicle -- vehicle entity id
cache.seat -- vehicle seat index

lib.onCache​

Register a callback function when the value is changed.

lib.onCache('vehicle', function(value)
print('vehicle', value)
end)

lib.onCache('seat', function(value)
print('seat', value)
end)
- + \ No newline at end of file diff --git a/docs/ox_lib/Client/callback/index.html b/docs/ox_lib/Client/callback/index.html index 4f65f969..e03834b7 100644 --- a/docs/ox_lib/Client/callback/index.html +++ b/docs/ox_lib/Client/callback/index.html @@ -5,13 +5,13 @@ Callbacks | Overextended - +

Callbacks

Triggers a registered server callback and registers an event handler for the response.

lib.callback​

The response is handled in a separate coroutine.

-- name: string
-- delay: number or false
-- cb: function
lib.callback(name, delay, cb, ...)

lib.callback('ox_inventory:getItemCount', false, function(count)
print(count)
end, 'water', {type = 'fresh'})

lib.callback.await​

The current coroutine is yielded until a response is received.

-- name: string
-- delay: number or false
lib.callback.await(name, delay, ...)

local count = lib.callback('ox_inventory:getItemCount', false, 'water', {type = 'fresh'})
print(count)
- + \ No newline at end of file diff --git a/docs/ox_lib/Client/disableControls/index.html b/docs/ox_lib/Client/disableControls/index.html index 09f67b66..4194bcae 100644 --- a/docs/ox_lib/Client/disableControls/index.html +++ b/docs/ox_lib/Client/disableControls/index.html @@ -5,13 +5,13 @@ Disable Controls | Overextended - +

Disable Controls

lib.disableControls​

lib.disableControls()

lib.disableControls:Add​

-- vararg: number
lib.disableControls:Add(...)

lib.disableControls:Remove​

-- vararg: number
lib.disableControls:Remove(...)

lib.disableControls:Clear​

-- vararg: number
lib.disableControls:Clear(...)
- + \ No newline at end of file diff --git a/docs/ox_lib/Client/index.html b/docs/ox_lib/Client/index.html index 2e7a6b33..b7d6c6af 100644 --- a/docs/ox_lib/Client/index.html +++ b/docs/ox_lib/Client/index.html @@ -5,13 +5,13 @@ index | Overextended - + - + \ No newline at end of file diff --git a/docs/ox_lib/Client/streaming/index.html b/docs/ox_lib/Client/streaming/index.html index ee93c445..d76633a8 100644 --- a/docs/ox_lib/Client/streaming/index.html +++ b/docs/ox_lib/Client/streaming/index.html @@ -5,14 +5,14 @@ Streaming | Overextended - +

Streaming

Check if assets exist, such as models, and loads them into memory.
Throws errors for invalid assets and returns true if the asset is loaded.

lib.requestAnimDict​

-- dict: string
-- timeout: number [default: 100]
lib.requestAnimDict(dict, timeout)

lib.requestAnimSet​

-- set: string
-- timeout: number [default: 100]
lib.requestAnimSet(set, timeout)

lib.requestModel​

-- model: string
-- timeout: number [default: 100]
lib.requestModel(model, timeout)

lib.requestStreamedTextureDict​

-- dict: string
-- timeout: number [default: 100]
lib.requestStreamedTextureDict(dict, timeout)

lib.requestNamedPtfxAsset​

-- fxName: string
-- timeout: number [default: 100]
lib.requestNamedPtfxAsset(fxName, timeout)
- + \ No newline at end of file diff --git a/docs/ox_lib/Client/vehicleProperties/index.html b/docs/ox_lib/Client/vehicleProperties/index.html index 2df94a32..4e325b29 100644 --- a/docs/ox_lib/Client/vehicleProperties/index.html +++ b/docs/ox_lib/Client/vehicleProperties/index.html @@ -5,14 +5,14 @@ Vehicle Properties | Overextended - +

Vehicle Properties

Mostly follows the format used by ESX and QBCore, with extra data such as damaged/missing props.
https://github.com/overextended/ox_lib/blob/master/resource/entities/client/vehicleproperties.lua#L5

lib.getVehicleProperties​

-- vehicle: entity
lib.getVehicleProperties(vehicle)

lib.getVehicleProperties(GetVehiclePedIsUsing(PlayerPedId()))

lib.setVehicleProperties​

Requires the vehicle to belong to the client. Do not use NetworkRequestControlOfEntity.

-- vehicle: entity
-- props: table
lib.setVehicleProperties(vehicle, props)

RegisterNetEvent('lualib:setVehicleProperties', function(netid, data)
lib.setVehicleProperties(NetToVeh(netid), data)
end)

The server should tell the owner of the entity to set properties, using the following trigger.

TriggerClientEvent('lualib:setVehicleProperties', entityOwner, vehNetId, data)
- + \ No newline at end of file diff --git a/docs/ox_lib/Server/acl/index.html b/docs/ox_lib/Server/acl/index.html index 1a02a863..c56fe2bb 100644 --- a/docs/ox_lib/Server/acl/index.html +++ b/docs/ox_lib/Server/acl/index.html @@ -5,14 +5,14 @@ Permissions | Overextended - +

Permissions

Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.
Refer to Basic Aces & Principals overview/guide for more information.

lib.addAce​

Assigns the ace permission to a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'.

-- principal: string
-- ace: string
-- allow: boolean
lib.addAce(principal, ace, allow)

lib.addAce('group.admin', 'command.say')

lib.removeAce​

Removes the ace permission from a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'.

-- principal: string
-- ace: string
-- allow: boolean
lib.removeAce(principal, ace, allow)

lib.removeAce('group.admin', 'command.say')

lib.addPrincipal​

Assigns a principal to a parent principal. Children inherit permissions from the parent.

-- child: string
-- parent: string
lib.addPrincipal(child, parent)

lib.addPrincipal('player.1', 'group.moderator')

lib.removePrincipal​

Removes a principal from a parent principal.

-- child: string
-- parent: string
lib.removePrincipal(child, parent)

lib.removePrincipal('player.1', 'group.moderator')
- + \ No newline at end of file diff --git a/docs/ox_lib/Server/addCommand/index.html b/docs/ox_lib/Server/addCommand/index.html index d06d0117..2804bc31 100644 --- a/docs/ox_lib/Server/addCommand/index.html +++ b/docs/ox_lib/Server/addCommand/index.html @@ -5,13 +5,13 @@ Command | Overextended - +

Command

-- principal: string or false
-- command: string
-- callback: function
-- parameters: table (optional)
-- help: string (optional)
lib.addCommand(principal, command, callback, parameters, help)

lib.addCommand('group.admin', {'additem', 'giveitem'}, function(source, args)
args.item = Items(args.item)
if args.item and args.count > 0 then
Inventory.AddItem(args.target, args.item.name, args.count, args.metatype)
end
end, {'target:number', 'item:string', 'count:number', 'metatype:?string'})
- + \ No newline at end of file diff --git a/docs/ox_lib/Server/callback/index.html b/docs/ox_lib/Server/callback/index.html index c88c4bdf..686448d0 100644 --- a/docs/ox_lib/Server/callback/index.html +++ b/docs/ox_lib/Server/callback/index.html @@ -5,13 +5,13 @@ Callbacks | Overextended - +

Callbacks

lib.callback.register​

-- name: string
-- cb: function
lib.callback.register(name, cb)

lib.callback.register('ox_inventory:getItemCount', function(source, item, metadata, target)
local inventory = target and Inventory(target) or Inventory(source)
return (inventory and Inventory.GetItem(inventory, item, metadata, true)) or 0
end)
- + \ No newline at end of file diff --git a/docs/ox_lib/Server/index.html b/docs/ox_lib/Server/index.html index c3c2548a..a1060195 100644 --- a/docs/ox_lib/Server/index.html +++ b/docs/ox_lib/Server/index.html @@ -5,13 +5,13 @@ index | Overextended - + - + \ No newline at end of file diff --git a/docs/ox_lib/Server/version/index.html b/docs/ox_lib/Server/version/index.html index f104fb20..cd3d39d1 100644 --- a/docs/ox_lib/Server/version/index.html +++ b/docs/ox_lib/Server/version/index.html @@ -5,13 +5,13 @@ Version check | Overextended - +
- + \ No newline at end of file diff --git a/docs/ox_lib/Shared/version/index.html b/docs/ox_lib/Shared/version/index.html index cd720895..dde0de2a 100644 --- a/docs/ox_lib/Shared/version/index.html +++ b/docs/ox_lib/Shared/version/index.html @@ -5,13 +5,13 @@ Dependency version | Overextended - +

Dependency version

lib.checkDependency​

Check if a resource is using a specified version or higher, allowing for compatibility checks or throwing errors.

-- repository: string
-- version: string
lib.versionCheck(repository, version)

if not lib.checkDependency('ox_lib', '1.5.0') then error() end
- + \ No newline at end of file diff --git a/docs/oxmysql/Installation/index.html b/docs/oxmysql/Installation/index.html index 940fe3a6..bda99202 100644 --- a/docs/oxmysql/Installation/index.html +++ b/docs/oxmysql/Installation/index.html @@ -5,13 +5,13 @@ Installation | Overextended - + - + \ No newline at end of file diff --git a/index.html b/index.html index fdbe3e1b..6ee4a295 100644 --- a/index.html +++ b/index.html @@ -5,13 +5,13 @@ Overextended | Overextended - +
ox

Overextended

Official documentation for Overextended resources

- + \ No newline at end of file diff --git a/markdown-page/index.html b/markdown-page/index.html index e3e9e89e..571c9a71 100644 --- a/markdown-page/index.html +++ b/markdown-page/index.html @@ -5,13 +5,13 @@ Markdown page example | Overextended - +

Markdown page example

You don't need React to write simple standalone pages.

- + \ No newline at end of file