diff --git a/server-data/resources/[esx]/es_extended/fxmanifest.lua b/server-data/resources/[esx]/es_extended/fxmanifest.lua index ea2d7fcef..2c20299a6 100644 --- a/server-data/resources/[esx]/es_extended/fxmanifest.lua +++ b/server-data/resources/[esx]/es_extended/fxmanifest.lua @@ -46,25 +46,13 @@ client_scripts { 'dependencies/hardcap/client/*.lua' } -ui_page { - 'html/ui.html' -} - files { 'imports.lua', - 'locale.js', - 'html/ui.html', - 'html/css/app.css', - 'html/js/mustache.min.js', - 'html/js/wrapper.js', - 'html/js/app.js', - 'html/fonts/pdown.ttf', - 'html/fonts/bankgothic.ttf' + 'locale.js' } dependencies { - '/server:5949', - '/onesync', + '/native:0x6AE51D4B', 'oxmysql', 'spawnmanager', } \ No newline at end of file diff --git a/server-data/resources/[esx]/es_extended/html/css/app.css b/server-data/resources/[esx]/es_extended/html/css/app.css deleted file mode 100644 index b9ae885bd..000000000 --- a/server-data/resources/[esx]/es_extended/html/css/app.css +++ /dev/null @@ -1,75 +0,0 @@ -@font-face { - font-family: 'Pricedown'; - src: url('../fonts/pdown.ttf') -} - -@font-face { - font-family: 'bankgothic'; - src: url('../fonts/bankgothic.ttf') -} - -html { - overflow: hidden; -} - -#inventory_notifications { - font-family: bankgothic; - position: absolute; - right: 40; - bottom: 40; - font-size: 2em; - font-weight: bold; - color: #FFF; - text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; -} - -.menu { - font-family: 'Open Sans', sans-serif; - min-width: 400px; - min-height: 250px; - color: #fff; - position: absolute; - left: 40; - top: 0; -} - -.menu .head { - font-family: 'Open Sans', sans-serif; - font-size: 28px; - padding: 10px; - background: #1A1A1A; - border-bottom: 3px solid #BC1635; - border-radius: 10px 10px 0 0; - -webkit-border-radius: 10px 10px 0 0; - -moz-border-radius: 10px 10px 0 0; - -o-border-radius: 10px 10px 0 0; - box-shadow: inset 0px 1px 0 rgba(255, 255, 255, 0.28); - -webkit-box-shadow: inset 0px 1px 0 rgba(255, 255, 255, 0.28); - -moz-box-shadow: inset 0px 1px 0 rgba(255, 255, 255, 0.28); - -o-box-shadow: inset 0px 1px 0 rgba(255, 255, 255, 0.28); - box-shadow: 1px 1px 10px 4px rgba(0, 0, 0, 0.4); -} - -.menu .head span { - font-family: 'Pricedown'; - font-size: 28px; - padding-left: 15px; - padding-top: 6px; -} - -.menu .menu-items .menu-item { - font-family: 'Open Sans', sans-serif; - font-size: 14px; - height: 40px; - display: block; - background-color: #f1f1f1; - box-shadow: inset 1px 0px 0px 1px #b8b8b8; - height: 32px; - line-height: 32px; - color: #3A3A3A; - text-align: center; -} - -.menu .menu-items .menu-item.selected { - background-color: #ccc; -} diff --git a/server-data/resources/[esx]/es_extended/html/fonts/bankgothic.ttf b/server-data/resources/[esx]/es_extended/html/fonts/bankgothic.ttf deleted file mode 100644 index f3d8049b0..000000000 Binary files a/server-data/resources/[esx]/es_extended/html/fonts/bankgothic.ttf and /dev/null differ diff --git a/server-data/resources/[esx]/es_extended/html/fonts/pdown.ttf b/server-data/resources/[esx]/es_extended/html/fonts/pdown.ttf deleted file mode 100644 index 69c76cf3f..000000000 Binary files a/server-data/resources/[esx]/es_extended/html/fonts/pdown.ttf and /dev/null differ diff --git a/server-data/resources/[esx]/es_extended/html/js/app.js b/server-data/resources/[esx]/es_extended/html/js/app.js deleted file mode 100644 index ad18651a3..000000000 --- a/server-data/resources/[esx]/es_extended/html/js/app.js +++ /dev/null @@ -1,43 +0,0 @@ -(() => { - - ESX = {}; - - ESX.inventoryNotification = function (add, label, count) { - let notif = ''; - - if (add) { - notif += '+'; - } else { - notif += '-'; - } - - if (count) { - notif += count + ' ' + label; - } else { - notif += ' ' + label; - } - - let elem = $('
' + notif + '
'); - $('#inventory_notifications').append(elem); - - $(elem).delay(3000).fadeOut(1000, function () { - elem.remove(); - }); - }; - - window.onData = (data) => { - switch (data.action) { - - case 'inventoryNotification': { - ESX.inventoryNotification(data.add, data.item, data.count); - } - } - }; - - window.onload = function (e) { - window.addEventListener('message', (event) => { - onData(event.data); - }); - }; - -})(); diff --git a/server-data/resources/[esx]/es_extended/html/js/mustache.min.js b/server-data/resources/[esx]/es_extended/html/js/mustache.min.js deleted file mode 100644 index 520cfcb9e..000000000 --- a/server-data/resources/[esx]/es_extended/html/js/mustache.min.js +++ /dev/null @@ -1 +0,0 @@ -(function defineMustache(global,factory){if(typeof exports==="object"&&exports&&typeof exports.nodeName!=="string"){factory(exports)}else if(typeof define==="function"&&define.amd){define(["exports"],factory)}else{global.Mustache={};factory(global.Mustache)}})(this,function mustacheFactory(mustache){var objectToString=Object.prototype.toString;var isArray=Array.isArray||function isArrayPolyfill(object){return objectToString.call(object)==="[object Array]"};function isFunction(object){return typeof object==="function"}function typeStr(obj){return isArray(obj)?"array":typeof obj}function escapeRegExp(string){return string.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function hasProperty(obj,propName){return obj!=null&&typeof obj==="object"&&propName in obj}var regExpTest=RegExp.prototype.test;function testRegExp(re,string){return regExpTest.call(re,string)}var nonSpaceRe=/\S/;function isWhitespace(string){return!testRegExp(nonSpaceRe,string)}var entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function escapeHtml(string){return String(string).replace(/[&<>"'`=\/]/g,function fromEntityMap(s){return entityMap[s]})}var whiteRe=/\s*/;var spaceRe=/\s+/;var equalsRe=/\s*=/;var curlyRe=/\s*\}/;var tagRe=/#|\^|\/|>|\{|&|=|!/;function parseTemplate(template,tags){if(!template)return[];var sections=[];var tokens=[];var spaces=[];var hasTag=false;var nonSpace=false;function stripSpace(){if(hasTag&&!nonSpace){while(spaces.length)delete tokens[spaces.pop()]}else{spaces=[]}hasTag=false;nonSpace=false}var openingTagRe,closingTagRe,closingCurlyRe;function compileTags(tagsToCompile){if(typeof tagsToCompile==="string")tagsToCompile=tagsToCompile.split(spaceRe,2);if(!isArray(tagsToCompile)||tagsToCompile.length!==2)throw new Error("Invalid tags: "+tagsToCompile);openingTagRe=new RegExp(escapeRegExp(tagsToCompile[0])+"\\s*");closingTagRe=new RegExp("\\s*"+escapeRegExp(tagsToCompile[1]));closingCurlyRe=new RegExp("\\s*"+escapeRegExp("}"+tagsToCompile[1]))}compileTags(tags||mustache.tags);var scanner=new Scanner(template);var start,type,value,chr,token,openSection;while(!scanner.eos()){start=scanner.pos;value=scanner.scanUntil(openingTagRe);if(value){for(var i=0,valueLength=value.length;i0?sections[sections.length-1][4]:nestedTokens;break;default:collector.push(token)}}return nestedTokens}function Scanner(string){this.string=string;this.tail=string;this.pos=0}Scanner.prototype.eos=function eos(){return this.tail===""};Scanner.prototype.scan=function scan(re){var match=this.tail.match(re);if(!match||match.index!==0)return"";var string=match[0];this.tail=this.tail.substring(string.length);this.pos+=string.length;return string};Scanner.prototype.scanUntil=function scanUntil(re){var index=this.tail.search(re),match;switch(index){case-1:match=this.tail;this.tail="";break;case 0:match="";break;default:match=this.tail.substring(0,index);this.tail=this.tail.substring(index)}this.pos+=match.length;return match};function Context(view,parentContext){this.view=view;this.cache={".":this.view};this.parent=parentContext}Context.prototype.push=function push(view){return new Context(view,this)};Context.prototype.lookup=function lookup(name){var cache=this.cache;var value;if(cache.hasOwnProperty(name)){value=cache[name]}else{var context=this,names,index,lookupHit=false;while(context){if(name.indexOf(".")>0){value=context.view;names=name.split(".");index=0;while(value!=null&&index")value=this.renderPartial(token,context,partials,originalTemplate);else if(symbol==="&")value=this.unescapedValue(token,context);else if(symbol==="name")value=this.escapedValue(token,context);else if(symbol==="text")value=this.rawValue(token);if(value!==undefined)buffer+=value}return buffer};Writer.prototype.renderSection=function renderSection(token,context,partials,originalTemplate){var self=this;var buffer="";var value=context.lookup(token[1]);function subRender(template){return self.render(template,context,partials)}if(!value)return;if(isArray(value)){for(var j=0,valueLength=value.length;j { - - let ESXWrapper = {}; - ESXWrapper.MessageSize = 1024; - ESXWrapper.messageId = 0; - - window.SendMessage = function (namespace, type, msg) { - - ESXWrapper.messageId = (ESXWrapper.messageId < 65535) ? ESXWrapper.messageId + 1 : 0; - const str = JSON.stringify(msg); - - for (let i = 0; i < str.length; i++) { - - let count = 0; - let chunk = ''; - - while (count < ESXWrapper.MessageSize && i < str.length) { - - chunk += str[i]; - - count++; - i++; - } - - i--; - - const data = { - __type: type, - id: ESXWrapper.messageId, - chunk: chunk - } - - if (i == str.length - 1) - data.end = true; - - $.post('http://' + namespace + '/__chunk', JSON.stringify(data)); - - } - - } - -})() diff --git a/server-data/resources/[esx]/es_extended/html/ui.html b/server-data/resources/[esx]/es_extended/html/ui.html deleted file mode 100644 index 653f41d8e..000000000 --- a/server-data/resources/[esx]/es_extended/html/ui.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - -
-
- - - - - - \ No newline at end of file