diff --git a/resources/[system]/scoreboard/fxmanifest.lua b/resources/[system]/scoreboard/fxmanifest.lua deleted file mode 100644 index f2657fa..0000000 --- a/resources/[system]/scoreboard/fxmanifest.lua +++ /dev/null @@ -1,27 +0,0 @@ --- This resource is part of the default Cfx.re asset pack (cfx-server-data) --- Altering or recreating for local use only is strongly discouraged. - -version '1.0.0' -author 'Cfx.re ' -description 'Basic player scoreboard.' -repository 'https://github.com/citizenfx/cfx-server-data' - --- temporary! -ui_page 'html/scoreboard.html' - -client_script 'scoreboard.lua' - -files { - 'html/scoreboard.html', - 'html/style.css', - 'html/reset.css', - 'html/listener.js', - 'html/res/futurastd-medium.css', - 'html/res/futurastd-medium.eot', - 'html/res/futurastd-medium.woff', - 'html/res/futurastd-medium.ttf', - 'html/res/futurastd-medium.svg', -} - -fx_version 'adamant' -game 'gta5' diff --git a/resources/[system]/scoreboard/html/listener.js b/resources/[system]/scoreboard/html/listener.js deleted file mode 100644 index 19cb4c8..0000000 --- a/resources/[system]/scoreboard/html/listener.js +++ /dev/null @@ -1,17 +0,0 @@ -$(function() -{ - window.addEventListener('message', function(event) - { - var item = event.data; - var buf = $('#wrap'); - buf.find('table').append("IDNameWanted level"); - if (item.meta && item.meta == 'close') - { - document.getElementById("ptbl").innerHTML = ""; - $('#wrap').hide(); - return; - } - buf.find('table').append(item.text); - $('#wrap').show(); - }, false); -}); \ No newline at end of file diff --git a/resources/[system]/scoreboard/html/res/futurastd-medium.css b/resources/[system]/scoreboard/html/res/futurastd-medium.css deleted file mode 100644 index 4f26d70..0000000 --- a/resources/[system]/scoreboard/html/res/futurastd-medium.css +++ /dev/null @@ -1,8 +0,0 @@ -@font-face { - font-family: 'FuturaStdMedium'; - src: url('futurastd-medium.eot'); - src: url('futurastd-medium.eot') format('embedded-opentype'), - url('futurastd-medium.woff') format('woff'), - url('futurastd-medium.ttf') format('truetype'), - url('futurastd-medium.svg#FuturaStdMedium') format('svg'); -} diff --git a/resources/[system]/scoreboard/html/res/futurastd-medium.eot b/resources/[system]/scoreboard/html/res/futurastd-medium.eot deleted file mode 100644 index 66de497..0000000 Binary files a/resources/[system]/scoreboard/html/res/futurastd-medium.eot and /dev/null differ diff --git a/resources/[system]/scoreboard/html/res/futurastd-medium.svg b/resources/[system]/scoreboard/html/res/futurastd-medium.svg deleted file mode 100644 index e7472be..0000000 --- a/resources/[system]/scoreboard/html/res/futurastd-medium.svg +++ /dev/null @@ -1,913 +0,0 @@ - - - - -Created by FontForge 20110222 at Mon Aug 4 15:25:24 2014 - By Orthosie Webhosting -Copyright (c) 1987, 1991, 1993, 2002 Adobe Systems Incorporated. All Rights Reserved. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/resources/[system]/scoreboard/html/res/futurastd-medium.ttf b/resources/[system]/scoreboard/html/res/futurastd-medium.ttf deleted file mode 100644 index f87af22..0000000 Binary files a/resources/[system]/scoreboard/html/res/futurastd-medium.ttf and /dev/null differ diff --git a/resources/[system]/scoreboard/html/res/futurastd-medium.woff b/resources/[system]/scoreboard/html/res/futurastd-medium.woff deleted file mode 100644 index f234cf3..0000000 Binary files a/resources/[system]/scoreboard/html/res/futurastd-medium.woff and /dev/null differ diff --git a/resources/[system]/scoreboard/html/reset.css b/resources/[system]/scoreboard/html/reset.css deleted file mode 100644 index af94440..0000000 --- a/resources/[system]/scoreboard/html/reset.css +++ /dev/null @@ -1,48 +0,0 @@ -/* http://meyerweb.com/eric/tools/css/reset/ - v2.0 | 20110126 - License: none (public domain) -*/ - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} -/* HTML5 display-role reset for older browsers */ -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} -body { - line-height: 1; -} -ol, ul { - list-style: none; -} -blockquote, q { - quotes: none; -} -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; -} -table { - border-collapse: collapse; - border-spacing: 0; -} \ No newline at end of file diff --git a/resources/[system]/scoreboard/html/scoreboard.html b/resources/[system]/scoreboard/html/scoreboard.html deleted file mode 100644 index f4df0a1..0000000 --- a/resources/[system]/scoreboard/html/scoreboard.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/resources/[system]/scoreboard/html/style.css b/resources/[system]/scoreboard/html/style.css deleted file mode 100644 index 5da5420..0000000 --- a/resources/[system]/scoreboard/html/style.css +++ /dev/null @@ -1,40 +0,0 @@ -@import url('res/futurastd-medium.css'); - -html { - color: #fff; -} - -#wrap { - width: 500px; - min-height: 185px; - margin-top: 10%; - margin-left: auto; - margin-right: auto; - background-color: #fff; - box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16), 0px 2px 10px 0px rgba(0, 0, 0, 0.12); - color: rgba(255, 255, 255, 0.9); -} - -table { - text-align: left; -} - -th, td { - padding-left: 25px; -} - -th { - padding-top: 10px; - height: 40px; -} - -tr { - font-size: 120%; - font-family: 'Segoe UI'; - /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);*/ -} - -tr.heading { - background-color: #43A047; - color: rgba(255, 255, 255, 0.9); -} \ No newline at end of file diff --git a/resources/[system]/scoreboard/scoreboard.lua b/resources/[system]/scoreboard/scoreboard.lua deleted file mode 100644 index 4d0efdb..0000000 --- a/resources/[system]/scoreboard/scoreboard.lua +++ /dev/null @@ -1,48 +0,0 @@ -local listOn = false - -Citizen.CreateThread(function() - listOn = false - while true do - Wait(0) - - if IsControlPressed(0, 27)--[[ INPUT_PHONE ]] then - if not listOn then - local players = {} - local ptable = GetActivePlayers() - for _, i in ipairs(ptable) do - local wantedLevel = GetPlayerWantedLevel(i) - r, g, b = GetPlayerRgbColour(i) - table.insert(players, - '' .. GetPlayerServerId(i) .. '' .. sanitize(GetPlayerName(i)) .. '' .. (wantedLevel and wantedLevel or tostring(0)) .. '' - ) - end - - SendNUIMessage({ text = table.concat(players) }) - - listOn = true - while listOn do - Wait(0) - if(IsControlPressed(0, 27) == false) then - listOn = false - SendNUIMessage({ - meta = 'close' - }) - break - end - end - end - end - end -end) - -function sanitize(txt) - local replacements = { - ['&' ] = '&', - ['<' ] = '<', - ['>' ] = '>', - ['\n'] = '
' - } - return txt - :gsub('[&<>\n]', replacements) - :gsub(' +', function(s) return ' '..(' '):rep(#s-1) end) -end