diff --git a/404.html b/404.html index 632261a5..2c38ece7 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/0f06fd08.52bfee02.js b/assets/js/0f06fd08.52bfee02.js deleted file mode 100644 index e6b10766..00000000 --- a/assets/js/0f06fd08.52bfee02.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[521],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return f}});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=r.createContext({}),s=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},u=function(e){var t=s(e.components);return r.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=s(n),f=a,b=d["".concat(l,".").concat(f)]||d[f]||p[f]||o;return n?r.createElement(b,c(c({ref:t},u),{},{components:n})):r.createElement(b,c({ref:t},u))}));function f(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,c=new Array(o);c[0]=d;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:a,c[1]=i;for(var s=2;s=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=r.createContext({}),u=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},s=function(e){var t=u(e.components);return r.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,c=e.originalType,l=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),d=u(n),b=a,h=d["".concat(l,".").concat(b)]||d[b]||p[b]||c;return n?r.createElement(h,o(o({ref:t},s),{},{components:n})):r.createElement(h,o({ref:t},s))}));function b(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var c=n.length,o=new Array(c);o[0]=d;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:a,o[1]=i;for(var u=2;u=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var u=n.createContext({}),s=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},c=function(e){var t=s(e.components);return n.createElement(u.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,i=e.mdxType,l=e.originalType,u=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),d=s(r),p=i,b=d["".concat(u,".").concat(p)]||d[p]||m[p]||l;return r?n.createElement(b,a(a({ref:t},c),{},{components:r})):n.createElement(b,a({ref:t},c))}));function p(e,t){var r=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var l=r.length,a=new Array(l);a[0]=d;var o={};for(var u in t)hasOwnProperty.call(t,u)&&(o[u]=t[u]);o.originalType=e,o.mdxType="string"==typeof e?e:i,a[1]=o;for(var s=2;s=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var u=n.createContext({}),s=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},c=function(e){var t=s(e.components);return n.createElement(u.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,i=e.mdxType,l=e.originalType,u=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),d=s(r),p=i,b=d["".concat(u,".").concat(p)]||d[p]||m[p]||l;return r?n.createElement(b,a(a({ref:t},c),{},{components:r})):n.createElement(b,a({ref:t},c))}));function p(e,t){var r=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var l=r.length,a=new Array(l);a[0]=d;var o={};for(var u in t)hasOwnProperty.call(t,u)&&(o[u]=t[u]);o.originalType=e,o.mdxType="string"==typeof e?e:i,a[1]=o;for(var s=2;s=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/"+({12:"bbf1e302",31:"dadefd20",53:"935f2afb",85:"1f391b9e",93:"cadd292b",102:"b9b062d6",120:"2c127759",149:"9a9bc35c",237:"1df93b7f",270:"d795dfbd",309:"f402e59b",358:"afe7e8e5",377:"8bbdd1b6",414:"393be207",477:"b2f554cd",493:"e1cc3ecf",514:"1be78505",521:"0f06fd08",596:"5ffc6399",608:"9e4087bc",656:"1efa5838",661:"8c5ee32e",791:"1d131567",833:"49a73474",862:"71616011",901:"ecb88550",918:"17896441",971:"c377a04b"}[e]||e)+"."+{12:"e093cda9",31:"be12c129",53:"702d5bea",75:"80b3bad7",85:"da09ae97",93:"ed6a9244",102:"769ab2d4",120:"b17f2215",149:"01867308",237:"54038379",270:"d2ede0aa",309:"1ff45c8a",358:"6cd064d9",377:"37e696e8",414:"32ecd2f8",477:"c24f1afa",493:"e1f4412a",514:"23584bdc",521:"52bfee02",596:"f40bed87",608:"c7c286b0",656:"43c65469",661:"6be208c7",791:"08ce21b4",833:"175624cb",862:"df231059",897:"7e924ec6",901:"eed779a1",918:"41abfd04",971:"458e1645"}[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 i=document.getElementsByTagName("script"),d=0;d=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/"+({12:"bbf1e302",31:"dadefd20",53:"935f2afb",85:"1f391b9e",93:"cadd292b",102:"b9b062d6",120:"2c127759",149:"9a9bc35c",237:"1df93b7f",270:"d795dfbd",309:"f402e59b",358:"afe7e8e5",377:"8bbdd1b6",414:"393be207",477:"b2f554cd",493:"e1cc3ecf",514:"1be78505",521:"0f06fd08",596:"5ffc6399",608:"9e4087bc",656:"1efa5838",661:"8c5ee32e",791:"1d131567",833:"49a73474",862:"71616011",901:"ecb88550",918:"17896441",971:"c377a04b"}[e]||e)+"."+{12:"e093cda9",31:"d93098d7",53:"702d5bea",75:"80b3bad7",85:"da09ae97",93:"ed6a9244",102:"769ab2d4",120:"b17f2215",149:"01867308",237:"54038379",270:"d2ede0aa",309:"1ff45c8a",358:"6cd064d9",377:"37e696e8",414:"32ecd2f8",477:"c24f1afa",493:"e1f4412a",514:"23584bdc",521:"a9fdd5cf",596:"f40bed87",608:"c7c286b0",656:"43c65469",661:"6be208c7",791:"08ce21b4",833:"175624cb",862:"df231059",897:"7e924ec6",901:"eed779a1",918:"41abfd04",971:"458e1645"}[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 i=document.getElementsByTagName("script"),d=0;d Archive | Overextended - +

Archive

Archive

- + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index b341472a..6e4d84d0 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/External/Client/placeholder/index.html b/docs/ox_inventory/External/Client/placeholder/index.html index 35953b58..0c4012bd 100644 --- a/docs/ox_inventory/External/Client/placeholder/index.html +++ b/docs/ox_inventory/External/Client/placeholder/index.html @@ -5,13 +5,13 @@ Placeholder | Overextended - + - + \ No newline at end of file diff --git a/docs/ox_inventory/External/Server/placeholder/index.html b/docs/ox_inventory/External/Server/placeholder/index.html index ad8dff83..2c88697a 100644 --- a/docs/ox_inventory/External/Server/placeholder/index.html +++ b/docs/ox_inventory/External/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 3ee622e1..abcaaa4f 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/Internal/Client/placeholder/index.html b/docs/ox_inventory/Internal/Client/placeholder/index.html index 0d0aab5a..7a94836f 100644 --- a/docs/ox_inventory/Internal/Client/placeholder/index.html +++ b/docs/ox_inventory/Internal/Client/placeholder/index.html @@ -5,13 +5,13 @@ Placeholder | Overextended - + - + \ No newline at end of file diff --git a/docs/ox_inventory/Internal/Server/placeholder/index.html b/docs/ox_inventory/Internal/Server/placeholder/index.html index bfb1af69..0f1bab45 100644 --- a/docs/ox_inventory/Internal/Server/placeholder/index.html +++ b/docs/ox_inventory/Internal/Server/placeholder/index.html @@ -5,13 +5,13 @@ Placeholder | Overextended - + - + \ No newline at end of file diff --git a/docs/ox_inventory/installation/index.html b/docs/ox_inventory/installation/index.html index be37e4bb..027d5b85 100644 --- a/docs/ox_inventory/installation/index.html +++ b/docs/ox_inventory/installation/index.html @@ -5,13 +5,13 @@ Installation | Overextended - + - + \ 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 948dc555..efa8028f 100644 --- a/docs/ox_lib/Client/cache/index.html +++ b/docs/ox_lib/Client/cache/index.html @@ -5,15 +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.

Still a work-in-progress and does not have any API or events.
-https://github.com/overextended/ox_lib/blob/master/resource/states/client.lua

States​

cache.ped       = PlayerPedId()
cache.vehicle = GetVehiclePedIsIn(cache.ped, false)
cache.driver = GetPedInVehicleSeat(cache.vehicle, -1) == cache.ped
- +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 c8bdb6ca..296af01f 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 e6123388..44439f8b 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 389e2d11..678dafa9 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 88e39f5e..9b73084e 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 false if it could not be 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)
- +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 d718d002..bb51f1d7 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 99952fe3..362b3ff1 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 025ebd05..289f490c 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 c8a36a0d..b6a48b6c 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 7d3992c8..2b3f5521 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 94ff3cc9..6ffff848 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 06ddabd6..116b9d76 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 50fc6e58..929e671f 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 5bea8081..fcea91a0 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 deb0ee30..df9b4dfe 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