From c92c96d8ec11777e7b0bd9ac3c72bca948e10486 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Sun, 8 Oct 2023 21:35:33 +0200 Subject: [PATCH] chore: update bpt_doorlock to version 1.0.2 --- .../[bpt_addons]/bpt_doorlock/README.md | 43 +------- .../[bpt_addons]/bpt_doorlock/fxmanifest.lua | 2 +- .../web/build/assets/index.3fdfe26d.js | 102 ++++++++++++++++++ .../web/build/assets/index.9f535db0.js | 93 ---------------- .../bpt_doorlock/web/build/index.html | 2 +- 5 files changed, 108 insertions(+), 134 deletions(-) create mode 100644 server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.3fdfe26d.js delete mode 100644 server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.9f535db0.js diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/README.md b/server-data/resources/[bpt_addons]/bpt_doorlock/README.md index ff09466ff..ad3cbfcad 100644 --- a/server-data/resources/[bpt_addons]/bpt_doorlock/README.md +++ b/server-data/resources/[bpt_addons]/bpt_doorlock/README.md @@ -1,44 +1,9 @@ -# bpt_doorlock +
Discord
-Port management resource, currently only compatible with es_extended.
+Port management resource, currently only compatible with es_extended & qb-core.
[latest release](https://github.com/bitpredator/bpt_doorlock/releases/latest/download/bpt_doorlock.zip)
## Dependencies
-### [oxmysql](https://github.com/overextended/oxmysql)
-
-The ports are stored in a database to facilitate the use of the resource
-
-## Client API
-
-```lua
-exports.bpt_doorlock:useClosestDoor()
-```
-
-```lua
-exports.bpt_doorlock:pickClosestDoor()
-```
-
-## Server API
-
-```lua
-local mrpd_locker_rooms = exports.bpt_doorlock:getDoor(1)
-local mrpd_locker_rooms = exports.bpt_doorlock:getDoorFromName('mrpd locker rooms')
-```
-
-- Set door state (0: unlocked, 1: locked)
-
-```lua
-TriggerEvent('bpt_doorlock:setState', mrpd_locker_rooms.id, state)
-```
-
-- Listen for event when door is toggled
-
-```lua
-AddEventHandler('bpt_doorlock:stateChanged', function(source, doorId, state, usedItem)
- if usedItem == 'trainticket' then
- local xPlayer = ESX.GetPlayerFromId(source)
- xPlayer.removeInventoryItem(usedItem, 1)
- end
-end)
-```
\ No newline at end of file
+### [oxmysql](https://github.com/overextended/oxmysql)
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua b/server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua
index 53a7c381e..a71dc5bac 100644
--- a/server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua
@@ -6,7 +6,7 @@ game 'gta5'
-- Resource Information
name 'bpt_doorlock'
-version '1.0.0'
+version '1.0.2'
license 'MIT'
author 'bitpredator'
repository 'https://github.com/bitpredator/bpt_doorlock'
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.3fdfe26d.js b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.3fdfe26d.js
new file mode 100644
index 000000000..2efa8c399
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.3fdfe26d.js
@@ -0,0 +1,102 @@
+function Eb(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Rb=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}};Rb();var p={exports:{}},J={};/*
+object-assign
+(c) Sindre Sorhus
+@license MIT
+*/var bp=Object.getOwnPropertySymbols,kb=Object.prototype.hasOwnProperty,Ib=Object.prototype.propertyIsEnumerable;function Nb(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function zb(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var N0=zb()?Object.assign:function(e,t){for(var r,n=Nb(e),o,i=1;iS(X,{className:e.main,style:a,children:H(Zx,{children:[S(Wt,{path:"/",element:S(t7,{})}),S(Wt,{path:"/settings/*",element:S(I7,{})})]})})})})},M7={colorScheme:"dark",fontFamily:"Roboto",components:{Tooltip:{defaultProps:{transition:"pop"}}}};if($D()){const e=document.getElementById("root");e.style.backgroundImage='url("https://i.imgur.com/3pzRj9n.png")',e.style.backgroundSize="cover",e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center"}z$.render(S(C.StrictMode,{children:S(Y1,{withNormalizeCSS:!0,withGlobalStyles:!0,theme:M7,children:S(ZT,{modalProps:{transition:"slide-up"},children:S(PD,{children:S(T7,{})})})})}),document.getElementById("root"));
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.9f535db0.js b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.9f535db0.js
deleted file mode 100644
index c879b3963..000000000
--- a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.9f535db0.js
+++ /dev/null
@@ -1,93 +0,0 @@
-function mx(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const vx=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}};vx();var g={exports:{}},J={};/*
-object-assign
-(c) Sindre Sorhus
-@license MIT
-*/var vp=Object.getOwnPropertySymbols,hx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable;function wx(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function _x(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var x0=_x()?Object.assign:function(e,t){for(var r,n=wx(e),o,i=1;iS(K,{className:e.main,style:a,children:U(Fb,{children:[S(Bt,{path:"/",element:S(xT,{})}),S(Bt,{path:"/settings/*",element:S(JT,{})})]})})})})},o7={colorScheme:"dark",fontFamily:"Roboto",components:{Tooltip:{defaultProps:{transition:"pop"}}}};if(Yz()){const e=document.getElementById("root");e.style.backgroundImage='url("https://i.imgur.com/3pzRj9n.png")',e.style.backgroundSize="cover",e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center"}_$.render(S(E.StrictMode,{children:S(L1,{withNormalizeCSS:!0,withGlobalStyles:!0,theme:o7,children:S(_T,{modalProps:{transition:"slide-up"},children:S(Gz,{children:S(n7,{})})})})}),document.getElementById("root"));
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html
index d5098d668..782b1a1cf 100644
--- a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html
@@ -5,7 +5,7 @@