This script will let you sit or lay on a bed, chair or what ever you want:P
+ There is an easy config in the client.lua, where you can add/remove objects.
- Radargun (Github / FiveM Forum)
+ - Healthbar / UI (Github / FiveM Forum)
+ - Coords Pack (Github / FiveM Forum)
+
+
\ No newline at end of file
diff --git a/resources/Chair-Bed-System/__resource.lua b/resources/Chair-Bed-System/__resource.lua
new file mode 100644
index 000000000..9f254121a
--- /dev/null
+++ b/resources/Chair-Bed-System/__resource.lua
@@ -0,0 +1,11 @@
+resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
+
+
+client_scripts{
+ 'client.lua',
+ 'config.lua'
+}
+
+server_scripts{
+ 'server.lua'
+}
\ No newline at end of file
diff --git a/resources/Chair-Bed-System/client.lua b/resources/Chair-Bed-System/client.lua
new file mode 100644
index 000000000..193f2f3d6
--- /dev/null
+++ b/resources/Chair-Bed-System/client.lua
@@ -0,0 +1,233 @@
+local plyCoords = GetEntityCoords(PlayerPedId())
+local isWithinObject = false
+local oElement = {}
+
+-- // BASIC
+local InUse = false
+local IsTextInUse = false
+local PlyLastPos = 0
+
+-- // ANIMATION
+local Anim = 'sit'
+local AnimScroll = 0
+
+-- Fast Thread
+CreateThread(function()
+ while true do
+ if isWithinObject and oElement.fObject ~= 0 then
+ local ply = PlayerPedId()
+ local objectCoords = oElement.fObjectCoords
+ local distanceDiff = #(objectCoords - plyCoords)
+ if (distanceDiff < 2.0 and not InUse) then
+ if (oElement.fObjectIsBed == true) then
+
+ -- // ARROW RIGHT
+ if IsControlJustPressed(0, 175) then -- right
+ if (AnimScroll ~= 2) then
+ AnimScroll = AnimScroll + 1
+ end
+ if AnimScroll == 1 then
+ Anim = "back"
+ elseif AnimScroll == 2 then
+ Anim = "stomach"
+ end
+ end
+
+ -- // ARROW LEFT
+ if IsControlJustPressed(0, 174) then -- left
+ if (AnimScroll ~= 0) then
+ AnimScroll = AnimScroll - 1
+ end
+ if AnimScroll == 1 then
+ Anim = "back"
+ elseif AnimScroll == 0 then
+ Anim = "sit"
+ end
+ end
+
+ if (Anim == 'sit') then
+ DrawText3Ds(objectCoords.x, objectCoords.y, objectCoords.z, Config.Text.SitOnBed .. ' | ' .. Config.Text.SwitchBetween)
+ else
+ DrawText3Ds(objectCoords.x, objectCoords.y, objectCoords.z, Config.Text.LieOnBed .. ' ~g~' .. Anim .. '~w~ | ' .. Config.Text.SwitchBetween)
+ end
+
+ if IsControlJustPressed(0, Config.objects.ButtonToLayOnBed) then
+ TriggerServerEvent('ChairBedSystem:Server:Enter', oElement, oElement.fObjectCoords)
+ end
+ else
+ DrawText3Ds(objectCoords.x, objectCoords.y, objectCoords.z, Config.Text.SitOnChair)
+ if IsControlJustPressed(0, Config.objects.ButtonToSitOnChair) then
+ TriggerServerEvent('ChairBedSystem:Server:Enter', oElement, oElement.fObjectCoords)
+ end
+ end
+ end
+
+ if (InUse) then
+ DrawText3Ds(objectCoords.x, objectCoords.y, objectCoords.z, Config.Text.Standup)
+ if IsControlJustPressed(0, Config.objects.ButtonToStandUp) then
+ InUse = false
+ TriggerServerEvent('ChairBedSystem:Server:Leave', oElement.fObjectCoords)
+ ClearPedTasksImmediately(ply)
+ FreezeEntityPosition(ply, false)
+
+ local x, y, z = table.unpack(PlyLastPos)
+ if GetDistanceBetweenCoords(x, y, z, plyCoords) < 10 then
+ SetEntityCoords(ply, PlyLastPos)
+ end
+ end
+ end
+ end
+ Wait(0)
+ end
+end)
+
+-- Medium Thread
+CreateThread(function()
+ while true do
+ plyCoords = GetEntityCoords(PlayerPedId())
+ Wait(1000)
+ end
+end)
+
+
+-- Slow Thread
+CreateThread(function()
+ Wait(1500)
+ while true do
+ for _, element in pairs(Config.objects.locations) do
+ local closestObject = GetClosestObjectOfType(plyCoords.x, plyCoords.y, plyCoords.z, 3.0, GetHashKey(element.object), 0, 0, 0)
+ local coordsObject = GetEntityCoords(closestObject)
+ local distanceDiff = #(coordsObject - plyCoords)
+ --if (distanceDiff < 3.00 and closestObject ~= 0) then
+ --if (distanceDiff < 2.00) then
+ if (distanceDiff < 2.25 and closestObject ~= 0) then
+ if (distanceDiff < 2.00) then
+ oElement = {
+ fObject = closestObject,
+ fObjectCoords = coordsObject,
+ fObjectcX = element.verticalOffsetX,
+ fObjectcY = element.verticalOffsetY,
+ fObjectcZ = element.verticalOffsetZ,
+ fObjectDir = element.direction,
+ fObjectIsBed = element.bed
+ }
+ isWithinObject = true
+ end
+ break
+ else
+ isWithinObject = false
+ end
+ end
+ Wait(2000)
+ end
+end)
+
+
+-- Healing Thread
+CreateThread(function()
+ while Config.Healing ~= 0 do
+ Wait(Config.Healing * 1000)
+ if InUse == true then
+ if oElement.fObjectIsBed == true then
+ local ply = PlayerPedId()
+ local health = GetEntityHealth(ply)
+ if health <= 199 then
+ SetEntityHealth(ply, health + 1)
+ end
+ end
+ end
+ end
+end)
+
+RegisterNetEvent('ChairBedSystem:Client:Animation')
+AddEventHandler('ChairBedSystem:Client:Animation', function(v, coords)
+ local object = v.fObject
+ local vertx = v.fObjectcX
+ local verty = v.fObjectcY
+ local vertz = v.fObjectcZ
+ local dir = v.fObjectDir
+ local isBed = v.fObjectIsBed
+ local objectcoords = coords
+
+ local ped = PlayerPedId()
+ PlyLastPos = GetEntityCoords(ped)
+ FreezeEntityPosition(object, true)
+ FreezeEntityPosition(ped, true)
+ InUse = true
+ if isBed == false then
+ if Config.objects.SitAnimation.dict ~= nil then
+ SetEntityCoords(ped, objectcoords.x, objectcoords.y, objectcoords.z + 0.5)
+ SetEntityHeading(ped, GetEntityHeading(object) - 180.0)
+ local dict = Config.objects.SitAnimation.dict
+ local anim = Config.objects.SitAnimation.anim
+
+ AnimLoadDict(dict, anim, ped)
+ else
+ TaskStartScenarioAtPosition(ped, Config.objects.SitAnimation.anim, objectcoords.x + vertx, objectcoords.y + verty, objectcoords.z - vertz, GetEntityHeading(object) + dir, 0, true, true)
+ end
+ else
+ if Anim == 'back' then
+ if Config.objects.BedBackAnimation.dict ~= nil then
+ SetEntityCoords(ped, objectcoords.x, objectcoords.y, objectcoords.z + 0.5)
+ SetEntityHeading(ped, GetEntityHeading(object) - 180.0)
+ local dict = Config.objects.BedBackAnimation.dict
+ local anim = Config.objects.BedBackAnimation.anim
+
+ Animation(dict, anim, ped)
+ else
+ TaskStartScenarioAtPosition(ped, Config.objects.BedBackAnimation.anim, objectcoords.x + vertx, objectcoords.y + verty, objectcoords.z - vertz, GetEntityHeading(object) + dir, 0, true, true
+ )
+ end
+ elseif Anim == 'stomach' then
+ if Config.objects.BedStomachAnimation.dict ~= nil then
+ SetEntityCoords(ped, objectcoords.x, objectcoords.y, objectcoords.z + 0.5)
+ SetEntityHeading(ped, GetEntityHeading(object) - 180.0)
+ local dict = Config.objects.BedStomachAnimation.dict
+ local anim = Config.objects.BedStomachAnimation.anim
+
+ Animation(dict, anim, ped)
+ else
+ TaskStartScenarioAtPosition(ped, Config.objects.BedStomachAnimation.anim, objectcoords.x + vertx, objectcoords.y + verty, objectcoords.z - vertz, GetEntityHeading(object) + dir, 0, true, true)
+ end
+ elseif Anim == 'sit' then
+ if Config.objects.BedSitAnimation.dict ~= nil then
+ SetEntityCoords(ped, objectcoords.x, objectcoords.y, objectcoords.z + 0.5)
+ SetEntityHeading(ped, GetEntityHeading(object) - 180.0)
+ local dict = Config.objects.BedSitAnimation.dict
+ local anim = Config.objects.BedSitAnimation.anim
+
+ Animation(dict, anim, ped)
+ else
+ TaskStartScenarioAtPosition(ped, Config.objects.BedSitAnimation.anim, objectcoords.x + vertx, objectcoords.y + verty, objectcoords.z - vertz, GetEntityHeading(object) + 180.0, 0, true, true)
+ end
+ end
+ end
+end)
+
+
+
+function DrawText3Ds(x, y, z, text)
+ local onScreen, _x, _y = World3dToScreen2d(x, y, z)
+
+ if onScreen then
+ SetTextScale(0.35, 0.35)
+ SetTextFont(4)
+ SetTextProportional(1)
+ SetTextColour(255, 255, 255, 215)
+ SetTextEntry("STRING")
+ SetTextCentre(1)
+ AddTextComponentString(text)
+ DrawText(_x, _y)
+ local factor = (string.len(text)) / 350
+ DrawRect(_x, _y + 0.0125, 0.015 + factor, 0.03, 41, 11, 41, 68)
+ end
+end
+
+function Animation(dict, anim, ped)
+ RequestAnimDict(dict)
+ while not HasAnimDictLoaded(dict) do
+ Citizen.Wait(0)
+ end
+
+ TaskPlayAnim(ped, dict, anim, 8.0, 1.0, -1, 1, 0, 0, 0, 0)
+end
diff --git a/resources/Chair-Bed-System/config.lua b/resources/Chair-Bed-System/config.lua
new file mode 100644
index 000000000..121b51d16
--- /dev/null
+++ b/resources/Chair-Bed-System/config.lua
@@ -0,0 +1,44 @@
+Config = {}
+
+Config.Healing = 1 -- // If this is 0, then its disabled.. Default: 3.. That means, if a person lies in a bed, then he will get 1 health every 3 seconds.
+
+Config.objects = {
+ ButtonToSitOnChair = 58, -- // Default: G -- // https://docs.fivem.net/game-references/controls/
+ ButtonToLayOnBed = 38, -- // Default: E -- // https://docs.fivem.net/game-references/controls/
+ ButtonToStandUp = 23, -- // Default: F -- // https://docs.fivem.net/game-references/controls/
+ SitAnimation = {anim='PROP_HUMAN_SEAT_CHAIR_MP_PLAYER'},
+ BedBackAnimation = {dict='anim@gangops@morgue@table@', anim='ko_front'},
+ BedStomachAnimation = {anim='WORLD_HUMAN_SUNBATHE'},
+ BedSitAnimation = {anim='WORLD_HUMAN_PICNIC'},
+ locations = {
+ {object="v_med_bed2", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-1.4, direction=0.0, bed=true},
+ {object="v_serv_ct_chair02", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.0, direction=168.0, bed=false},
+ {object="prop_off_chair_04", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="prop_off_chair_03", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="prop_off_chair_05", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="v_club_officechair", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="v_ilev_leath_chr", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="v_corp_offchair", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="v_med_emptybed", verticalOffsetX=0.0, verticalOffsetY=0.13, verticalOffsetZ=-0.2, direction=90.0, bed=false},
+ {object="Prop_Off_Chair_01", verticalOffsetX=0.0, verticalOffsetY=-0.1, verticalOffsetZ=-0.5, direction=180.0, bed=false},
+ {object="hei_prop_heist_off_chair", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="prop_sol_chair", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="v_med_whickerchair1", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="prop_waiting_seat_01", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="v_ret_gc_chair02", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="p_clb_officechair_s", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="v_corp_lazychair", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ {object="prop_wait_bench_01", verticalOffsetX=0.0, verticalOffsetY=0.0, verticalOffsetZ=-0.4, direction=168.0, bed=false},
+ }
+}
+
+-- // YOU WILL FIND ALL BUTTONS HERE FOR CODE BELOW;P
+-- [[ https://docs.fivem.net/game-references/controls/ ]]
+
+Config.Text = {
+ SitOnChair = '~r~G~w~ to sit',
+ SitOnBed = '~r~E~w~ to sit on the bed',
+ LieOnBed = '~r~E~w~ to lay on your',
+ SwitchBetween = 'Switch between with ~r~Arrow left~w~ and ~r~arrow right~w~',
+ Standup = '~r~F~w~ to stand up!',
+}
\ No newline at end of file
diff --git a/resources/Chair-Bed-System/server.lua b/resources/Chair-Bed-System/server.lua
new file mode 100644
index 000000000..ce80a9f73
--- /dev/null
+++ b/resources/Chair-Bed-System/server.lua
@@ -0,0 +1,39 @@
+--
+-- * Created with PhpStorm
+-- * User: Terbium
+-- * Date: 05/11/2019
+-- * Time: 02:21
+--
+
+local oArray = {}
+local oPlayerUse = {}
+
+
+AddEventHandler('playerDropped', function()
+ local oSource = source
+ if oPlayerUse[oSource] ~= nil then
+ oArray[oPlayerUse[oSource]] = nil
+ oPlayerUse[oSource] = nil
+ end
+end)
+
+
+RegisterServerEvent('ChairBedSystem:Server:Enter')
+AddEventHandler('ChairBedSystem:Server:Enter', function(object, objectcoords)
+ local oSource = source
+ if oArray[objectcoords] == nil then
+ oPlayerUse[oSource] = objectcoords
+ oArray[objectcoords] = true
+ TriggerClientEvent('ChairBedSystem:Client:Animation', oSource, object, objectcoords)
+ end
+end)
+
+
+RegisterServerEvent('ChairBedSystem:Server:Leave')
+AddEventHandler('ChairBedSystem:Server:Leave', function(objectcoords)
+ local oSource = source
+
+ oPlayerUse[oSource] = nil
+ oArray[objectcoords] = nil
+end)
+
diff --git a/resources/ChatLog/__resource.lua b/resources/ChatLog/__resource.lua
new file mode 100644
index 000000000..182dd4dc8
--- /dev/null
+++ b/resources/ChatLog/__resource.lua
@@ -0,0 +1,2 @@
+resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
+server_script "server.lua"
diff --git a/resources/ChatLog/server.lua b/resources/ChatLog/server.lua
new file mode 100644
index 000000000..1987c004e
--- /dev/null
+++ b/resources/ChatLog/server.lua
@@ -0,0 +1,15 @@
+AddEventHandler('chatMessage', function(source, name, message)
+ if message == nil or message == '' or message:sub(1, 1) == '/' then return FALSE end
+ PerformHttpRequest('https://discordapp.com/api/webhooks/547208563680870400/ucatxdILDNy59VSRYYfRY3Qgy1ZjSujraB2hA_-Gy52eUGjF9jVfg5yhue697fMYfTE5', function(err, text, headers) end, 'POST', json.encode({username = name, content = message}), { ['Content-Type'] = 'application/json' })
+end)
+function sendToDiscord(name, message)
+ if message == nil or message == '' or message:sub(1, 1) == '/' then return FALSE end
+ PerformHttpRequest('https://discordapp.com/api/webhooks/547208563680870400/ucatxdILDNy59VSRYYfRY3Qgy1ZjSujraB2hA_-Gy52eUGjF9jVfg5yhue697fMYfTE5', function(err, text, headers) end, 'POST', json.encode({username = name, content = message}), { ['Content-Type'] = 'application/json' })
+end
+AddEventHandler('playerConnecting', function()
+ sendToDiscord('SYSTEM', GetPlayerName(source) .. ' has joined. ')
+end)
+
+AddEventHandler('playerDropped', function(reason)
+ sendToDiscord('SYSTEM', GetPlayerName(source) .. ' has left. (' .. reason .. ')')
+end)
diff --git a/resources/Chevy18/__resource.lua b/resources/Chevy18/__resource.lua
new file mode 100644
index 000000000..e85b41837
--- /dev/null
+++ b/resources/Chevy18/__resource.lua
@@ -0,0 +1,20 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+ 'vehicles.meta',
+ 'carvariations.meta',
+ 'carcols.meta',
+ 'handling.meta',
+ 'vehiclelayouts.meta', -- Not Required
+}
+
+data_file 'HANDLING_FILE' 'handling.meta'
+data_file 'VEHICLE_METADATA_FILE' 'vehicles.meta'
+data_file 'CARCOLS_FILE' 'carcols.meta'
+data_file 'VEHICLE_VARIATION_FILE' 'carvariations.meta'
+data_file 'VEHICLE_LAYOUTS_FILE' 'vehiclelayouts.meta' -- Not Required
+
+
+client_script {
+ 'vehicle_names.lua' -- Not Required
+}
\ No newline at end of file
diff --git a/resources/Chevy18/carcols.meta b/resources/Chevy18/carcols.meta
new file mode 100644
index 000000000..2c07fa16f
--- /dev/null
+++ b/resources/Chevy18/carcols.meta
@@ -0,0 +1,756 @@
+
+
+
+
+
+ Chevy18
+
+
+
+
+
+
+ VehicleLight_sirenlight
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/Chevy18/carvariations.meta b/resources/Chevy18/carvariations.meta
new file mode 100644
index 000000000..c5d7a09c0
--- /dev/null
+++ b/resources/Chevy18/carvariations.meta
@@ -0,0 +1,35 @@
+
+
+
+
+ Chevy18
+
+
+
+ 156
+ 156
+
+
+
+
+
+
+
+
+
+ 0_default_modkit
+
+
+
+
+
+ TEST
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/Chevy18/stream/Chevy18.yft b/resources/Chevy18/stream/Chevy18.yft
new file mode 100644
index 000000000..2120dd9bc
--- /dev/null
+++ b/resources/Chevy18/stream/Chevy18.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f09bb76f56b48d8dfe764e12823667e124a27abf4a06b180b1613a3616377551
+size 6418584
diff --git a/resources/Chevy18/stream/Chevy18.ytd b/resources/Chevy18/stream/Chevy18.ytd
new file mode 100644
index 000000000..353091264
--- /dev/null
+++ b/resources/Chevy18/stream/Chevy18.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d7116d83856eb72f0fecb854651eddb197adc37d256d07eb342c513f20cb25e9
+size 6106176
diff --git a/resources/Chevy18/stream/Chevy18_hi.yft b/resources/Chevy18/stream/Chevy18_hi.yft
new file mode 100644
index 000000000..2e64b5084
--- /dev/null
+++ b/resources/Chevy18/stream/Chevy18_hi.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:89a6fb2a0094d01dcee7dc48d894225dc8f770b06ac8ff4b3472b77196c83b4e
+size 6418745
diff --git a/resources/Chevy18/vehicles.meta b/resources/Chevy18/vehicles.meta
new file mode 100644
index 000000000..9e4163acd
--- /dev/null
+++ b/resources/Chevy18/vehicles.meta
@@ -0,0 +1,132 @@
+
+
+ vehshare
+
+
+
+ Chevy18
+ Chevy18
+ POLICE
+ Chevy18
+
+ null
+ null
+ null
+ null
+
+ null
+ WINDSOR
+ LAYOUT_STANDARD
+ POLICE_COVER_OFFSET_INFO
+ EXPLOSION_INFO_DEFAULT
+
+ DEFAULT_FOLLOW_VEHICLE_CAMERA
+ DEFAULT_THIRD_PERSON_VEHICLE_AIM_CAMERA
+ VEHICLE_BONNET_CAMERA_MID_HIGH
+ DEFAULT_POV_CAMERA
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ VFXVEHICLEINFO_CAR_GENERIC
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100.000000
+ 200.000000
+ 300.000000
+ 400.000000
+ 500.000000
+ 500.000000
+
+
+
+
+
+
+
+
+
+
+ SWANKNESS_1
+
+ FLAG_ATTACH_TRAILER_ON_HIGHWAY FLAG_ATTACH_TRAILER_IN_CITY FLAG_HAS_LIVERY FLAG_EXTRAS_ALL FLAG_EXTRAS_STRONG FLAG_LAW_ENFORCEMENT FLAG_EMERGENCY_SERVICE FLAG_NO_RESPRAY FLAG_DONT_SPAWN_IN_CARGEN FLAG_REPORT_CRIME_IF_STANDING_ON
+ VEHICLE_TYPE_CAR
+ VPT_FRONT_AND_BACK_PLATES
+ VDT_GENTAXI
+ VC_EMERGENCY
+ VWT_MUSCLE
+
+ boattrailer
+ trailersmall
+ trailersmall2
+
+
+
+
+
+
+
+
+
+
+
+ WHEEL_FRONT_RIGHT_CAMERA
+ WHEEL_FRONT_LEFT_CAMERA
+ WHEEL_REAR_RIGHT_CAMERA
+ WHEEL_REAR_LEFT_CAMERA
+
+
+
+
+
+
+ STD_POLICE_FRONT_LEFT
+ STD_POLICE_FRONT_RIGHT
+ STD_POLICE_REAR_LEFT
+ STD_POLICE_REAR_RIGHT
+
+
+
+
\ No newline at end of file
diff --git a/resources/CinematicCam/README.md b/resources/CinematicCam/README.md
new file mode 100644
index 000000000..845b817cb
--- /dev/null
+++ b/resources/CinematicCam/README.md
@@ -0,0 +1,19 @@
+--------------------------------------------------
+---- CINEMATIC CAM FOR FIVEM MADE BY KIMINAZE ----
+--------------------------------------------------
+
+**What exactly is the "Cinematic Cam"?**
+The Cinematic Cam provides the user with an easy to use "additional" camera, that can be moved freely in the world. Additionally it can be attached to any npc/player/vehicle in the game in order to provide something similar to a "Dashcam" or just for fancy screenshots or videos.
+You can set it on a specific position and angle relative to your character and the camera will move with the entity.
+
+**Features included:**
+- complete control using NativeUILua by Frazzle ( [NativeUILua](https://github.com/FrazzIe/NativeUILua) )
+- toggle the camera on / off
+- moving and rotating on all axes
+- using mouse AND controller input for rotation
+- setting precision rotation
+- setting field of view and speed of the camera
+- applying / removing a filter
+- setting filter intensity
+- toggle minimap on / off
+- attach camera to any npc/player/vehicle entity
diff --git a/resources/CinematicCam/__resource.lua b/resources/CinematicCam/__resource.lua
new file mode 100644
index 000000000..0fc328a36
--- /dev/null
+++ b/resources/CinematicCam/__resource.lua
@@ -0,0 +1,9 @@
+resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
+
+dependency 'NativeUI'
+
+client_scripts {
+ '@NativeUI/NativeUI.lua',
+ 'config.lua',
+ 'client.lua'
+}
diff --git a/resources/CinematicCam/client.lua b/resources/CinematicCam/client.lua
new file mode 100644
index 000000000..365c458bf
--- /dev/null
+++ b/resources/CinematicCam/client.lua
@@ -0,0 +1,624 @@
+--------------------------------------------------
+---- CINEMATIC CAM FOR FIVEM MADE BY KIMINAZE ----
+--------------------------------------------------
+
+--------------------------------------------------
+------------------- VARIABLES --------------------
+--------------------------------------------------
+
+-- main variables
+local cam = nil
+
+local offsetRotX = 0.0
+local offsetRotY = 0.0
+local offsetRotZ = 0.0
+
+local offsetCoords = {}
+offsetCoords.x = 0.0
+offsetCoords.y = 0.0
+offsetCoords.z = 0.0
+
+local counter = 0
+local precision = 1.0
+local currPrecisionIndex
+local precisions = {}
+for i = Cfg.minPrecision, Cfg.maxPrecision + 0.01, Cfg.incrPrecision do
+ table.insert(precisions, tostring(i))
+ counter = counter + 1
+ if (tostring(i) == "1.0") then
+ currPrecisionIndex = counter
+ end
+end
+
+local speed = 1.0
+
+local currFilter = 1
+local currFilterIntensity = 10
+local filterInten = {}
+for i=0.1, 2.01, 0.1 do table.insert(filterInten, tostring(i)) end
+
+local freeFly = false
+
+local isAttached = false
+local entity
+local camCoords
+
+local pointEntity = false
+
+-- menu variables
+local _menuPool = NativeUI.CreatePool()
+local camMenu
+
+local itemCamPrecision
+
+local itemFilter
+local itemFilterIntensity
+
+local itemAttachCam
+
+local itemPointEntity
+
+-- print error if no menu access was specified
+if (not(Cfg.useButton or Cfg.useCommand)) then
+ print(Cfg.strings.noAccessError)
+end
+
+
+
+--------------------------------------------------
+---------------------- LOOP ----------------------
+--------------------------------------------------
+Citizen.CreateThread(function()
+ local pressedCount = 0
+
+ camMenu = NativeUI.CreateMenu(Cfg.strings.menuTitle, Cfg.strings.menuSubtitle)
+ _menuPool:Add(camMenu)
+
+ while true do
+ Citizen.Wait(1)
+
+ -- process menu
+ if (_menuPool:IsAnyMenuOpen()) then
+ _menuPool:ProcessMenus()
+ end
+
+ -- open / close menu on button press
+ if (Cfg.useButton) then
+ if (IsDisabledControlPressed(1, Cfg.controls.controller.openMenu)) then
+ pressedCount = pressedCount + 1
+ elseif (IsDisabledControlJustReleased(1, Cfg.controls.controller.openMenu)) then
+ pressedCount = 0
+ end
+ if (IsDisabledControlJustReleased(1, Cfg.controls.keyboard.openMenu) or pressedCount >= 60) then
+ if (pressedCount >= 60) then pressedCount = 0 end
+ if (camMenu:Visible()) then
+ camMenu:Visible(false)
+ else
+ GenerateCamMenu()
+ camMenu:Visible(true)
+ end
+ end
+ end
+
+ -- process cam controls if cam exists
+ if (cam) then
+ ProcessCamControls()
+ end
+ end
+end)
+
+Citizen.CreateThread(function()
+ while true do
+ Citizen.Wait(500)
+
+ if (camMenu:Visible() and cam) then
+ local tempEntity = GetEntityInFrontOfCam()
+ local txt = "-"
+ if (DoesEntityExist(tempEntity)) then
+ txt = tostring(GetEntityModel(tempEntity))
+ if (IsEntityAVehicle(tempEntity)) then
+ txt = GetLabelText(GetDisplayNameFromVehicleModel(GetEntityModel(tempEntity)))
+ end
+ end
+ itemAttachCam:RightLabel(txt)
+
+ if (isAttached and not DoesEntityExist(entity)) then
+ isAttached = false
+
+ ClearFocus()
+
+ StopCamPointing(cam)
+ end
+ end
+ end
+end)
+
+
+
+--------------------------------------------------
+---------------------- MENU ----------------------
+--------------------------------------------------
+function GenerateCamMenu()
+ _menuPool:Remove()
+ _menuPool = NativeUI.CreatePool()
+ collectgarbage()
+
+ camMenu = NativeUI.CreateMenu(Cfg.strings.menuTitle, Cfg.strings.menuSubtitle)
+ _menuPool:Add(camMenu)
+
+ -- add additional control help
+ --camMenu:AddInstructionButton({GetControlInstructionalButton(1, 38, true), ""})
+ --camMenu:AddInstructionButton({GetControlInstructionalButton(1, 44, true), Cfg.strings.ctrlHelpRoll})
+ --camMenu:AddInstructionButton({GetControlInstructionalButton(1, 36, true), ""})
+ --camMenu:AddInstructionButton({GetControlInstructionalButton(1, 21, true), ""})
+ --camMenu:AddInstructionButton({GetControlInstructionalButton(1, 30, true), ""})
+ --camMenu:AddInstructionButton({GetControlInstructionalButton(1, 31, true), Cfg.strings.ctrlHelpMove})
+ --camMenu:AddInstructionButton({GetControlInstructionalButton(1, 2, true), ""})
+ --camMenu:AddInstructionButton({GetControlInstructionalButton(1, 1, true), Cfg.strings.ctrlHelpRotate})
+
+ local itemToggleCam = NativeUI.CreateCheckboxItem(Cfg.strings.toggleCam, DoesCamExist(cam), Cfg.strings.toggleCamDesc)
+ camMenu:AddItem(itemToggleCam)
+
+ itemCamPrecision = NativeUI.CreateListItem(Cfg.strings.precision, precisions, currPrecisionIndex, Cfg.strings.precisionDesc)
+ camMenu:AddItem(itemCamPrecision)
+
+ local submenuFilter = _menuPool:AddSubMenu(camMenu, Cfg.strings.filter, Cfg.strings.filterDesc)
+ camMenu.Items[#camMenu.Items]:SetLeftBadge(15)
+ itemFilter = NativeUI.CreateListItem(Cfg.strings.filter, Cfg.filterList, currFilter, Cfg.strings.filterDesc)
+ submenuFilter:AddItem(itemFilter)
+ itemFilterIntensity = NativeUI.CreateListItem(Cfg.strings.filterInten, filterInten, currFilterIntensity, Cfg.strings.filterIntenDesc)
+ submenuFilter:AddItem(itemFilterIntensity)
+ local itemDelFilter = NativeUI.CreateItem(Cfg.strings.delFilter, Cfg.strings.delFilterDesc)
+ submenuFilter:AddItem(itemDelFilter)
+
+ local itemShowMap = NativeUI.CreateCheckboxItem(Cfg.strings.showMap, not IsRadarHidden(), Cfg.strings.showMapDesc)
+ camMenu:AddItem(itemShowMap)
+
+ local itemToggleFreeFlyMode = NativeUI.CreateCheckboxItem(Cfg.strings.freeFly, freeFly, Cfg.strings.freeFlyDesc)
+ camMenu:AddItem(itemToggleFreeFlyMode)
+
+ itemAttachCam = NativeUI.CreateItem(Cfg.strings.attachCam, Cfg.strings.attachCamDesc)
+ camMenu:AddItem(itemAttachCam)
+
+ --itemPointEntity = NativeUI.CreateCheckboxItem(Cfg.strings.pointEntity, pointEntity, Cfg.strings.pointEntityDesc)
+ --camMenu:AddItem(itemPointEntity)
+
+
+ itemToggleCam.CheckboxEvent = function(menu, item, checked)
+ ToggleCam(checked, GetGameplayCamFov())
+ end
+
+ itemCamPrecision.OnListChanged = function(menu, item, newindex)
+ ChangePrecision(newindex)
+ end
+
+ itemShowMap.CheckboxEvent = function(menu, item, checked)
+ ToggleUI(checked)
+ end
+
+ itemToggleFreeFlyMode.CheckboxEvent = function(menu, item, checked)
+ ToggleFreeFlyMode(checked)
+ end
+
+ camMenu.OnItemSelect = function(menu, item, index)
+ if (item == itemAttachCam) then
+ ToggleAttachMode()
+ end
+ end
+
+ --[[itemPointEntity.CheckboxEvent = function(menu, item, checked)
+ TogglePointing(checked)
+ end]]
+
+ itemFilter.OnListChanged = function(menu, item, newindex)
+ ApplyFilter(newindex)
+ end
+
+ itemFilterIntensity.OnListChanged = function(menu, item, newindex)
+ ChangeFilterIntensity(newindex)
+ end
+
+ submenuFilter.OnItemSelect = function(menu, item, index)
+ if (item == itemDelFilter) then
+ ResetFilter()
+ end
+ end
+
+
+ _menuPool:ControlDisablingEnabled(false)
+ _menuPool:MouseControlsEnabled(false)
+
+ _menuPool:RefreshIndex()
+end
+
+
+
+--------------------------------------------------
+------------------- FUNCTIONS --------------------
+--------------------------------------------------
+
+-- initialize camera
+function StartFreeCam(fov)
+ ClearFocus()
+
+ local playerPed = PlayerPedId()
+
+ cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", GetEntityCoords(playerPed), 0, 0, 0, fov * 1.0)
+
+ SetCamActive(cam, true)
+ RenderScriptCams(true, false, 0, true, false)
+
+ SetCamAffectsAiming(cam, false)
+
+ if (isAttached and DoesEntityExist(entity)) then
+ offsetCoords = GetOffsetFromEntityGivenWorldCoords(entity, GetCamCoord(cam))
+
+ AttachCamToEntity(cam, entity, offsetCoords.x, offsetCoords.y, offsetCoords.z, true)
+ end
+end
+
+-- destroy camera
+function EndFreeCam()
+ ClearFocus()
+
+ RenderScriptCams(false, false, 0, true, false)
+ DestroyCam(cam, false)
+
+ offsetRotX = 0.0
+ offsetRotY = 0.0
+ offsetRotZ = 0.0
+
+ isAttached = false
+
+ speed = 1.0
+ precision = 1.0
+ currFov = GetGameplayCamFov()
+
+ cam = nil
+end
+
+-- process camera controls
+function ProcessCamControls()
+ local playerPed = PlayerPedId()
+
+ -- disable 1st person as the 1st person camera can cause some glitches
+ DisableFirstPersonCamThisFrame()
+ -- block weapon wheel (reason: scrolling)
+ BlockWeaponWheelThisFrame()
+ -- disable character/vehicle controls
+ for k, v in pairs(Cfg.disabledControls) do
+ DisableControlAction(0, v, true)
+ end
+
+ if (isAttached) then
+ -- calculate new position
+ offsetCoords = ProcessNewPosition(offsetCoords.x, offsetCoords.y, offsetCoords.z)
+
+ -- focus entity
+ SetFocusEntity(entity)
+
+ -- set coords
+ AttachCamToEntity(cam, entity, offsetCoords.x, offsetCoords.y, offsetCoords.z, true)
+
+ -- reset coords of cam if too far from entity
+ if (Vdist(0.0, 0.0, 0.0, offsetCoords.x, offsetCoords.y, offsetCoords.z) > Cfg.maxDistance) then
+ AttachCamToEntity(cam, entity, offsetCoords.x, offsetCoords.y, offsetCoords.z, true)
+ end
+
+ -- set rotation
+ local entityRot = GetEntityRotation(entity, 2)
+ SetCamRot(cam, entityRot.x + offsetRotX, entityRot.y + offsetRotY, entityRot.z + offsetRotZ, 2)
+ else
+ local camCoords = GetCamCoord(cam)
+
+ -- calculate new position
+ local newPos = ProcessNewPosition(camCoords.x, camCoords.y, camCoords.z)
+
+ -- focus cam area
+ SetFocusArea(newPos.x, newPos.y, newPos.z, 0.0, 0.0, 0.0)
+
+ -- set coords of cam
+ SetCamCoord(cam, newPos.x, newPos.y, newPos.z)
+
+ -- set rotation
+ SetCamRot(cam, offsetRotX, offsetRotY, offsetRotZ, 2)
+ end
+end
+
+function ProcessNewPosition(x, y, z)
+ local _x = x
+ local _y = y
+ local _z = z
+
+--gegenkathete = z
+--ankathete = y
+--hypotenuse = 1
+--alpha = GetCamRot(cam).x
+
+ -- keyboard
+ if (IsInputDisabled(0)) then
+ if (IsDisabledControlPressed(1, Cfg.controls.keyboard.forwards)) then
+ local multX = Sin(offsetRotZ)
+ local multY = Cos(offsetRotZ)
+ local multZ = Sin(offsetRotX)
+
+ _x = _x - (0.1 * speed * multX)
+ _y = _y + (0.1 * speed * multY)
+ if (freeFly) then
+ _z = _z + (0.1 * speed * multZ)
+ end
+ end
+ if (IsDisabledControlPressed(1, Cfg.controls.keyboard.backwards)) then
+ local multX = Sin(offsetRotZ)
+ local multY = Cos(offsetRotZ)
+ local multZ = Sin(offsetRotX)
+
+ _x = _x + (0.1 * speed * multX)
+ _y = _y - (0.1 * speed * multY)
+ if (freeFly) then
+ _z = _z - (0.1 * speed * multZ)
+ end
+ end
+ if (IsDisabledControlPressed(1, Cfg.controls.keyboard.left)) then
+ local multX = Sin(offsetRotZ + 90.0)
+ local multY = Cos(offsetRotZ + 90.0)
+ local multZ = Sin(offsetRotY)
+
+ _x = _x - (0.1 * speed * multX)
+ _y = _y + (0.1 * speed * multY)
+ if (freeFly) then
+ _z = _z + (0.1 * speed * multZ)
+ end
+ end
+ if (IsDisabledControlPressed(1, Cfg.controls.keyboard.right)) then
+ local multX = Sin(offsetRotZ + 90.0)
+ local multY = Cos(offsetRotZ + 90.0)
+ local multZ = Sin(offsetRotY)
+
+ _x = _x + (0.1 * speed * multX)
+ _y = _y - (0.1 * speed * multY)
+ if (freeFly) then
+ _z = _z - (0.1 * speed * multZ)
+ end
+ end
+
+ if (IsDisabledControlPressed(1, Cfg.controls.keyboard.up)) then
+ _z = _z + (0.1 * speed)
+ end
+ if (IsDisabledControlPressed(1, Cfg.controls.keyboard.down)) then
+ _z = _z - (0.1 * speed)
+ end
+
+
+ if (IsDisabledControlPressed(1, Cfg.controls.keyboard.hold)) then
+ -- hotkeys for speed
+ if (IsDisabledControlPressed(1, Cfg.controls.keyboard.speedUp)) then
+ if ((speed + 0.1) < Cfg.maxSpeed) then
+ speed = speed + 0.1
+ else
+ speed = Cfg.maxSpeed
+ end
+ elseif (IsDisabledControlPressed(1, Cfg.controls.keyboard.speedDown)) then
+ if ((speed - 0.1) > Cfg.minSpeed) then
+ speed = speed - 0.1
+ else
+ speed = Cfg.minSpeed
+ end
+ end
+ else
+ -- hotkeys for FoV
+ if (IsDisabledControlPressed(1, Cfg.controls.keyboard.zoomOut)) then
+ ChangeFov(1.0)
+ elseif (IsDisabledControlPressed(1, Cfg.controls.keyboard.zoomIn)) then
+ ChangeFov(-1.0)
+ end
+ end
+
+ -- rotation
+ offsetRotX = offsetRotX - (GetDisabledControlNormal(1, 2) * precision * 8.0)
+ offsetRotZ = offsetRotZ - (GetDisabledControlNormal(1, 1) * precision * 8.0)
+ if (IsDisabledControlPressed(1, Cfg.controls.keyboard.rollLeft)) then
+ offsetRotY = offsetRotY - precision
+ end
+ if (IsDisabledControlPressed(1, Cfg.controls.keyboard.rollRight)) then
+ offsetRotY = offsetRotY + precision
+ end
+
+ -- controller
+ else
+ local multX = Sin(offsetRotZ)
+ local multY = Cos(offsetRotZ)
+ local multZ = Sin(offsetRotX)
+ _x = _x - (0.1 * speed * multX * GetDisabledControlNormal(1, 32))
+ _y = _y + (0.1 * speed * multY * GetDisabledControlNormal(1, 32))
+ if (freeFly) then
+ _z = _z + (0.1 * speed * multZ * GetDisabledControlNormal(1, 32))
+ end
+
+ _x = _x + (0.1 * speed * multX * GetDisabledControlNormal(1, 33))
+ _y = _y - (0.1 * speed * multY * GetDisabledControlNormal(1, 33))
+ if (freeFly) then
+ _z = _z - (0.1 * speed * multZ * GetDisabledControlNormal(1, 33))
+ end
+
+ multX = Sin(offsetRotZ + 90.0)
+ multY = Cos(offsetRotZ + 90.0)
+ local multZ = Sin(offsetRotY)
+ _x = _x - (0.1 * speed * multX * GetDisabledControlNormal(1, 34))
+ _y = _y + (0.1 * speed * multY * GetDisabledControlNormal(1, 34))
+ if (freeFly) then
+ _z = _z + (0.1 * speed * multZ * GetDisabledControlNormal(1, 34))
+ end
+
+ _x = _x + (0.1 * speed * multX * GetDisabledControlNormal(1, 35))
+ _y = _y - (0.1 * speed * multY * GetDisabledControlNormal(1, 35))
+ if (freeFly) then
+ _z = _z - (0.1 * speed * multZ * GetDisabledControlNormal(1, 35))
+ end
+
+ -- FoV, Speed, Up/Down Movement
+ if (GetDisabledControlNormal(1, 228) ~= 0.0) then
+ if (IsDisabledControlPressed(1, Cfg.controls.controller.holdFov)) then
+ ChangeFov(GetDisabledControlNormal(1, 228))
+ elseif (IsDisabledControlPressed(1, Cfg.controls.controller.holdSpeed)) then
+ local newSpeed = speed - (0.1 * GetDisabledControlNormal(1, 228))
+ if (newSpeed > Cfg.minSpeed) then
+ speed = newSpeed
+ else
+ speed = Cfg.minSpeed
+ end
+ else
+ _z = _z - (0.1 * speed * GetDisabledControlNormal(1, 228))
+ end
+ end
+ if (GetDisabledControlNormal(1, 229) ~= 0.0) then
+ if (IsDisabledControlPressed(1, Cfg.controls.controller.holdFov)) then
+ ChangeFov(- GetDisabledControlNormal(1, 229))
+ elseif (IsDisabledControlPressed(1, Cfg.controls.controller.holdSpeed)) then
+ local newSpeed = speed + (0.1 * GetDisabledControlNormal(1, 229))
+ if (newSpeed < Cfg.maxSpeed) then
+ speed = newSpeed
+ else
+ speed = Cfg.maxSpeed
+ end
+ else
+ _z = _z + (0.1 * speed * GetDisabledControlNormal(1, 229))
+ end
+ end
+
+ -- rotation
+ offsetRotX = offsetRotX - (GetDisabledControlNormal(1, 2) * precision)
+ offsetRotZ = offsetRotZ - (GetDisabledControlNormal(1, 1) * precision)
+ if (IsDisabledControlPressed(1, Cfg.controls.controller.rollLeft)) then
+ offsetRotY = offsetRotY - precision
+ end
+ if (IsDisabledControlPressed(1, Cfg.controls.controller.rollRight)) then
+ offsetRotY = offsetRotY + precision
+ end
+ end
+
+ if (offsetRotX > 90.0) then offsetRotX = 90.0 elseif (offsetRotX < -90.0) then offsetRotX = -90.0 end
+ if (offsetRotY > 90.0) then offsetRotY = 90.0 elseif (offsetRotY < -90.0) then offsetRotY = -90.0 end
+ if (offsetRotZ > 360.0) then offsetRotZ = offsetRotZ - 360.0 elseif (offsetRotZ < -360.0) then offsetRotZ = offsetRotZ + 360.0 end
+
+ return {x = _x, y = _y, z = _z}
+end
+
+function ToggleCam(flag, fov)
+ if (flag) then
+ StartFreeCam(fov)
+ _menuPool:RefreshIndex()
+ else
+ EndFreeCam()
+ _menuPool:RefreshIndex()
+ end
+end
+
+function ChangeFov(changeFov)
+ if (DoesCamExist(cam)) then
+ local currFov = GetCamFov(cam)
+ local newFov = currFov + changeFov
+
+ if ((newFov >= Cfg.minFov) and (newFov <= Cfg.maxFov)) then
+ SetCamFov(cam, newFov)
+ end
+ end
+end
+
+function ChangePrecision(newindex)
+ precision = itemCamPrecision.Items[newindex]
+ currPrecisionIndex = newindex
+end
+
+function ToggleUI(flag)
+ DisplayRadar(flag)
+end
+
+function ToggleFreeFlyMode(flag)
+ freeFly = flag
+end
+
+function GetEntityInFrontOfCam()
+ local camCoords = GetCamCoord(cam)
+ local offset = {x = camCoords.x - Sin(offsetRotZ) * 100.0, y = camCoords.y + Cos(offsetRotZ) * 100.0, z = camCoords.z + Sin(offsetRotX) * 100.0}
+
+ local rayHandle = StartShapeTestRay(camCoords.x, camCoords.y, camCoords.z, offset.x, offset.y, offset.z, 10, 0, 0)
+ local a, b, c, d, entity = GetShapeTestResult(rayHandle)
+ return entity
+end
+
+function ToggleAttachMode()
+ if (not isAttached) then
+ entity = GetEntityInFrontOfCam()
+
+ if (DoesEntityExist(entity)) then
+ offsetCoords = GetOffsetFromEntityGivenWorldCoords(entity, GetCamCoord(cam))
+
+ Citizen.Wait(1)
+ local camCoords = GetCamCoord(cam)
+ AttachCamToEntity(cam, entity, GetOffsetFromEntityInWorldCoords(entity, camCoords.x, camCoords.y, camCoords.z), true)
+
+ isAttached = true
+ end
+ else
+ ClearFocus()
+
+ DetachCam(cam)
+
+ isAttached = false
+ end
+end
+
+function TogglePointing(flag)
+ if (flag and isAttached) then
+ pointEntity = true
+ PointCamAtEntity(cam, entity, 0.0, 0.0, 0.0, 1)
+ else
+ pointEntity = false
+ StopCamPointing(cam)
+ end
+end
+
+function ApplyFilter(filterIndex)
+ SetTimecycleModifier(Cfg.filterList[filterIndex])
+ currFilter = filterIndex
+end
+
+function ChangeFilterIntensity(intensityIndex)
+ SetTimecycleModifier(Cfg.filterList[currFilter])
+ SetTimecycleModifierStrength(tonumber(filterInten[intensityIndex]))
+ currFilterIntensity = intensityIndex
+end
+
+function ResetFilter()
+ ClearTimecycleModifier()
+ itemFilter._Index = 1
+ currFilter = 1
+ itemFilterIntensity._Index = 10
+ currFilterIntensity = 10
+end
+
+
+
+--------------------------------------------------
+-------------------- COMMANDS --------------------
+--------------------------------------------------
+
+-- register command if specified in config
+if (Cfg.useCommand) then
+ RegisterCommand(Cfg.command, function(source, args, raw)
+ if (not camMenu:Visible()) then
+ GenerateCamMenu()
+ camMenu:Visible(true)
+ end
+ end)
+end
+
+--void POINT_CAM_AT_ENTITY(Cam cam, Entity entity, float p2, float p3, float p4, BOOL p5);
+--void POINT_CAM_AT_COORD(Cam cam, float x, float y, float z);
+--void GET_CAM_MATRIX(Cam camera, Vector3* rightVector, Vector3* forwardVector, Vector3* upVector, Vector3* position);
+
+--gegenkathete = x
+--ankathete = y
+--hypotenuse = 1
+--alpha = GetCamRot(cam).z
diff --git a/resources/CinematicCam/config.lua b/resources/CinematicCam/config.lua
new file mode 100644
index 000000000..22ae28ad8
--- /dev/null
+++ b/resources/CinematicCam/config.lua
@@ -0,0 +1,872 @@
+--------------------------------------------------
+---- CINEMATIC CAM FOR FIVEM MADE BY KIMINAZE ----
+--------------------------------------------------
+
+Cfg = {}
+
+-- specify, if menu should be accessible via button press
+Cfg.useButton = false
+
+-- specify, if menu should be accessible via chat command
+Cfg.useCommand = true
+-- specify chat command string
+Cfg.command = "cinematic-cam"
+
+-- Show an extra option to have a completely free to move camera
+Cfg.detachOption = true
+
+-- value in meters
+-- default: 5.0
+-- used to prevent e.g. Meta-Gaming and Bug-Abuse (looking through walls etc.)
+-- with 10,000 you can basically fly above the whole map from the middle but keep in mind, that LoD-states (Level of Detail) won't change as your character stays at its position
+-- this is unused when the camera is detached
+Cfg.maxDistance = 5000.0
+
+-- min and max speed settings for movement in m/s including increments (should always be above 0.0)
+Cfg.minSpeed = 0.1
+Cfg.maxSpeed = 10.0
+
+-- min and max precision settings for rotation including increments (should always be above 0.0)
+Cfg.minPrecision = 0.1
+Cfg.incrPrecision = 0.1
+Cfg.maxPrecision = 2.0
+
+-- min and max FoV settings (should always be in between 1.0f and 130.0f!)
+Cfg.minFov = 1.0
+Cfg.maxFov = 130.0
+
+-- all strings
+Cfg.strings = {
+ noAccessError = "[ERROR] FreeCam: At least one of the following values must be true! Cfg.useButton, Cfg.useCommand",
+
+ menuTitle = "Cinematic Cam",
+ menuSubtitle = "Control the Cinematic Camera",
+
+ toggleCam = "Camera active",
+ toggleCamDesc = "Toggle camera on/off",
+
+ precision = "Camera Precision",
+ precisionDesc = "Change camera precision movement",
+
+ filter = "Filter",
+ filterDesc = "Change camera Filter",
+
+ filterInten = "Filter Intensity",
+ filterIntenDesc = "Change camera Filter Intensity",
+
+ delFilter = "Reset Filter",
+ delFilterDesc = "Remove filter and reset values",
+
+ showMap = "Show Minimap",
+ showMapDesc = "Toggle minimap on/off",
+
+ freeFly = "Toggle Free Fly Mode",
+ freeFlyDesc = "Switch to Free Fly or back to Drone Mode",
+
+ attachCam = "Attach camera to: ",
+ attachCamDesc = "Attach the camera to an entity in front of it",
+
+ pointEntity = "Point camera at entity",
+ pointEntityDesc = "Toggle pointing at selected entity",
+
+ ctrlHelpRoll = "Roll Left/Right",
+ ctrlHelpMove = "Movement",
+ ctrlHelpRotate = "Rotate"
+}
+
+Cfg.controls = {
+ keyboard = {
+ openMenu = 178, -- Delete
+ hold = 21, -- Shift
+ speedUp = 15, -- Mouse wheel up -- with hold
+ speedDown = 14, -- Mouse wheel down -- with hold
+
+ zoomOut = 14, -- Mouse wheel down
+ zoomIn = 15, -- Mouse wheel up
+
+ forwards = 32, -- W
+ backwards = 33, -- S
+ left = 34, -- A
+ right = 35, -- D
+ up = 22, -- Space
+ down = 36, -- Ctrl
+
+ rollLeft = 44, -- Q
+ rollRight = 38, -- E
+ },
+ controller = {
+ openMenu = 244, -- Select -- hold for ~1 second
+
+ holdSpeed = 80, -- O / B
+ holdFov = 21, -- X / A
+ up = 172, -- D-pad up
+ down = 173, -- D-pad down
+
+ rollLeft = 37, -- L1 / LB
+ rollRight = 44, -- R1 / RB
+ }
+}
+
+-- disables character/vehicle controls when using camera movements
+Cfg.disabledControls = {
+ 30, -- A and D (Character Movement)
+ 31, -- W and S (Character Movement)
+ 21, -- LEFT SHIFT
+ 36, -- LEFT CTRL
+ 22, -- SPACE
+ 44, -- Q
+ 38, -- E
+ 71, -- W (Vehicle Movement)
+ 72, -- S (Vehicle Movement)
+ 59, -- A and D (Vehicle Movement)
+ 60, -- LEFT SHIFT and LEFT CTRL (Vehicle Movement)
+ 85, -- Q (Radio Wheel)
+ 86, -- E (Vehicle Horn)
+ 15, -- Mouse wheel up
+ 14, -- Mouse wheel down
+ 37, -- Controller R1 (PS) / RT (XBOX)
+ 80, -- Controller O (PS) / B (XBOX)
+ 228, --
+ 229, --
+ 172, --
+ 173, --
+ 37, --
+ 44, --
+ 178, --
+ 244, --
+}
+
+-- list of available filters ( https://pastebin.com/kVPwMemE )
+Cfg.filterList = {
+ "None",
+ "AmbientPUSH",
+ "AP1_01_B_IntRefRange",
+ "AP1_01_C_NoFog",
+ "Bank_HLWD",
+ "Barry1_Stoned",
+ "BarryFadeOut",
+ "baseTONEMAPPING",
+ "BeastIntro01",
+ "BeastIntro02",
+ "BeastLaunch01",
+ "BeastLaunch02",
+ "BikerFilter",
+ "BikerForm01",
+ "BikerFormFlash",
+ "Bikers",
+ "BikersSPLASH",
+ "blackNwhite",
+ "BlackOut",
+ "BleepYellow01",
+ "BleepYellow02",
+ "Bloom",
+ "BloomLight",
+ "BloomMid",
+ "buggy_shack",
+ "buildingTOP",
+ "BulletTimeDark",
+ "BulletTimeLight",
+ "CAMERA_BW",
+ "CAMERA_secuirity",
+ "CAMERA_secuirity_FUZZ",
+ "canyon_mission",
+ "carMOD_underpass",
+ "carpark",
+ "carpark_dt1_02",
+ "carpark_dt1_03",
+ "Carpark_MP_exit",
+ "cashdepot",
+ "cashdepotEMERGENCY",
+ "cBank_back",
+ "cBank_front",
+ "ch2_tunnel_whitelight",
+ "CH3_06_water",
+ "CHOP",
+ "cinema",
+ "cinema_001",
+ "cops",
+ "CopsSPLASH",
+ "crane_cam",
+ "crane_cam_cinematic",
+ "CrossLine01",
+ "CrossLine02",
+ "CS1_railwayB_tunnel",
+ "CS3_rail_tunnel",
+ "CUSTOM_streetlight",
+ "damage",
+ "DeadlineNeon01",
+ "default",
+ "DefaultColorCode",
+ "DONT_overide_sunpos",
+ "Dont_tazeme_bro",
+ "dont_tazeme_bro_b",
+ "downtown_FIB_cascades_opt",
+ "DrivingFocusDark",
+ "DrivingFocusLight",
+ "DRUG_2_drive",
+ "Drug_deadman",
+ "Drug_deadman_blend",
+ "drug_drive_blend01",
+ "drug_drive_blend02",
+ "drug_flying_01",
+ "drug_flying_02",
+ "drug_flying_base",
+ "DRUG_gas_huffin",
+ "drug_wobbly",
+ "Drunk",
+ "dying",
+ "eatra_bouncelight_beach",
+ "epsilion",
+ "exile1_exit",
+ "exile1_plane",
+ "ExplosionJosh",
+ "EXT_FULLAmbientmult_art",
+ "ext_int_extlight_large",
+ "EXTRA_bouncelight",
+ "eyeINtheSKY",
+ "Facebook_NEW",
+ "facebook_serveroom",
+ "FIB_5",
+ "FIB_6",
+ "FIB_A",
+ "FIB_B",
+ "FIB_interview",
+ "FIB_interview_optimise",
+ "FinaleBank",
+ "FinaleBankexit",
+ "FinaleBankMid",
+ "fireDEPT",
+ "FORdoron_delete",
+ "Forest",
+ "fp_vig_black",
+ "fp_vig_blue",
+ "fp_vig_brown",
+ "fp_vig_gray",
+ "fp_vig_green",
+ "fp_vig_red",
+ "FrankilinsHOUSEhills",
+ "frankilnsAUNTS_new",
+ "frankilnsAUNTS_SUNdir",
+ "FRANKLIN",
+ "FranklinColorCode",
+ "FranklinColorCodeBasic",
+ "FranklinColorCodeBright",
+ "FullAmbientmult_interior",
+ "gallery_refmod",
+ "garage",
+ "gen_bank",
+ "glasses_black",
+ "Glasses_BlackOut",
+ "glasses_blue",
+ "glasses_brown",
+ "glasses_Darkblue",
+ "glasses_green",
+ "glasses_orange",
+ "glasses_pink",
+ "glasses_purple",
+ "glasses_red",
+ "glasses_Scuba",
+ "glasses_VISOR",
+ "glasses_yellow",
+ "gorge_reflection_gpu",
+ "gorge_reflectionoffset",
+ "gorge_reflectionoffset2",
+ "graveyard_shootout",
+ "gunclub",
+ "gunclubrange",
+ "gunshop",
+ "gunstore",
+ "half_direct",
+ "hangar_lightsmod",
+ "Hanger_INTmods",
+ "heathaze",
+ "heist_boat",
+ "heist_boat_engineRoom",
+ "heist_boat_norain",
+ "helicamfirst",
+ "heliGunCam",
+ "Hicksbar",
+ "HicksbarNEW",
+ "hillstunnel",
+ "Hint_cam",
+ "hitped",
+ "hud_def_blur",
+ "hud_def_blur_switch",
+ "hud_def_colorgrade",
+ "hud_def_desat_cold",
+ "hud_def_desat_cold_kill",
+ "hud_def_desat_Franklin",
+ "hud_def_desat_Michael",
+ "hud_def_desat_Neutral",
+ "hud_def_desat_switch",
+ "hud_def_desat_Trevor",
+ "hud_def_desatcrunch",
+ "hud_def_flash",
+ "hud_def_focus",
+ "hud_def_Franklin",
+ "hud_def_lensdistortion",
+ "hud_def_lensdistortion_subtle",
+ "hud_def_Michael",
+ "hud_def_Trevor",
+ "id1_11_tunnel",
+ "ImpExp_Interior_01",
+ "impexp_interior_01_lift",
+ "IMpExt_Interior_02",
+ "IMpExt_Interior_02_stair_cage",
+ "InchOrange01",
+ "InchOrange02",
+ "InchPickup01",
+ "InchPickup02",
+ "InchPurple01",
+ "InchPurple02",
+ "int_amb_mult_large",
+ "int_Barber1",
+ "int_carmod_small",
+ "int_carrier_control",
+ "int_carrier_control_2",
+ "int_carrier_hanger",
+ "int_carrier_rear",
+ "int_carrier_stair",
+ "int_carshowroom",
+ "int_chopshop",
+ "int_clean_extlight_large",
+ "int_clean_extlight_none",
+ "int_clean_extlight_small",
+ "int_ClothesHi",
+ "int_clotheslow_large",
+ "int_cluckinfactory_none",
+ "int_cluckinfactory_small",
+ "int_ControlTower_none",
+ "int_ControlTower_small",
+ "int_dockcontrol_small",
+ "int_extlght_sm_cntrst",
+ "int_extlight_large",
+ "int_extlight_large_fog",
+ "int_extlight_none",
+ "int_extlight_none_dark",
+ "int_extlight_none_dark_fog",
+ "int_extlight_none_fog",
+ "int_extlight_small",
+ "int_extlight_small_clipped",
+ "int_extlight_small_fog",
+ "int_Farmhouse_none",
+ "int_Farmhouse_small",
+ "int_FranklinAunt_small",
+ "INT_FullAmbientmult",
+ "INT_FULLAmbientmult_art",
+ "INT_FULLAmbientmult_both",
+ "INT_garage",
+ "int_GasStation",
+ "int_hanger_none",
+ "int_hanger_small",
+ "int_Hospital2_DM",
+ "int_Hospital_Blue",
+ "int_Hospital_BlueB",
+ "int_hospital_dark",
+ "int_Hospital_DM",
+ "int_hospital_small",
+ "int_lesters",
+ "int_Lost_none",
+ "int_Lost_small",
+ "INT_mall",
+ "int_methlab_small",
+ "int_motelroom",
+ "INT_NO_fogALPHA",
+ "INT_NoAmbientmult",
+ "INT_NoAmbientmult_art",
+ "INT_NoAmbientmult_both",
+ "INT_NOdirectLight",
+ "INT_nowaterREF",
+ "int_office_Lobby",
+ "int_office_LobbyHall",
+ "INT_posh_hairdresser",
+ "INT_smshop",
+ "INT_smshop_indoor_bloom",
+ "INT_smshop_inMOD",
+ "INT_smshop_outdoor_bloom",
+ "INT_streetlighting",
+ "int_tattoo",
+ "int_tattoo_B",
+ "INT_trailer_cinema",
+ "int_tunnel_none_dark",
+ "interior_WATER_lighting",
+ "introblue",
+ "jewel_gas",
+ "jewel_optim",
+ "jewelry_entrance",
+ "jewelry_entrance_INT",
+ "jewelry_entrance_INT_fog",
+ "Kifflom",
+ "KT_underpass",
+ "lab_none",
+ "lab_none_dark",
+ "lab_none_dark_fog",
+ "lab_none_dark_OVR",
+ "lab_none_exit",
+ "lab_none_exit_OVR",
+ "LectroDark",
+ "LectroLight",
+ "li",
+ "LifeInvaderLOD",
+ "lightning",
+ "lightning_cloud",
+ "lightning_strong",
+ "lightning_weak",
+ "LightPollutionHills",
+ "lightpolution",
+ "LIGHTSreduceFALLOFF",
+ "LODmult_global_reduce",
+ "LODmult_global_reduce_NOHD",
+ "LODmult_HD_orphan_LOD_reduce",
+ "LODmult_HD_orphan_reduce",
+ "LODmult_LOD_reduce",
+ "LODmult_SLOD1_reduce",
+ "LODmult_SLOD2_reduce",
+ "LODmult_SLOD3_reduce",
+ "lodscaler",
+ "LostTimeDark",
+ "LostTimeFlash",
+ "LostTimeLight",
+ "maxlodscaler",
+ "metro",
+ "METRO_platform",
+ "METRO_Tunnels",
+ "METRO_Tunnels_entrance",
+ "MichaelColorCode",
+ "MichaelColorCodeBasic",
+ "MichaelColorCodeBright",
+ "MichaelsDarkroom",
+ "MichaelsDirectional",
+ "MichaelsNODirectional",
+ "micheal",
+ "micheals_lightsOFF",
+ "michealspliff",
+ "michealspliff_blend",
+ "michealspliff_blend02",
+ "militarybase_nightlight",
+ "mineshaft",
+ "morebloom",
+ "morgue_dark",
+ "morgue_dark_ovr",
+ "Mp_apart_mid",
+ "mp_bkr_int01_garage",
+ "mp_bkr_int01_small_rooms",
+ "mp_bkr_int01_transition",
+ "mp_bkr_int02_garage",
+ "mp_bkr_int02_hangout",
+ "mp_bkr_int02_small_rooms",
+ "mp_bkr_ware01",
+ "mp_bkr_ware02_dry",
+ "mp_bkr_ware02_standard",
+ "mp_bkr_ware02_upgrade",
+ "mp_bkr_ware03_basic",
+ "mp_bkr_ware03_upgrade",
+ "mp_bkr_ware04",
+ "mp_bkr_ware05",
+ "MP_Bull_tost",
+ "MP_Bull_tost_blend",
+ "MP_corona_heist",
+ "MP_corona_heist_blend",
+ "MP_corona_heist_BW",
+ "MP_corona_heist_BW_night",
+ "MP_corona_heist_DOF",
+ "MP_corona_heist_night",
+ "MP_corona_heist_night_blend",
+ "MP_corona_selection",
+ "MP_corona_switch",
+ "MP_corona_tournament",
+ "MP_corona_tournament_DOF",
+ "MP_death_grade",
+ "MP_death_grade_blend01",
+ "MP_death_grade_blend02",
+ "MP_deathfail_night",
+ "mp_exec_office_01",
+ "mp_exec_office_02",
+ "mp_exec_office_03",
+ "mp_exec_office_03_blue",
+ "mp_exec_office_03C",
+ "mp_exec_office_04",
+ "mp_exec_office_05",
+ "mp_exec_office_06",
+ "mp_exec_warehouse_01",
+ "MP_Garage_L",
+ "MP_H_01_Bathroom",
+ "MP_H_01_Bedroom",
+ "MP_H_01_New",
+ "MP_H_01_New_Bathroom",
+ "MP_H_01_New_Bedroom",
+ "MP_H_01_New_Study",
+ "MP_H_01_Study",
+ "MP_H_02",
+ "MP_H_04",
+ "mp_h_05",
+ "MP_H_06",
+ "mp_h_07",
+ "mp_h_08",
+ "MP_heli_cam",
+ "mp_imx_intwaremed",
+ "mp_imx_intwaremed_office",
+ "mp_imx_mod_int_01",
+ "MP_intro_logo",
+ "MP_job_end_night",
+ "MP_job_load",
+ "MP_job_load_01",
+ "MP_job_load_02",
+ "MP_job_lose",
+ "MP_job_preload",
+ "MP_job_preload_blend",
+ "MP_job_preload_night",
+ "MP_job_win",
+ "MP_Killstreak",
+ "MP_Killstreak_blend",
+ "mp_lad_day",
+ "mp_lad_judgment",
+ "mp_lad_night",
+ "MP_Loser",
+ "MP_Loser_blend",
+ "MP_lowgarage",
+ "MP_MedGarage",
+ "MP_Powerplay",
+ "MP_Powerplay_blend",
+ "MP_race_finish",
+ "MP_select",
+ "Mp_Stilts",
+ "Mp_Stilts2",
+ "Mp_Stilts2_bath",
+ "Mp_Stilts_gym",
+ "Mp_Stilts_gym2",
+ "MP_Studio_Lo",
+ "MPApart_H_01",
+ "MPApart_H_01_gym",
+ "MPApartHigh",
+ "MPApartHigh_palnning",
+ "mugShot",
+ "mugShot_lineup",
+ "Multipayer_spectatorCam",
+ "multiplayer_ped_fight",
+ "nervousRON_fog",
+ "NeutralColorCode",
+ "NeutralColorCodeBasic",
+ "NeutralColorCodeBright",
+ "NeutralColorCodeLight",
+ "NEW_abattoir",
+ "new_bank",
+ "NEW_jewel",
+ "NEW_jewel_EXIT",
+ "NEW_lesters",
+ "new_MP_Garage_L",
+ "NEW_ornate_bank",
+ "NEW_ornate_bank_entrance",
+ "NEW_ornate_bank_office",
+ "NEW_ornate_bank_safe",
+ "New_sewers",
+ "NEW_shrinksOffice",
+ "NEW_station_unfinished",
+ "new_stripper_changing",
+ "NEW_trevorstrailer",
+ "NEW_tunnels",
+ "NEW_tunnels_ditch",
+ "new_tunnels_entrance",
+ "NEW_tunnels_hole",
+ "NEW_yellowtunnels",
+ "NewMicheal",
+ "NewMicheal_night",
+ "NewMicheal_upstairs",
+ "NewMichealgirly",
+ "NewMichealstoilet",
+ "NewMichealupstairs",
+ "nextgen",
+ "NG_blackout",
+ "NG_deathfail_BW_base",
+ "NG_deathfail_BW_blend01",
+ "NG_deathfail_BW_blend02",
+ "NG_filmic01",
+ "NG_filmic02",
+ "NG_filmic03",
+ "NG_filmic04",
+ "NG_filmic05",
+ "NG_filmic06",
+ "NG_filmic07",
+ "NG_filmic08",
+ "NG_filmic09",
+ "NG_filmic10",
+ "NG_filmic11",
+ "NG_filmic12",
+ "NG_filmic13",
+ "NG_filmic14",
+ "NG_filmic15",
+ "NG_filmic16",
+ "NG_filmic17",
+ "NG_filmic18",
+ "NG_filmic19",
+ "NG_filmic20",
+ "NG_filmic21",
+ "NG_filmic22",
+ "NG_filmic23",
+ "NG_filmic24",
+ "NG_filmic25",
+ "NG_filmnoir_BW01",
+ "NG_filmnoir_BW02",
+ "NG_first",
+ "nightvision",
+ "NO_coronas",
+ "NO_fog_alpha",
+ "NO_streetAmbient",
+ "NO_weather",
+ "NoAmbientmult",
+ "NoAmbientmult_interior",
+ "NOdirectLight",
+ "NoPedLight",
+ "NOrain",
+ "overwater",
+ "Paleto",
+ "paleto_nightlight",
+ "paleto_opt",
+ "PennedInDark",
+ "PennedInLight",
+ "PERSHING_water_reflect",
+ "phone_cam",
+ "phone_cam1",
+ "phone_cam10",
+ "phone_cam11",
+ "phone_cam12",
+ "phone_cam13",
+ "phone_cam2",
+ "phone_cam3",
+ "phone_cam3_REMOVED",
+ "phone_cam4",
+ "phone_cam5",
+ "phone_cam6",
+ "phone_cam7",
+ "phone_cam8",
+ "phone_cam8_REMOVED",
+ "phone_cam9",
+ "plane_inside_mode",
+ "player_transition",
+ "player_transition_no_scanlines",
+ "player_transition_scanlines",
+ "PlayerSwitchNeutralFlash",
+ "PlayerSwitchPulse",
+ "plaza_carpark",
+ "PoliceStation",
+ "PoliceStationDark",
+ "polluted",
+ "poolsidewaterreflection2",
+ "PORT_heist_underwater",
+ "powerplant_nightlight",
+ "powerstation",
+ "PPFilter",
+ "PPGreen01",
+ "PPGreen02",
+ "PPOrange01",
+ "PPOrange02",
+ "PPPink01",
+ "PPPink02",
+ "PPPurple01",
+ "PPPurple02",
+ "prison_nightlight",
+ "projector",
+ "prologue",
+ "prologue_ending_fog",
+ "prologue_ext_art_amb",
+ "prologue_reflection_opt",
+ "prologue_shootout",
+ "Prologue_shootout_opt",
+ "pulse",
+ "RaceTurboDark",
+ "RaceTurboFlash",
+ "RaceTurboLight",
+ "ranch",
+ "REDMIST",
+ "REDMIST_blend",
+ "ReduceDrawDistance",
+ "ReduceDrawDistanceMAP",
+ "ReduceDrawDistanceMission",
+ "reducelightingcost",
+ "ReduceSSAO",
+ "reducewaterREF",
+ "refit",
+ "reflection_correct_ambient",
+ "RemoteSniper",
+ "resvoire_reflection",
+ "rply_brightness",
+ "rply_brightness_neg",
+ "rply_contrast",
+ "rply_contrast_neg",
+ "rply_motionblur",
+ "rply_saturation",
+ "rply_saturation_neg",
+ "rply_vignette",
+ "rply_vignette_neg",
+ "SALTONSEA",
+ "sandyshore_nightlight",
+ "SAWMILL",
+ "scanline_cam",
+ "scanline_cam_cheap",
+ "scope_zoom_in",
+ "scope_zoom_out",
+ "secret_camera",
+ "services_nightlight",
+ "shades_pink",
+ "shades_yellow",
+ "SheriffStation",
+ "ship_explosion_underwater",
+ "ship_lighting",
+ "Shop247",
+ "Shop247_none",
+ "sleeping",
+ "Sniper",
+ "SP1_03_drawDistance",
+ "spectator1",
+ "spectator10",
+ "spectator2",
+ "spectator3",
+ "spectator4",
+ "spectator5",
+ "spectator6",
+ "spectator7",
+ "spectator8",
+ "spectator9",
+ "StadLobby",
+ "stc_coroners",
+ "stc_deviant_bedroom",
+ "stc_deviant_lounge",
+ "stc_franklinsHouse",
+ "stc_trevors",
+ "stoned",
+ "stoned_aliens",
+ "stoned_cutscene",
+ "stoned_monkeys",
+ "StreetLighting",
+ "StreetLightingJunction",
+ "StreetLightingtraffic",
+ "STRIP_changing",
+ "STRIP_nofog",
+ "STRIP_office",
+ "STRIP_stage",
+ "StuntFastDark",
+ "StuntFastLight",
+ "StuntSlowDark",
+ "StuntSlowLight",
+ "subBASE_water_ref",
+ "sunglasses",
+ "superDARK",
+ "switch_cam_1",
+ "switch_cam_2",
+ "telescope",
+ "TinyGreen01",
+ "TinyGreen02",
+ "TinyPink01",
+ "TinyPink02",
+ "TinyRacerMoBlur",
+ "torpedo",
+ "traffic_skycam",
+ "trailer_explosion_optimise",
+ "TREVOR",
+ "TrevorColorCode",
+ "TrevorColorCodeBasic",
+ "TrevorColorCodeBright",
+ "Trevors_room",
+ "trevorspliff",
+ "trevorspliff_blend",
+ "trevorspliff_blend02",
+ "Tunnel",
+ "tunnel_entrance",
+ "tunnel_entrance_INT",
+ "TUNNEL_green",
+ "Tunnel_green1",
+ "TUNNEL_green_ext",
+ "tunnel_id1_11",
+ "TUNNEL_orange",
+ "TUNNEL_orange_exterior",
+ "TUNNEL_white",
+ "TUNNEL_yellow",
+ "TUNNEL_yellow_ext",
+ "ufo",
+ "ufo_deathray",
+ "underwater",
+ "underwater_deep",
+ "underwater_deep_clear",
+ "v_abattoir",
+ "V_Abattoir_Cold",
+ "v_bahama",
+ "v_cashdepot",
+ "V_CIA_Facility",
+ "v_dark",
+ "V_FIB_IT3",
+ "V_FIB_IT3_alt",
+ "V_FIB_IT3_alt5",
+ "V_FIB_stairs",
+ "v_foundry",
+ "v_janitor",
+ "v_jewel2",
+ "v_metro",
+ "V_Metro2",
+ "V_Metro_station",
+ "v_michael",
+ "v_michael_lounge",
+ "V_Office_smoke",
+ "V_Office_smoke_ext",
+ "V_Office_smoke_Fire",
+ "v_recycle",
+ "V_recycle_dark",
+ "V_recycle_light",
+ "V_recycle_mainroom",
+ "v_rockclub",
+ "V_Solomons",
+ "v_strip3",
+ "V_strip_nofog",
+ "V_strip_office",
+ "v_strpchangerm",
+ "v_sweat",
+ "v_sweat_entrance",
+ "v_sweat_NoDirLight",
+ "v_torture",
+ "Vagos",
+ "vagos_extlight_small",
+ "VAGOS_new_garage",
+ "VAGOS_new_hangout",
+ "VagosSPLASH",
+ "VC_tunnel_entrance",
+ "vehicle_subint",
+ "venice_canal_tunnel",
+ "vespucci_garage",
+ "VolticBlur",
+ "VolticFlash",
+ "VolticGold",
+ "WAREHOUSE",
+ "WATER _lab_cooling",
+ "WATER_CH2_06_01_03",
+ "WATER_CH2_06_02",
+ "WATER_CH2_06_04",
+ "WATER_cove",
+ "WATER_hills",
+ "WATER_ID2_21",
+ "WATER_lab",
+ "WATER_militaryPOOP",
+ "WATER_muddy",
+ "WATER_port",
+ "WATER_REF_malibu",
+ "WATER_refmap_high",
+ "WATER_refmap_hollywoodlake",
+ "WATER_refmap_low",
+ "WATER_refmap_med",
+ "WATER_refmap_off",
+ "WATER_refmap_poolside",
+ "WATER_refmap_silverlake",
+ "WATER_refmap_venice",
+ "WATER_refmap_verylow",
+ "WATER_resevoir",
+ "WATER_RichmanStuntJump",
+ "WATER_river",
+ "WATER_salton",
+ "WATER_salton_bottom",
+ "WATER_shore",
+ "WATER_silty",
+ "WATER_silverlake",
+ "whitenightlighting",
+ "WhiteOut",
+ "winning_room",
+ "yacht_DLC",
+ "yell_tunnel_nodirect",
+}
diff --git a/resources/Commands/911.lua b/resources/Commands/911.lua
new file mode 100644
index 000000000..4ba3d5c14
--- /dev/null
+++ b/resources/Commands/911.lua
@@ -0,0 +1,19 @@
+AddEventHandler('chatMessage', function(source, name, msg)
+ sm = stringsplit(msg, " ");
+ if sm[1] == "/911" then
+ CancelEvent()
+ TriggerClientEvent('chatMessage', -1, "📲 911 | " .. name, { 30, 144, 255 }, string.sub(msg,5))
+ end
+end)
+
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
diff --git a/resources/Commands/__resource.lua b/resources/Commands/__resource.lua
new file mode 100644
index 000000000..ab2fdcd5f
--- /dev/null
+++ b/resources/Commands/__resource.lua
@@ -0,0 +1,9 @@
+description 'Enables use of /ooc for out of character chat.'
+server_script 'ooc.lua'
+server_script 'dispatch.lua'
+server_script 'me.lua'
+server_script 'tweet.lua'
+server_script 'darkweb.lua'
+server_script 'drugdeal.lua'
+server_script 'serveradmin.lua'
+server_script 'atc.lua'
\ No newline at end of file
diff --git a/resources/Commands/ad.lua b/resources/Commands/ad.lua
new file mode 100644
index 000000000..69cffc709
--- /dev/null
+++ b/resources/Commands/ad.lua
@@ -0,0 +1,19 @@
+AddEventHandler('chatMessage', function(source, name, msg)
+ sm = stringsplit(msg, " ");
+ if sm[1] == "/ad" then
+ CancelEvent()
+ TriggerClientEvent('chatMessage', -1, "📡 Advertisement | " .. name, { 255, 255, 51 }, string.sub(msg,5))
+ end
+end)
+
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
diff --git a/resources/Commands/atc.lua b/resources/Commands/atc.lua
new file mode 100644
index 000000000..7e60e5249
--- /dev/null
+++ b/resources/Commands/atc.lua
@@ -0,0 +1,19 @@
+AddEventHandler('chatMessage', function(source, name, msg)
+ sm = stringsplit(msg, " ");
+ if sm[1] == "/atc" then
+ CancelEvent()
+ TriggerClientEvent('chatMessage', -1, "👨â€âœˆï¸ ATC | " .. name, { 255, 140, 0 }, string.sub(msg,6))
+ end
+end)
+
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
diff --git a/resources/Commands/darkweb.lua b/resources/Commands/darkweb.lua
new file mode 100644
index 000000000..a51c4b621
--- /dev/null
+++ b/resources/Commands/darkweb.lua
@@ -0,0 +1,19 @@
+AddEventHandler('chatMessage', function(source, name, msg)
+ sm = stringsplit(msg, " ");
+ if sm[1] == "/darkweb" then
+ CancelEvent()
+ TriggerClientEvent('chatMessage', -1, "👨â€ðŸ’» Dark Web | " .. name, { 0, 0, 0 }, string.sub(msg,10))
+ end
+end)
+
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
diff --git a/resources/Commands/dispatch.lua b/resources/Commands/dispatch.lua
new file mode 100644
index 000000000..ea7159f91
--- /dev/null
+++ b/resources/Commands/dispatch.lua
@@ -0,0 +1,19 @@
+AddEventHandler('chatMessage', function(source, name, msg)
+ sm = stringsplit(msg, " ");
+ if sm[1] == "/dispatch" then
+ CancelEvent()
+ TriggerClientEvent('chatMessage', -1, "📲 Dispatch | " .. name, { 30, 144, 255 }, string.sub(msg,10))
+ end
+end)
+
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
diff --git a/resources/Commands/drugdeal.lua b/resources/Commands/drugdeal.lua
new file mode 100644
index 000000000..dcfe15341
--- /dev/null
+++ b/resources/Commands/drugdeal.lua
@@ -0,0 +1,19 @@
+AddEventHandler('chatMessage', function(source, name, msg)
+ sm = stringsplit(msg, " ");
+ if sm[1] == "/drugdeal" then
+ CancelEvent()
+ TriggerClientEvent('chatMessage', -1, "💊 Drug Deal | " .. name, { 0, 100, 0 }, string.sub(msg,11))
+ end
+end)
+
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
diff --git a/resources/Commands/me.lua b/resources/Commands/me.lua
new file mode 100644
index 000000000..0b5f0b584
--- /dev/null
+++ b/resources/Commands/me.lua
@@ -0,0 +1,19 @@
+AddEventHandler('chatMessage', function(source, name, msg)
+ sm = stringsplit(msg, " ");
+ if sm[1] == "/me" then
+ CancelEvent()
+ TriggerClientEvent('chatMessage', -1, "Me | " .. name, { 255, 0, 0 }, string.sub(msg,5))
+ end
+end)
+
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
\ No newline at end of file
diff --git a/resources/Commands/ooc.lua b/resources/Commands/ooc.lua
new file mode 100644
index 000000000..0b6b27d10
--- /dev/null
+++ b/resources/Commands/ooc.lua
@@ -0,0 +1,19 @@
+AddEventHandler('chatMessage', function(source, name, msg)
+ sm = stringsplit(msg, " ");
+ if sm[1] == "/ooc" then
+ CancelEvent()
+ TriggerClientEvent('chatMessage', -1, "OOC | " .. name, { 128, 128, 128 }, string.sub(msg,5))
+ end
+end)
+
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
\ No newline at end of file
diff --git a/resources/Commands/serveradmin.lua b/resources/Commands/serveradmin.lua
new file mode 100644
index 000000000..bf4823bf4
--- /dev/null
+++ b/resources/Commands/serveradmin.lua
@@ -0,0 +1,19 @@
+AddEventHandler('chatMessage', function(source, name, msg)
+ sm = stringsplit(msg, " ");
+ if sm[1] == "/serveradmin" then
+ CancelEvent()
+ TriggerClientEvent('chatMessage', -1, "🔧 Server Admin | " .. name, { 255, 0, 0 }, string.sub(msg,14))
+ end
+end)
+
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
diff --git a/resources/Commands/tweet.lua b/resources/Commands/tweet.lua
new file mode 100644
index 000000000..15cb7e056
--- /dev/null
+++ b/resources/Commands/tweet.lua
@@ -0,0 +1,19 @@
+AddEventHandler('chatMessage', function(source, name, msg)
+ sm = stringsplit(msg, " ");
+ if sm[1] == "/tweet" then
+ CancelEvent()
+ TriggerClientEvent('chatMessage', -1, "📶 Tweet | " .. name, { 87, 160, 211 }, string.sub(msg,7))
+ end
+end)
+
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
diff --git a/resources/ContainerForklift/.gitignore b/resources/ContainerForklift/.gitignore
new file mode 100644
index 000000000..6fd0a376d
--- /dev/null
+++ b/resources/ContainerForklift/.gitignore
@@ -0,0 +1,41 @@
+# Compiled Lua sources
+luac.out
+
+# luarocks build files
+*.src.rock
+*.zip
+*.tar.gz
+
+# Object files
+*.o
+*.os
+*.ko
+*.obj
+*.elf
+
+# Precompiled Headers
+*.gch
+*.pch
+
+# Libraries
+*.lib
+*.a
+*.la
+*.lo
+*.def
+*.exp
+
+# Shared objects (inc. Windows DLLs)
+*.dll
+*.so
+*.so.*
+*.dylib
+
+# Executables
+*.exe
+*.out
+*.app
+*.i*86
+*.x86_64
+*.hex
+
diff --git a/resources/ContainerForklift/LICENSE b/resources/ContainerForklift/LICENSE
new file mode 100644
index 000000000..f288702d2
--- /dev/null
+++ b/resources/ContainerForklift/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/resources/ContainerForklift/README.md b/resources/ContainerForklift/README.md
new file mode 100644
index 000000000..5f1fbe98a
--- /dev/null
+++ b/resources/ContainerForklift/README.md
@@ -0,0 +1 @@
+# ContainerForklift
\ No newline at end of file
diff --git a/resources/ContainerForklift/client.lua b/resources/ContainerForklift/client.lua
new file mode 100644
index 000000000..0d2123905
--- /dev/null
+++ b/resources/ContainerForklift/client.lua
@@ -0,0 +1,68 @@
+isAttached = false
+canSleep = false
+
+Citizen.CreateThread(function()
+ AddTextEntry("press_attach_vehicle", "Press ~INPUT_DETONATE~ to pick up this container up")
+ AddTextEntry("press_detach_vehicle", "Press ~INPUT_DETONATE~ to detach this container")
+ while true do
+ Citizen.Wait(10)
+ local ped = PlayerPedId()
+ if IsPedInAnyVehicle(ped, false) then
+ local veh = GetVehiclePedIsIn(ped, false)
+ if GetEntityModel(veh) == `handler` then -- Hash > Handler
+ local pedCoords = GetEntityCoords(ped, 0)
+ local objectId = GetClosestObjectOfType(pedCoords.x, pedCoords.y, pedCoords.z+5.0, 5.0, GetHashKey("prop_contr_03b_ld"), false)
+ if objectId ~= 0 then
+ if isAttached then
+
+ if IsEntityAttachedToHandlerFrame(veh, objectId) == false then
+ isAttached = false
+ Wait(2000)
+ end
+
+ DisplayHelpTextThisFrame("press_detach_vehicle")
+ else
+ if IsHandlerFrameAboveContainer(veh, objectId) == 1 then
+ DisplayHelpTextThisFrame("press_attach_vehicle")
+ end
+ end
+
+ if IsControlJustPressed(0, 47) then
+ if isAttached ~= true and IsHandlerFrameAboveContainer(veh, objectId) == 1 then
+ N_0x6a98c2ecf57fa5d4(veh, objectId) -- // Attach Container to Handler Frame (Thx Indra :3)
+ isAttached = true
+ else
+ DetachContainerFromHandlerFrame(veh)
+ isAttached = false
+ Wait(2000)
+ end
+ end
+ canSleep = false
+ else
+ if not isAttached then
+ canSleep = true
+ end
+ end
+ end
+ end
+ if canSleep then
+ Citizen.Wait(2000)
+ end
+ end
+end)
+
+RegisterCommand('handler', function(source, args, rawCommand)
+ local myPed = PlayerPedId()
+ local vehicle = GetHashKey('Handler')
+
+ RequestModel(vehicle)
+
+ while not HasModelLoaded(vehicle) do
+ Wait(1)
+ end
+
+ local coords = GetOffsetFromEntityInWorldCoords(GetPlayerPed(-1), 0, 5.0, 0)
+ local spawned_car = CreateVehicle(vehicle, coords, 64.55118,116.613,78.69622, true, false)
+ SetVehicleOnGroundProperly(spawned_car)
+ SetPedIntoVehicle(myPed, spawned_car, - 1)
+end)
\ No newline at end of file
diff --git a/resources/ContainerForklift/fxmanifest.lua b/resources/ContainerForklift/fxmanifest.lua
new file mode 100644
index 000000000..1eb2bd707
--- /dev/null
+++ b/resources/ContainerForklift/fxmanifest.lua
@@ -0,0 +1,7 @@
+fx_version 'adamant'
+author 'terbium'
+game "gta5"
+
+client_scripts {
+ 'client.lua'
+}
\ No newline at end of file
diff --git a/resources/Crouch/__resource.lua b/resources/Crouch/__resource.lua
new file mode 100644
index 000000000..ac74d64b9
--- /dev/null
+++ b/resources/Crouch/__resource.lua
@@ -0,0 +1,9 @@
+-- Crouch script written by WolfKnight
+-- Made for AfterLifeRP
+-- Version 1.0.1
+
+-- Set the resource manifest
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+-- Add a client script
+client_script 'client.lua'
\ No newline at end of file
diff --git a/resources/Crouch/client.lua b/resources/Crouch/client.lua
new file mode 100644
index 000000000..55fb23134
--- /dev/null
+++ b/resources/Crouch/client.lua
@@ -0,0 +1,31 @@
+local crouched = false
+
+Citizen.CreateThread( function()
+ while true do
+ Citizen.Wait( 1 )
+
+ local ped = GetPlayerPed( -1 )
+
+ if ( DoesEntityExist( ped ) and not IsEntityDead( ped ) ) then
+ DisableControlAction( 0, 36, true ) -- INPUT_DUCK
+
+ if ( not IsPauseMenuActive() ) then
+ if ( IsDisabledControlJustPressed( 0, 36 ) ) then
+ RequestAnimSet( "move_ped_crouched" )
+
+ while ( not HasAnimSetLoaded( "move_ped_crouched" ) ) do
+ Citizen.Wait( 100 )
+ end
+
+ if ( crouched == true ) then
+ ResetPedMovementClipset( ped, 0 )
+ crouched = false
+ elseif ( crouched == false ) then
+ SetPedMovementClipset( ped, "move_ped_crouched", 0.25 )
+ crouched = true
+ end
+ end
+ end
+ end
+ end
+end )
\ No newline at end of file
diff --git a/resources/Cruise-Control/__resource.lua b/resources/Cruise-Control/__resource.lua
new file mode 100644
index 000000000..f6508ed64
--- /dev/null
+++ b/resources/Cruise-Control/__resource.lua
@@ -0,0 +1,6 @@
+resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
+
+client_scripts {
+ 'config.lua',
+ 'client.lua'
+}
\ No newline at end of file
diff --git a/resources/Cruise-Control/client.lua b/resources/Cruise-Control/client.lua
new file mode 100644
index 000000000..166ccc74f
--- /dev/null
+++ b/resources/Cruise-Control/client.lua
@@ -0,0 +1,297 @@
+
+
+tc = false
+Citizen.CreateThread(function()
+ if Config.TCon == true then
+ while true do
+ Wait(20)
+ playerped = GetPlayerPed(-1)
+ if IsPedSittingInAnyVehicle(playerped) then
+ local veh = GetVehiclePedIsIn(playerped,false)
+ if playerped == GetPedInVehicleSeat(veh,-1) then
+ if IsControlPressed(0,Config.TCkey) then
+ tc = true
+ TC()
+ end
+ end
+ end
+ end
+ end
+end)
+
+
+cruse = false
+Citizen.CreateThread(function()
+ if Config.CCon == true then
+ while true do
+ Wait(20)
+ local playerped = GetPlayerPed(-1)
+ if IsPedSittingInAnyVehicle(playerped) then
+ local veh = GetVehiclePedIsIn(playerped,false)
+ if playerped == GetPedInVehicleSeat(veh,-1) then
+ if IsControlPressed(0,Config.CCkey) then
+ cruse = true
+ Cruse()
+ end
+ end
+ else
+ Wait(2500)
+ end
+ end
+ end
+end)
+
+
+
+function TC()
+ if not HasStreamedTextureDictLoaded('cctcimages') then
+ RequestStreamedTextureDict('cctcimages', true)
+ while not HasStreamedTextureDictLoaded('cctcimages') do
+ Wait(0)
+ end
+ end
+playerped = GetPlayerPed(-1)
+local veh = GetVehiclePedIsIn(playerped,false)
+local drivebias = GetVehicleHandlingFloat(veh,"CHandlingData", "fDriveBiasFront")
+
+oldvalue = GetVehicleHandlingFloat(vehicle,'CHandlingData','fLowSpeedTractionLossMult')
+repeat
+Wait(0)
+if IsPedGettingIntoAVehicle(playerped) then
+Wait(2000)
+veh = GetVehiclePedIsIn(playerped,false)
+drivebias = GetVehicleHandlingFloat(veh,"CHandlingData", "fDriveBiasFront")
+oldvalue = GetVehicleHandlingFloat(vehicle,'CHandlingData','fLowSpeedTractionLossMult')
+end
+
+
+if IsPedInAnyVehicle(playerped) then
+ if tcacting == true then
+ -- SetVehicleHandlingField(vehicle,'CHandlingData','fLowSpeedTractionLossMult',newvalue5)
+ --SetVehicleEngineTorqueMultiplier(veh, var1)
+ else
+ SetVehicleHandlingField(vehicle,'CHandlingData','fLowSpeedTractionLossMult',oldvalue)
+ SetVehicleEngineTorqueMultiplier(veh, 1.0)
+ end
+var1 = 1.0
+mod1 = 0.0
+newvalue5 = oldvalue
+
+tcacting = false
+
+
+wh1 = GetVehicleWheelSpeed(veh,0)
+wh1 = (GetVehicleWheelSpeed(veh,1) + wh1) / 2
+wh2 = (GetVehicleWheelSpeed(veh,1) + wh1) / 2
+wh3 = GetVehicleWheelSpeed(veh,2)
+wh4 = GetVehicleWheelSpeed(veh,3)
+throttle = 0.0
+wheelave = (GetVehicleWheelSpeed(veh,0) + GetVehicleWheelSpeed(veh,1) + GetVehicleWheelSpeed(veh,2) + GetVehicleWheelSpeed(veh,3)) / 4
+if Config.OnScreendisplayTC == true then
+DrawRect(UITC.x + 0.01 ,UITC.y + 0.04 ,0.05,0.01,0,0,0,255)
+end
+steerang = GetVehicleSteeringAngle(veh)
+ if steerang > 1 then
+ mod1 = steerang / 20
+ elseif steerang < -1.0 then
+ steerang = steerang - steerang*2
+ mod1 = steerang / 20
+ end
+ if wh1 > (wheelave + 0.05 + mod1) then
+ var1 = 1.0 / ((wh1 - (wheelave + 0.00 + mod1) )- 0.04) *Config.action
+ newvalue5 = oldvalue * var1
+ tcacting = true
+ elseif wh2 > (wheelave + 0.05 + mod1) then
+ var1 = 1.0 / ((wh2 - (wheelave + 0.00 + mod1) )- 0.04) *Config.action
+ newvalue5 = oldvalue * var1
+ tcacting = true
+ elseif wh3 > (wheelave + 0.05 + mod1) then
+ var1 = 1.0 / ((wh3 - (wheelave + 0.00 + mod1) )- 0.04) *Config.action
+ newvalue5 = oldvalue * var1
+ tcacting = true
+ elseif wh4 > (wheelave + 0.05 + mod1) then
+ var1 = 1.0 / ((wh4 - (wheelave + 0.00 + mod1) )- 0.04) *Config.action
+ newvalue5 = oldvalue * var1
+ tcacting = true
+ end
+ if tcacting == true then
+ if newvalue5 > 0.0 and newvalue5 < oldvalue then
+ SetVehicleHandlingField(vehicle,'CHandlingData','fLowSpeedTractionLossMult',newvalue5)
+ newvalue5 = oldvalue * var1
+ elseif newvalue5 > oldvalue then
+ newvalue5 = oldvalue * var1
+ SetVehicleHandlingField(vehicle,'CHandlingData','fLowSpeedTractionLossMult',newvalue5)
+ elseif newvalue5 < 0.0 then
+ newvalue5 = 0.01
+ SetVehicleHandlingField(vehicle,'CHandlingData','fLowSpeedTractionLossMult',newvalue5)
+ end
+ if var1 < 1.0 then
+ SetVehicleEngineTorqueMultiplier(veh, var1)
+ if var1 < 0.98 then
+ drawbox(UITC.x - 0.01 ,UITC.y + 0.04,0,255)
+ end
+ if var1 < 0.7 then
+ drawbox(UITC.x - 0.00 ,UITC.y + 0.04 ,100,200)
+ end
+ if var1 < 0.5 then
+ drawbox(UITC.x + 0.01 ,UITC.y + 0.04 ,150,200)
+ end
+ if var1 < 0.3 then
+ drawbox(UITC.x + 0.02 ,UITC.y + 0.04 ,150,100)
+ end
+ if var1 < 0.2 then
+ drawbox(UITC.x + 0.03 ,UITC.y + 0.04,233,0)
+ end
+ else
+ var1 = 1.0
+ SetVehicleEngineTorqueMultiplier(veh, var1)
+ end
+
+ end
+ if Config.OnScreenTextTC then
+ drawTxta(UITC.x - 0.0 ,UITC.y + 0.0 ,0.55,"~w~TC ~g~ON", 255,50,0,255)
+ end
+ if Config.SimpleTCimmage then
+ if tcacting == true then
+ DrawSprite('cctcimages','SRTC1',UITC.x + 0.04 ,UITC.y + 0.02,0.014,0.024,0.0,255,255,255,200)
+else
+ DrawSprite('cctcimages','SRTC2',UITC.x + 0.04 ,UITC.y + 0.02,0.014,0.024,0.0,255,255,255,200)
+ end
+ end
+ if Config.Watermark then
+ drawTxtb(UITC.x - 0.01 ,UITC.y + 0.041 ,0.27,"By DOJSRC", 255,255,255,255)
+ end
+ if IsControlJustPressed(0,Config.TCkey) or IsControlJustPressed(0,Config.TCkey) then
+ SetVehicleMaxSpeed(veh,300.0)
+ tc = false
+ elseif IsPedInAnyVehicle(playerped,true) == false and Config.enableTCtoggle == false then
+ tc = false
+ end
+end
+until tc == false
+SetVehicleHandlingField(vehicle,'CHandlingData','fLowSpeedTractionLossMult',oldvalue)
+Wait(500)
+end
+
+function drawbox(x,y,r,g)
+ if Config.OnScreendisplayTC == true then
+
+ DrawRect(x,y,0.01,0.01,r,g,0,255)
+ end
+end
+
+function Cruse()
+ if not HasStreamedTextureDictLoaded('cctcimages') then
+ RequestStreamedTextureDict('cctcimages', true)
+ while not HasStreamedTextureDictLoaded('cctcimages') do
+ Wait(0)
+ end
+ end
+print"starting CC"
+ local playerped = PlayerPedId()
+ local veh = GetVehiclePedIsIn(playerped, false)
+ local vel = GetVehicleWheelSpeed(veh, 1)
+
+ if vel > Config.Minspeed and vel < Config.Maxspeed then
+ local speed = vel * 2.237
+ repeat
+ Wait(0)
+ local vel2 = GetVehicleWheelSpeed(veh, 1)
+ if vel2 < 0.001 then
+ vel2 = 0.01
+ end
+
+ local diff = vel + 0.2 - vel2
+ local throttle = 0.2
+ if diff > 1.0 then
+ throttle = 1.0
+ else
+ throttle = diff
+ end
+
+ if not IsControlPressed(0, 76) and throttle > 0.01 then
+ SetControlNormal(0, 71, throttle)
+ end
+
+ if throttle < 0.001 then
+ throttle = 0.0
+ end
+
+ local curspeed = GetVehicleWheelSpeed(veh, 1) * 2.237
+ speed = vel * 2.237
+
+ if Config.OnScreenTextCC then
+ drawTxta(UI.x, UI.y - 0.12, 0.45, "~r~Target Speed: ~w~" ..(round(speed,1)).. " MPH", 255, 50, 0, 255)
+ drawTxta(UI.x, UI.y - 0.095, 0.45, "~r~Current speed: ~w~" ..round(curspeed,1).. " MPH", 255, 50, 0, 255)
+ drawTxta(UI.x, UI.y - 0.07, 0.45, "~r~Throttle %: ~w~" ..round((throttle*100)), 255, 50, 0, 255)
+ end
+ if Config.OnScreendisplayCC then
+ local sr = toint((throttle*255)) - 10
+ local sg = 255 - sr + 10
+ sg = toint(sg)
+ DrawRect(UI.x + 0.06, UI.y - 0.03, throttle/12, 0.01, sr, sg, 0, 255)
+ end
+ if Config.Watermark2 then
+ drawTxtb(UI.x + 0.01 ,UI.y - 0.03 ,0.27,"By DOJSRC", 255,255,255,255)
+ end
+ if Config.SimpleCCimmage then
+ DrawSprite('cctcimages','SRCC1',UI.x - 0.0 ,UI.y - 0.01,0.023,0.04,0.0,255,255,255,200)
+ end
+
+
+ if IsControlPressed(0, Config.CCkey) and GetVehicleWheelSpeed(veh,1) < Config.Maxspeed then
+ vel = GetVehicleWheelSpeed(veh,1)
+ end
+
+ if IsControlJustPressed(0, 8) or IsControlJustPressed(0, Config.CCkey) then
+ SetVehicleMaxSpeed(veh, 300.0)
+ cruse = false
+ elseif IsPedInAnyVehicle(playerped,true) == false then
+ cruse = false
+ end
+ until cruse == false
+ Wait(500)
+ end
+ end
+
+function round(num, numDecimalPlaces)
+ local mult = 10^(numDecimalPlaces or 0)
+ if num >= 0 then return math.floor(num * mult + 0.5) / mult
+ else return math.ceil(num * mult - 0.5) / mult end
+end
+
+function toint(n)
+ local s = tostring(n)
+ local i, j = s:find('%.')
+ if i then
+ return tonumber(s:sub(1, i-1))
+ else
+ return n
+ end
+end
+
+
+function drawTxta(x, y, scale, text, r, g, b, a)
+ SetTextFont(4)
+ SetTextProportional(0)
+ SetTextScale(scale, scale)
+ SetTextColour(r, g, b, a)
+ SetTextDropShadow(0, 0, 0, 0,255)
+ SetTextEdge(1, 0, 0, 0, 255)
+ SetTextDropShadow()
+ SetTextOutline()
+ SetTextEntry("STRING")
+ AddTextComponentString(text)
+ DrawText(x, y)
+
+end
+
+function drawTxtb(x, y, scale, text, r, g, b, a)
+ SetTextFont(4)
+ SetTextProportional(0)
+ SetTextScale(scale, scale)
+ SetTextColour(r, g, b, a)
+ SetTextEntry("STRING")
+ AddTextComponentString(text)
+ DrawText(x, y)
+end
diff --git a/resources/Cruise-Control/config.lua b/resources/Cruise-Control/config.lua
new file mode 100644
index 000000000..5ba0deae7
--- /dev/null
+++ b/resources/Cruise-Control/config.lua
@@ -0,0 +1,46 @@
+Config = {}
+
+Config.TCon = false --- Enable/Disable Traction Control
+
+Config.CCon = true --- Enable/Disable Cruise Control
+
+Config.TCkey = 20 --- Traction Control Key (Default Z) // https://docs.fivem.net/game-references/controls/
+
+Config.CCkey = 246 --- Cruise Control Key (Default Y) // https://docs.fivem.net/game-references/controls/
+
+Config.Maxspeed = 68.0 --- In meters per second 34 = 75mph
+
+Config.Minspeed = 5.0 --- In meters per second 0.1 = 0.2mph
+
+Config.action = 0.2 --- How much the TC wil try to stop you sliding Lower = more help
+
+Config.OnScreenTextCC = true --- Enable/Disable On-Screen text
+
+Config.OnScreendisplayCC = false --- Enable/Disable On-Screen display/colours
+
+Config.SimpleCCimmage = false --- a small symbol
+
+Config.OnScreenTextTC = false --- Enable/Disable On-Screen text
+
+Config.OnScreendisplayTC = false --- Enable/Disable On-Screen display/colours
+
+Config.SimpleTCimmage = false --- a small symbol
+
+Config.Watermark = false --- Enable/Disable Watermark
+
+Config.Watermark2 = false --- Enable/Disable Watermark
+
+Config.enableTCtoggle = false
+
+ UITC = {
+
+ x = 0.20 , -- Traction Control Screen Coords 0.0-1.0 left to right
+ y = 0.720 , -- Traction Control Screen Coords 0.0-1.0 = top to bottom
+
+}
+ UI = {
+
+ x = 0.015 , -- Cruise Control Screen Coords 0.0-1.0 left to right
+ y = 0.84 , -- Cruise Control Screen Coords 0.0-1.0 = top to bottom
+
+}
diff --git a/resources/Cruise-Control/stream/cctcimages.ytd b/resources/Cruise-Control/stream/cctcimages.ytd
new file mode 100644
index 000000000..495e5aa14
--- /dev/null
+++ b/resources/Cruise-Control/stream/cctcimages.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:720232180a8b41ca48c81819886441d663b7a1a09d12b771654143e4e923a55c
+size 5315
diff --git a/resources/Custom-Commands/__resource.lua b/resources/Custom-Commands/__resource.lua
new file mode 100644
index 000000000..f7ed46d88
--- /dev/null
+++ b/resources/Custom-Commands/__resource.lua
@@ -0,0 +1,9 @@
+-----------------------------------------------------------------
+-----------------------------------------------------------------
+--------------------Made by ServerCopMug#0392--------------------
+----------------Customizable-Response-Commands-------------------
+-----------------------------------------------------------------
+
+----DON'T NEED TO TOUCH THIS---
+
+client_script "client.lua"
\ No newline at end of file
diff --git a/resources/Custom-Commands/client.lua b/resources/Custom-Commands/client.lua
new file mode 100644
index 000000000..51610572d
--- /dev/null
+++ b/resources/Custom-Commands/client.lua
@@ -0,0 +1,44 @@
+-----------------------------------------------------------------
+-----------------------------------------------------------------
+--------------------Made by ServerCopMug#0392--------------------
+----------------Customizable-Response-Commands-------------------
+-----------------------------------------------------------------
+
+
+--------**To add more links copy and paste the lines below**--------
+--------**To change the colors of the message follow this page: https://forum.cfx.re/t/chat-formatting-colors-bold-underline/67641**--------
+
+--------------------RESPONSE COMMANDS--------------------------
+
+RegisterCommand("discord", function(source, args, rawCommand) -------- replace "discord" with any other command you want **DON'T INCLUDE /**
+ TriggerEvent("chatMessage", "^*^8[Our Discord:] ^7https://discord.gg/2XvwvgR") ------- change message in the ""
+end)
+
+--RegisterCommand("cad", function(source, args, rawCommand) ------- replace "cad" with any other command you want DON'T INCLUDE /
+-- TriggerEvent("chatMessage", "^*^8[Our CAD:] ^7https://cad.elite-gaming.co.uk/") ------- change message in the ""
+--end)
+
+RegisterCommand("website", function(source, args, rawCommand) ------- replace "website" with any other command you want DON'T INCLUDE /
+ TriggerEvent("chatMessage", "^*^8[Our Website:] ^7https://elite-gaming.co.uk/") ------- change message in the ""
+end)
+
+RegisterCommand("forum", function(source, args, rawCommand) ------- replace "website" with any other command you want DON'T INCLUDE /
+ TriggerEvent("chatMessage", "^*^8[Our Forum:] ^7https://forum.elite-gaming.co.uk/") ------- change message in the ""
+end)
+
+--RegisterCommand("commands", function(source, args, rawCommand) ------- replace "commands" with any other command you want DON'T INCLUDE /
+-- TriggerEvent("chatMessage", "^*^8[Commands:] ^7/website, /cad, /discord, /cars, /info, /help") ------- change message in the ""
+--end)
+
+--RegisterCommand("cars", function(source, args, rawCommand) ------- replace "cars" with any other command you want DON'T INCLUDE /
+-- TriggerEvent("chatMessage", "^*^8[Custom Car Spawn Codes:] ^7CAR1, CAR2, CAR3, CAR4, CAR5") ------- change message in the ""
+--end)
+
+--RegisterCommand("info", function(source, args, rawCommand) ------- replace "info" with any other command you want DON'T INCLUDE /
+-- TriggerEvent("chatMessage", "^*^8[Server Info:] ^7Some server info...") ------- change message in the ""
+--end)
+
+--RegisterCommand("help", function(source, args, rawCommand) ------- replace "help" with any other command you want DON'T INCLUDE /
+-- TriggerEvent("chatMessage", "^*^8[Help:] ^7Some help...") ------- change message in the ""
+--end)
+
diff --git a/resources/DeathCam/__resource.lua b/resources/DeathCam/__resource.lua
new file mode 100644
index 000000000..45e1666c5
--- /dev/null
+++ b/resources/DeathCam/__resource.lua
@@ -0,0 +1,6 @@
+resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
+
+client_scripts {
+ 'config.lua',
+ 'client.lua'
+}
diff --git a/resources/DeathCam/client.lua b/resources/DeathCam/client.lua
new file mode 100644
index 000000000..2469ae67b
--- /dev/null
+++ b/resources/DeathCam/client.lua
@@ -0,0 +1,164 @@
+--------------------------------------------------
+------ DEATH CAM FOR FIVEM MADE BY KIMINAZE ------
+------ This script does let you control the ------
+------ camera after you have died. ------
+--------------------------------------------------
+
+--------------------------------------------------
+------------------- VARIABLES --------------------
+--------------------------------------------------
+
+-- main variables
+local cam = nil
+
+local isDead = false
+
+local angleY = 0.0
+local angleZ = 0.0
+
+
+--------------------------------------------------
+---------------------- LOOP ----------------------
+--------------------------------------------------
+Citizen.CreateThread(function()
+ while true do
+ Citizen.Wait(1)
+
+ -- process cam controls if cam exists and player is dead
+ if (cam and isDead) then
+ ProcessCamControls()
+ end
+ end
+end)
+
+Citizen.CreateThread(function()
+ while true do
+ Citizen.Wait(500)
+
+ if (not isDead and NetworkIsPlayerActive(PlayerId()) and IsPedFatallyInjured(PlayerPedId())) then
+ isDead = true
+
+ StartDeathCam()
+ elseif (isDead and NetworkIsPlayerActive(PlayerId()) and not IsPedFatallyInjured(PlayerPedId())) then
+ isDead = false
+
+ EndDeathCam()
+ end
+ end
+end)
+
+
+
+--------------------------------------------------
+------------------- FUNCTIONS --------------------
+--------------------------------------------------
+
+-- initialize camera
+function StartDeathCam()
+ ClearFocus()
+
+ local playerPed = PlayerPedId()
+
+ cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", GetEntityCoords(playerPed), 0, 0, 0, GetGameplayCamFov())
+
+ SetCamActive(cam, true)
+ RenderScriptCams(true, true, 1000, true, false)
+end
+
+-- destroy camera
+function EndDeathCam()
+ ClearFocus()
+
+ RenderScriptCams(false, false, 0, true, false)
+ DestroyCam(cam, false)
+
+ cam = nil
+end
+
+-- process camera controls
+function ProcessCamControls()
+ local playerPed = PlayerPedId()
+ local playerCoords = GetEntityCoords(playerPed)
+
+ -- disable 1st person as the 1st person camera can cause some glitches
+ DisableFirstPersonCamThisFrame()
+
+ -- calculate new position
+ local newPos = ProcessNewPosition()
+
+ -- focus cam area
+ SetFocusArea(newPos.x, newPos.y, newPos.z, 0.0, 0.0, 0.0)
+
+ -- set coords of cam
+ SetCamCoord(cam, newPos.x, newPos.y, newPos.z)
+
+ -- set rotation
+ PointCamAtCoord(cam, playerCoords.x, playerCoords.y, playerCoords.z + 0.5)
+end
+
+function ProcessNewPosition()
+ local mouseX = 0.0
+ local mouseY = 0.0
+
+ -- keyboard
+ if (IsInputDisabled(0)) then
+ -- rotation
+ mouseX = GetDisabledControlNormal(1, 1) * 8.0
+ mouseY = GetDisabledControlNormal(1, 2) * 8.0
+
+ -- controller
+ else
+ -- rotation
+ mouseX = GetDisabledControlNormal(1, 1) * 1.5
+ mouseY = GetDisabledControlNormal(1, 2) * 1.5
+ end
+
+ angleZ = angleZ - mouseX -- around Z axis (left / right)
+ angleY = angleY + mouseY -- up / down
+ -- limit up / down angle to 90°
+ if (angleY > 89.0) then angleY = 89.0 elseif (angleY < -89.0) then angleY = -89.0 end
+
+ local pCoords = GetEntityCoords(PlayerPedId())
+
+ local behindCam = {
+ x = pCoords.x + ((Cos(angleZ) * Cos(angleY)) + (Cos(angleY) * Cos(angleZ))) / 2 * (Cfg.radius + 0.5),
+ y = pCoords.y + ((Sin(angleZ) * Cos(angleY)) + (Cos(angleY) * Sin(angleZ))) / 2 * (Cfg.radius + 0.5),
+ z = pCoords.z + ((Sin(angleY))) * (Cfg.radius + 0.5)
+ }
+ local rayHandle = StartShapeTestRay(pCoords.x, pCoords.y, pCoords.z + 0.5, behindCam.x, behindCam.y, behindCam.z, -1, PlayerPedId(), 0)
+ local a, hitBool, hitCoords, surfaceNormal, entityHit = GetShapeTestResult(rayHandle)
+
+ local maxRadius = Cfg.radius
+ if (hitBool and Vdist(pCoords.x, pCoords.y, pCoords.z + 0.5, hitCoords) < Cfg.radius + 0.5) then
+ maxRadius = Vdist(pCoords.x, pCoords.y, pCoords.z + 0.5, hitCoords)
+ end
+
+ local offset = {
+ x = ((Cos(angleZ) * Cos(angleY)) + (Cos(angleY) * Cos(angleZ))) / 2 * maxRadius,
+ y = ((Sin(angleZ) * Cos(angleY)) + (Cos(angleY) * Sin(angleZ))) / 2 * maxRadius,
+ z = ((Sin(angleY))) * maxRadius
+ }
+
+ local pos = {
+ x = pCoords.x + offset.x,
+ y = pCoords.y + offset.y,
+ z = pCoords.z + offset.z
+ }
+
+
+ -- Debug x,y,z axis
+ --DrawMarker(1, pCoords.x, pCoords.y, pCoords.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03, 0.03, 5.0, 0, 0, 255, 255, false, false, 2, false, 0, false)
+ --DrawMarker(1, pCoords.x, pCoords.y, pCoords.z, 0.0, 0.0, 0.0, 0.0, 90.0, 0.0, 0.03, 0.03, 5.0, 255, 0, 0, 255, false, false, 2, false, 0, false)
+ --DrawMarker(1, pCoords.x, pCoords.y, pCoords.z, 0.0, 0.0, 0.0, -90.0, 0.0, 0.0, 0.03, 0.03, 5.0, 0, 255, 0, 255, false, false, 2, false, 0, false)
+
+ return pos
+end
+
+--XAchse Westen Osten
+--Yachse Norden Süden
+--ZAchse oben unten
+
+--gegenkathete = x
+--ankathete = y
+--hypotenuse = 1
+--alpha = GetCamRot(cam).z
diff --git a/resources/DeathCam/config.lua b/resources/DeathCam/config.lua
new file mode 100644
index 000000000..796e9b690
--- /dev/null
+++ b/resources/DeathCam/config.lua
@@ -0,0 +1,10 @@
+--------------------------------------------------
+------ DEATH CAM FOR FIVEM MADE BY KIMINAZE ------
+------ This script does let you control the ------
+------ camera after you have died. ------
+--------------------------------------------------
+
+Cfg = {}
+
+-- maximum radius the camera will orbit at (in meters)
+Cfg.radius = 5.0
diff --git a/resources/Delete-All-Vehicles/LICENSE b/resources/Delete-All-Vehicles/LICENSE
new file mode 100644
index 000000000..f288702d2
--- /dev/null
+++ b/resources/Delete-All-Vehicles/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/resources/Delete-All-Vehicles/__resource.lua b/resources/Delete-All-Vehicles/__resource.lua
new file mode 100644
index 000000000..2bd5f05cb
--- /dev/null
+++ b/resources/Delete-All-Vehicles/__resource.lua
@@ -0,0 +1,15 @@
+--------------------------------------
+------Created By Whit3Xlightning------
+--https://github.com/Whit3XLightning--
+--------------------------------------
+
+server_script {
+ 'config.lua',
+ 'server/server.lua'
+}
+client_scripts {
+ 'config.lua',
+ 'client/client.lua',
+ 'client/entityiter.lua'
+}
+
diff --git a/resources/Delete-All-Vehicles/client/client.lua b/resources/Delete-All-Vehicles/client/client.lua
new file mode 100644
index 000000000..13db3e12f
--- /dev/null
+++ b/resources/Delete-All-Vehicles/client/client.lua
@@ -0,0 +1,20 @@
+--------------------------------------
+------Created By Whit3Xlightning------
+--https://github.com/Whit3XLightning--
+--------------------------------------
+
+RegisterNetEvent("wld:delallveh")
+AddEventHandler("wld:delallveh", function ()
+ local totalvehc = 0
+ local notdelvehc = 0
+
+ for vehicle in EnumerateVehicles() do
+ if (not IsPedAPlayer(GetPedInVehicleSeat(vehicle, -1))) then SetVehicleHasBeenOwnedByPlayer(vehicle, false) SetEntityAsMissionEntity(vehicle, false, false) DeleteVehicle(vehicle)
+ if (DoesEntityExist(vehicle)) then DeleteVehicle(vehicle) end
+ if (DoesEntityExist(vehicle)) then notdelvehc = notdelvehc + 1 end
+ end
+ totalvehc = totalvehc + 1
+ end
+ local vehfrac = totalvehc - notdelvehc .. " / " .. totalvehc
+ Citizen.Trace("You just deleted "..vehfrac.." vehicles in the server!")
+end)
\ No newline at end of file
diff --git a/resources/Delete-All-Vehicles/client/entityiter.lua b/resources/Delete-All-Vehicles/client/entityiter.lua
new file mode 100644
index 000000000..71e9ee235
--- /dev/null
+++ b/resources/Delete-All-Vehicles/client/entityiter.lua
@@ -0,0 +1,79 @@
+--[[The MIT License (MIT)
+
+Copyright (c) 2017 IllidanS4
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+]]
+
+local entityEnumerator = {
+ __gc = function(enum)
+ if enum.destructor and enum.handle then
+ enum.destructor(enum.handle)
+ end
+ enum.destructor = nil
+ enum.handle = nil
+ end
+}
+
+local function EnumerateEntities(initFunc, moveFunc, disposeFunc)
+ return coroutine.wrap(function()
+ local iter, id = initFunc()
+ if not id or id == 0 then
+ disposeFunc(iter)
+ return
+ end
+
+ local enum = {handle = iter, destructor = disposeFunc}
+ setmetatable(enum, entityEnumerator)
+
+ local next = true
+ repeat
+ coroutine.yield(id)
+ next, id = moveFunc(iter)
+ until not next
+
+ enum.destructor, enum.handle = nil, nil
+ disposeFunc(iter)
+ end)
+end
+
+function EnumerateObjects()
+ return EnumerateEntities(FindFirstObject, FindNextObject, EndFindObject)
+end
+
+function EnumeratePeds()
+ return EnumerateEntities(FindFirstPed, FindNextPed, EndFindPed)
+end
+
+function EnumerateVehicles()
+ return EnumerateEntities(FindFirstVehicle, FindNextVehicle, EndFindVehicle)
+end
+
+function EnumeratePickups()
+ return EnumerateEntities(FindFirstPickup, FindNextPickup, EndFindPickup)
+end
+
+--[[Usage:
+for ped in EnumeratePeds() do
+
+end
+]]
\ No newline at end of file
diff --git a/resources/Delete-All-Vehicles/config.lua b/resources/Delete-All-Vehicles/config.lua
new file mode 100644
index 000000000..8acd3a4cf
--- /dev/null
+++ b/resources/Delete-All-Vehicles/config.lua
@@ -0,0 +1,16 @@
+--------------------------------------
+------Created By Whit3Xlightning------
+--https://github.com/Whit3XLightning--
+--------------------------------------
+
+Config = {}
+
+Config = {
+ commandName = "delallveh",
+ -- This is the command that you will type into chat to execute the script.
+
+ restricCommand = true
+ -- Setting this to false will allow anyone in the server to use the command.
+ -- If you set it to true you will need to add a ace perm to allow people to use it.
+ -- Such as add_ace [GROUP] command.[commandName] allow
+}
\ No newline at end of file
diff --git a/resources/Delete-All-Vehicles/server/server.lua b/resources/Delete-All-Vehicles/server/server.lua
new file mode 100644
index 000000000..0cde7adc2
--- /dev/null
+++ b/resources/Delete-All-Vehicles/server/server.lua
@@ -0,0 +1,6 @@
+--------------------------------------
+------Created By Whit3Xlightning------
+--https://github.com/Whit3XLightning--
+--------------------------------------
+
+RegisterCommand(Config.commandName, function(source, args, rawCommand) TriggerClientEvent("wld:delallveh", -1) end, Config.restricCommand)
diff --git a/resources/Delete-Gun/dog-c.lua b/resources/Delete-Gun/dog-c.lua
new file mode 100644
index 000000000..f27e3e34e
--- /dev/null
+++ b/resources/Delete-Gun/dog-c.lua
@@ -0,0 +1,84 @@
+-- Created by @murfasa https://forum.cfx.re/u/murfasa
+
+local dogtoggle = false
+local allowed = false
+local passAce = false
+local onAim = GetConvar("dog.onAim", "true")
+local useAce = GetConvar("dog.useAce", "false")
+
+-- Functions --
+Citizen.CreateThread(function()
+ if useAce == "true" then
+ TriggerServerEvent("dog:checkRole")
+ end
+end)
+
+RegisterNetEvent("dog:returnCheck")
+AddEventHandler("dog:returnCheck", function(check)
+ passAce = check
+end)
+
+local function checkRole()
+ if useAce == "false" then
+ allowed = true
+ return allowed
+ end
+ if passAce == true then
+ allowed = true
+ return allowed
+ end
+end
+
+local function getEntity(player) -- function To Get Entity Player Is Aiming At
+ local _, entity = GetEntityPlayerIsFreeAimingAt(player)
+ return entity
+end
+
+local function aimCheck(player) -- function to check config value onAim. If it's off, then
+ if onAim == "true" then
+ return true
+ else
+ return IsPedShooting(player)
+ end
+end
+
+local function drawNotification(text) -- draws a notification box
+ SetNotificationTextEntry("STRING")
+ AddTextComponentString(text)
+ DrawNotification(false, false)
+end
+-- Functions --
+
+
+RegisterCommand("delgun", function()
+ checkRole()
+ if allowed == true then
+ if dogtoggle == false then
+ dogtoggle = true
+ drawNotification("~g~Delete Object Gun Enabled!")
+ else
+ dogtoggle = false
+ drawNotification("~b~Delete Object Gun Disabled!")
+ end
+ else
+ drawNotification("~r~You have insufficient permissions to activate the Delete Object Gun.")
+ end
+end, false)
+
+
+Citizen.CreateThread(function()
+ while true do
+ Citizen.Wait(0)
+ if dogtoggle then
+ if IsPlayerFreeAiming(PlayerId()) then
+ local entity = getEntity(PlayerId())
+ if GetEntityType(entity) == 2 or 3 then
+ if aimCheck(GetPlayerPed(-1)) then
+ SetEntityAsMissionEntity(entity, true, true)
+ DeleteEntity(entity)
+ end
+ end
+ end
+ end
+ end
+end)
\ No newline at end of file
diff --git a/resources/Delete-Gun/dog-s.lua b/resources/Delete-Gun/dog-s.lua
new file mode 100644
index 000000000..2e8d1dfee
--- /dev/null
+++ b/resources/Delete-Gun/dog-s.lua
@@ -0,0 +1,10 @@
+-- Created by @murfasa https://forum.cfx.re/u/murfasa
+
+RegisterServerEvent("dog:checkRole")
+AddEventHandler("dog:checkRole", function()
+ if IsPlayerAceAllowed(source, "dog.delgun") then
+ TriggerClientEvent("dog:returnCheck", source, true)
+ else
+ TriggerClientEvent("dog:returnCheck", source, false)
+ end
+end)
\ No newline at end of file
diff --git a/resources/Delete-Gun/dogconfig.cfg b/resources/Delete-Gun/dogconfig.cfg
new file mode 100644
index 000000000..5d063e77f
--- /dev/null
+++ b/resources/Delete-Gun/dogconfig.cfg
@@ -0,0 +1,4 @@
+setr dog.onAim "true" # change to false if you want to delete object on gunshot rather than on aim
+
+setr dog.useAce "true" # change to true in order to use Ace permissions
+add_ace group.admin dog.delgun allow # if using ace perms, allows delgun command for admin group. change as you need
\ No newline at end of file
diff --git a/resources/Delete-Gun/fxmanifest.lua b/resources/Delete-Gun/fxmanifest.lua
new file mode 100644
index 000000000..4e58bad8f
--- /dev/null
+++ b/resources/Delete-Gun/fxmanifest.lua
@@ -0,0 +1,6 @@
+-- Created by @murfasa https://forum.cfx.re/u/murfasa
+fx_version "bodacious"
+game "gta5"
+
+client_script "dog-c.lua"
+server_script "dog-s.lua"
\ No newline at end of file
diff --git a/resources/Delete-Vehicle/__resource.lua b/resources/Delete-Vehicle/__resource.lua
new file mode 100644
index 000000000..6199fed32
--- /dev/null
+++ b/resources/Delete-Vehicle/__resource.lua
@@ -0,0 +1,12 @@
+-- Delete Vehicle script written by WolfKnight
+-- With credit to Mr.Scammer, thers, Zanax and Konijima!
+-- Version 1.0.5
+
+-- Set the resource manifest
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+-- Add a client script
+client_script "client.lua"
+
+-- Add a server script
+server_script "server.lua"
\ No newline at end of file
diff --git a/resources/Delete-Vehicle/client.lua b/resources/Delete-Vehicle/client.lua
new file mode 100644
index 000000000..996535945
--- /dev/null
+++ b/resources/Delete-Vehicle/client.lua
@@ -0,0 +1,70 @@
+-- Register a network event
+RegisterNetEvent( 'wk:deleteVehicle' )
+
+-- The distance to check in front of the player for a vehicle
+-- Distance is in GTA units, which are quite big
+local distanceToCheck = 5.0
+
+-- Add an event handler for the deleteVehicle event.
+-- Gets called when a user types in /dv in chat (see server.lua)
+AddEventHandler( 'wk:deleteVehicle', function()
+ local ped = GetPlayerPed( -1 )
+
+ if ( DoesEntityExist( ped ) and not IsEntityDead( ped ) ) then
+ local pos = GetEntityCoords( ped )
+
+ if ( IsPedSittingInAnyVehicle( ped ) ) then
+ local vehicle = GetVehiclePedIsIn( ped, false )
+
+ if ( GetPedInVehicleSeat( vehicle, -1 ) == ped ) then
+ SetEntityAsMissionEntity( vehicle, true, true )
+ deleteCar( vehicle )
+
+ if ( DoesEntityExist( vehicle ) ) then
+ ShowNotification( "~r~Unable to delete vehicle, try again." )
+ else
+ ShowNotification( "Vehicle deleted." )
+ end
+ else
+ ShowNotification( "You must be in the driver's seat!" )
+ end
+ else
+ local playerPos = GetEntityCoords( ped, 1 )
+ local inFrontOfPlayer = GetOffsetFromEntityInWorldCoords( ped, 0.0, distanceToCheck, 0.0 )
+ local vehicle = GetVehicleInDirection( playerPos, inFrontOfPlayer )
+
+ if ( DoesEntityExist( vehicle ) ) then
+ SetEntityAsMissionEntity( vehicle, true, true )
+ deleteCar( vehicle )
+
+ if ( DoesEntityExist( vehicle ) ) then
+ ShowNotification( "~r~Unable to delete vehicle, try again." )
+ else
+ ShowNotification( "Vehicle deleted." )
+ end
+ else
+ ShowNotification( "You must be in or near a vehicle to delete it." )
+ end
+ end
+ end
+end )
+
+-- Delete car function borrowed frtom Mr.Scammer's model blacklist, thanks to him!
+function deleteCar( entity )
+ Citizen.InvokeNative( 0xEA386986E786A54F, Citizen.PointerValueIntInitialized( entity ) )
+end
+
+-- Gets a vehicle in a certain direction
+-- Credit to Konijima
+function GetVehicleInDirection( coordFrom, coordTo )
+ local rayHandle = CastRayPointToPoint( coordFrom.x, coordFrom.y, coordFrom.z, coordTo.x, coordTo.y, coordTo.z, 10, GetPlayerPed( -1 ), 0 )
+ local _, _, _, _, vehicle = GetRaycastResult( rayHandle )
+ return vehicle
+end
+
+-- Shows a notification on the player's screen
+function ShowNotification( text )
+ SetNotificationTextEntry( "STRING" )
+ AddTextComponentString( text )
+ DrawNotification( false, false )
+end
\ No newline at end of file
diff --git a/resources/Delete-Vehicle/server.lua b/resources/Delete-Vehicle/server.lua
new file mode 100644
index 000000000..f42af0e92
--- /dev/null
+++ b/resources/Delete-Vehicle/server.lua
@@ -0,0 +1,15 @@
+-- Add an event handler for the 'chatMessage' event
+AddEventHandler( 'chatMessage', function( source, n, msg )
+
+ msg = string.lower( msg )
+
+ -- Check to see if a client typed in /dv
+ if ( msg == "/dv" or msg == "/delveh" ) then
+
+ -- Cancel the chat message event (stop the server from posting the message)
+ CancelEvent()
+
+ -- Trigger the client event
+ TriggerClientEvent( 'wk:deleteVehicle', source )
+ end
+end )
\ No newline at end of file
diff --git a/resources/Disable-Dispatch/__resource.lua b/resources/Disable-Dispatch/__resource.lua
new file mode 100644
index 000000000..ca40bbc75
--- /dev/null
+++ b/resources/Disable-Dispatch/__resource.lua
@@ -0,0 +1,3 @@
+resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
+
+client_script 'client.lua'
diff --git a/resources/Disable-Dispatch/client.lua b/resources/Disable-Dispatch/client.lua
new file mode 100644
index 000000000..a48e963a9
--- /dev/null
+++ b/resources/Disable-Dispatch/client.lua
@@ -0,0 +1,11 @@
+Citizen.CreateThread(function()
+ while true do
+ Wait(0)
+ for i = 1, 12 do
+ EnableDispatchService(i, false)
+ end
+ SetPlayerWantedLevel(PlayerId(), 0, false)
+ SetPlayerWantedLevelNow(PlayerId(), false)
+ SetPlayerWantedLevelNoDrop(PlayerId(), 0, false)
+ end
+end)
diff --git a/resources/Doorlock/LICENSE b/resources/Doorlock/LICENSE
new file mode 100644
index 000000000..94a9ed024
--- /dev/null
+++ b/resources/Doorlock/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/resources/Doorlock/README.md b/resources/Doorlock/README.md
new file mode 100644
index 000000000..82fa947f7
--- /dev/null
+++ b/resources/Doorlock/README.md
@@ -0,0 +1 @@
+# Badger-Doorlock
diff --git a/resources/Doorlock/client/main.lua b/resources/Doorlock/client/main.lua
new file mode 100644
index 000000000..daefe5729
--- /dev/null
+++ b/resources/Doorlock/client/main.lua
@@ -0,0 +1,124 @@
+
+Citizen.CreateThread(function()
+ -- Update the door list
+ TriggerServerEvent('esx_doorlock:getDoorState')
+end)
+
+RegisterNetEvent('esx_doorlock:returnDoorState')
+AddEventHandler('esx_doorlock:returnDoorState', function(states)
+ for index, state in pairs(states) do
+ Config.DoorList[index].locked = state
+ end
+end)
+
+Citizen.CreateThread(function()
+ Wait(1000);
+ TriggerServerEvent('Doorlock:CheckPerms');
+end)
+
+RegisterNetEvent('esx_doorlock:setDoorState')
+AddEventHandler('esx_doorlock:setDoorState', function(index, state) Config.DoorList[index].locked = state end)
+
+Citizen.CreateThread(function()
+ while true do
+ local playerCoords = GetEntityCoords(PlayerPedId())
+
+ for k,v in ipairs(Config.DoorList) do
+
+ if v.doors then
+ for k2,v2 in ipairs(v.doors) do
+ if v2.object and DoesEntityExist(v2.object) then
+ if k2 == 1 then
+ v.distanceToPlayer = #(playerCoords - GetEntityCoords(v2.object))
+ end
+
+ if v.locked and v2.objHeading and round(GetEntityHeading(v2.object)) ~= v2.objHeading then
+ SetEntityHeading(v2.object, v2.objHeading)
+ end
+ else
+ v.distanceToPlayer = nil
+ v2.object = GetClosestObjectOfType(v2.objCoords, 1.0, v2.objHash, false, false, false)
+ end
+ end
+ else
+ if v.object and DoesEntityExist(v.object) then
+ v.distanceToPlayer = #(playerCoords - GetEntityCoords(v.object))
+
+ if v.locked and v.objHeading and round(GetEntityHeading(v.object)) ~= v.objHeading then
+ SetEntityHeading(v.object, v.objHeading)
+ end
+ else
+ v.distanceToPlayer = nil
+ v.object = GetClosestObjectOfType(v.objCoords, 1.0, v.objHash, false, false, false)
+ end
+ end
+ end
+
+ Citizen.Wait(500)
+ end
+end)
+function round(n)
+ return n % 1 >= 0.5 and math.ceil(n) or math.floor(n)
+end
+
+Citizen.CreateThread(function()
+ while true do
+ Citizen.Wait(0)
+ local letSleep = true
+
+ for k,v in ipairs(Config.DoorList) do
+ if v.distanceToPlayer and v.distanceToPlayer < 50 then
+ letSleep = false
+
+ if v.doors then
+ for k2,v2 in ipairs(v.doors) do
+ FreezeEntityPosition(v2.object, v.locked)
+ end
+ else
+ FreezeEntityPosition(v.object, v.locked)
+ end
+ end
+
+ if v.distanceToPlayer and v.distanceToPlayer < v.maxDistance then
+ local size, displayText = 1, "~g~Unlocked ~w~[E]"
+
+ if v.size then size = v.size end
+ if v.locked then
+ displayText = "~r~Locked ~w~[E]"
+ end
+ --if v.isAuthorized then displayText = _U('press_button', displayText) end
+ local x, y, z = table.unpack(v.textCoords);
+ Draw3DText(x, y, z - 2, displayText, 4, 0.1, 0.1);
+
+ if IsControlJustReleased(0, 38) then
+ TriggerServerEvent('Doorlock:CheckPermsDoor', k, not v.locked);
+ end
+ end
+ end
+
+ if letSleep then
+ Citizen.Wait(500)
+ end
+ end
+end)
+function Draw3DText(x,y,z,textInput,fontId,scaleX,scaleY)
+ local px,py,pz=table.unpack(GetGameplayCamCoords())
+ local dist = GetDistanceBetweenCoords(px,py,pz, x,y,z, 1)
+ local scale = (1/dist)*20
+ local fov = (1/GetGameplayCamFov())*100
+ local scale = scale*fov
+ SetTextScale(scaleX*scale, scaleY*scale)
+ SetTextFont(fontId)
+ SetTextProportional(1)
+ SetTextColour(250, 250, 250, 255) -- You can change the text color here
+ SetTextDropshadow(1, 1, 1, 1, 255)
+ SetTextEdge(2, 0, 0, 0, 150)
+ SetTextDropShadow()
+ SetTextOutline()
+ SetTextEntry("STRING")
+ SetTextCentre(1)
+ AddTextComponentString(textInput)
+ SetDrawOrigin(x,y,z+2, 0)
+ DrawText(0.0, 0.0)
+ ClearDrawOrigin()
+end
diff --git a/resources/Doorlock/config.lua b/resources/Doorlock/config.lua
new file mode 100644
index 000000000..7b5e4245e
--- /dev/null
+++ b/resources/Doorlock/config.lua
@@ -0,0 +1,238 @@
+Config = {}
+Config.Locale = 'en'
+
+Config.Roles = {
+ ['SAHP'] = 807381507622305852, --LSPD
+ ['BCSO'] = 720071486416617575,
+ ['BCPD'] = 720078261794897941,
+ ['CO'] = 720311990941122580,
+}
+
+Config.DoorList = {
+
+ --
+ -- Mission Row First Floor
+ --
+
+ -- Entrance Doors
+ {
+ textCoords = vector3(434.7, -982.0, 31.5),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = false,
+ maxDistance = 2.5,
+ doors = {
+ {objHash = GetHashKey('v_ilev_ph_door01'), objHeading = 270.0, objCoords = vector3(434.7, -980.6, 30.8)},
+ {objHash = GetHashKey('v_ilev_ph_door002'), objHeading = 270.0, objCoords = vector3(434.7, -983.2, 30.8)}
+ }
+ },
+
+ -- To locker room & roof
+ {
+ objHash = GetHashKey('v_ilev_ph_gendoor004'),
+ objHeading = 90.0,
+ objCoords = vector3(449.6, -986.4, 30.6),
+ textCoords = vector3(450.1, -986.3, 31.7),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 1.25
+ },
+
+ -- Rooftop
+ {
+ objHash = GetHashKey('v_ilev_gtdoor02'),
+ objHeading = 90.0,
+ objCoords = vector3(464.3, -984.6, 43.8),
+ textCoords = vector3(464.3, -984.0, 44.8),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 1.25
+ },
+
+ -- Hallway to roof
+ {
+ objHash = GetHashKey('v_ilev_arm_secdoor'),
+ objHeading = 90.0,
+ objCoords = vector3(461.2, -985.3, 30.8),
+ textCoords = vector3(461.5, -986.0, 31.5),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 1.25
+ },
+
+ -- Armory
+ {
+ objHash = GetHashKey('v_ilev_arm_secdoor'),
+ objHeading = 270.0,
+ objCoords = vector3(452.6, -982.7, 30.6),
+ textCoords = vector3(453.0, -982.6, 31.7),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 1.25
+ },
+
+ -- Captain Office
+ {
+ objHash = GetHashKey('v_ilev_ph_gendoor002'),
+ objHeading = 180.0,
+ objCoords = vector3(447.2, -980.6, 30.6),
+ textCoords = vector3(447.2, -980.0, 31.7),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 1.25
+ },
+
+ -- To downstairs (double doors)
+ {
+ textCoords = vector3(444.6, -989.4, 31.7),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 4,
+ doors = {
+ {objHash = GetHashKey('v_ilev_ph_gendoor005'), objHeading = 180.0, objCoords = vector3(443.9, -989.0, 30.6)},
+ {objHash = GetHashKey('v_ilev_ph_gendoor005'), objHeading = 0.0, objCoords = vector3(445.3, -988.7, 30.6)}
+ }
+ },
+
+ --
+ -- Mission Row Cells
+ --
+
+ -- Main Cells
+ {
+ objHash = GetHashKey('v_ilev_ph_cellgate'),
+ objHeading = 0.0,
+ objCoords = vector3(463.8, -992.6, 24.9),
+ textCoords = vector3(463.3, -992.6, 25.1),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 1.25
+ },
+
+ -- Cell 1
+ {
+ objHash = GetHashKey('v_ilev_ph_cellgate'),
+ objHeading = 270.0,
+ objCoords = vector3(462.3, -993.6, 24.9),
+ textCoords = vector3(461.8, -993.3, 25.0),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 1.25
+ },
+
+ -- Cell 2
+ {
+ objHash = GetHashKey('v_ilev_ph_cellgate'),
+ objHeading = 90.0,
+ objCoords = vector3(462.3, -998.1, 24.9),
+ textCoords = vector3(461.8, -998.8, 25.0),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 1.25
+ },
+
+ -- Cell 3
+ {
+ objHash = GetHashKey('v_ilev_ph_cellgate'),
+ objHeading = 90.0,
+ objCoords = vector3(462.7, -1001.9, 24.9),
+ textCoords = vector3(461.8, -1002.4, 25.0),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 1.25
+ },
+
+ -- To Back
+ {
+ objHash = GetHashKey('v_ilev_gtdoor'),
+ objHeading = 0.0,
+ objCoords = vector3(463.4, -1003.5, 25.0),
+ textCoords = vector3(464.0, -1003.5, 25.5),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 1.25
+ },
+
+ --
+ -- Mission Row Back
+ --
+
+ -- Back (double doors)
+ {
+ textCoords = vector3(468.6, -1014.4, 27.1),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 4,
+ doors = {
+ {objHash = GetHashKey('v_ilev_rc_door2'), objHeading = 0.0, objCoords = vector3(467.3, -1014.4, 26.5)},
+ {objHash = GetHashKey('v_ilev_rc_door2'), objHeading = 180.0, objCoords = vector3(469.9, -1014.4, 26.5)}
+ }
+ },
+
+ -- Back Gate
+ {
+ objHash = GetHashKey('hei_prop_station_gate'),
+ objHeading = 90.0,
+ objCoords = vector3(488.8, -1017.2, 27.1),
+ textCoords = vector3(488.8, -1020.2, 30.0),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 14,
+ size = 2
+ },
+
+ --
+ -- Sandy Shores
+ --
+
+ -- Entrance
+ {
+ objHash = GetHashKey('v_ilev_shrfdoor'),
+ objHeading = 30.0,
+ objCoords = vector3(1855.1, 3683.5, 34.2),
+ textCoords = vector3(1855.1, 3683.5, 35.0),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = false,
+ maxDistance = 1.25
+ },
+
+ --
+ -- Paleto Bay
+ --
+
+ -- Entrance (double doors)
+ {
+ textCoords = vector3(-443.5, 6016.3, 32.0),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = false,
+ maxDistance = 2.5,
+ doors = {
+ {objHash = GetHashKey('v_ilev_shrf2door'), objHeading = 315.0, objCoords = vector3(-443.1, 6015.6, 31.7)},
+ {objHash = GetHashKey('v_ilev_shrf2door'), objHeading = 135.0, objCoords = vector3(-443.9, 6016.6, 31.7)}
+ }
+ },
+
+ --
+ -- Bolingbroke Penitentiary
+ --
+
+ -- Entrance (Two big gates)
+ {
+ objHash = GetHashKey('prop_gate_prison_01'),
+ objCoords = vector3(1844.9, 2604.8, 44.6),
+ textCoords = vector3(1844.9, 2608.5, 48.0),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 12,
+ size = 2
+ },
+
+ {
+ objHash = GetHashKey('prop_gate_prison_01'),
+ objCoords = vector3(1818.5, 2604.8, 44.6),
+ textCoords = vector3(1818.5, 2608.4, 48.0),
+ authorizedRoles = {'CO', 'SAHP', 'BCSO', 'BCPD'},
+ locked = true,
+ maxDistance = 12,
+ size = 2
+ }
+}
\ No newline at end of file
diff --git a/resources/Doorlock/fxmanifest.lua b/resources/Doorlock/fxmanifest.lua
new file mode 100644
index 000000000..87f68f8be
--- /dev/null
+++ b/resources/Doorlock/fxmanifest.lua
@@ -0,0 +1,17 @@
+fx_version 'adamant'
+
+game 'gta5'
+
+description 'Badger Door Lock'
+
+version '1.4.0'
+
+server_scripts {
+ 'config.lua',
+ 'server/main.lua'
+}
+
+client_scripts {
+ 'config.lua',
+ 'client/main.lua'
+}
diff --git a/resources/Doorlock/server/main.lua b/resources/Doorlock/server/main.lua
new file mode 100644
index 000000000..d329c7984
--- /dev/null
+++ b/resources/Doorlock/server/main.lua
@@ -0,0 +1,93 @@
+local doorState = {}
+
+
+RegisterServerEvent('esx_doorlock:updateState')
+AddEventHandler('esx_doorlock:updateState', function(doorIndex, state)
+ local player = source;
+ if roleTracker[player] ~= nil then
+ local roleListt = roleTracker[player];
+ for i = 1, #roleListt do
+ if type(doorIndex) == 'number' and type(state) == 'boolean' and Config.DoorList[doorIndex]
+ and isAuthorized(roleListt[i], Config.DoorList[doorIndex]) then
+ doorState[doorIndex] = state
+ TriggerClientEvent('esx_doorlock:setDoorState', -1, doorIndex, state)
+ return;
+ end
+ end
+ end
+end)
+
+RegisterNetEvent('esx_doorlock:getDoorState')
+AddEventHandler('esx_doorlock:getDoorState', function()
+ TriggerClientEvent('esx_doorlock:returnDoorState', -1, doorState);
+end)
+
+RegisterNetEvent('Doorlock:CheckPermsDoor')
+AddEventHandler('Doorlock:CheckPermsDoor', function(doorV, state)
+ local player = source;
+ if roleTracker[player] ~= nil then
+ local roleListt = roleTracker[player];
+ for i = 1, #roleListt do
+ if type(doorV) == 'number' and Config.DoorList[doorV]
+ and isAuthorized(roleListt[i], Config.DoorList[doorV]) then
+ doorState[doorV] = state;
+ TriggerClientEvent('esx_doorlock:setDoorState', -1, doorV, state)
+ return;
+ end
+ end
+ end
+end)
+
+AddEventHandler('playerDropped', function (reason)
+ -- Clear their lists
+ local src = source;
+ roleTracker[src] = nil;
+end)
+
+RegisterNetEvent('Doorlock:CheckPerms')
+AddEventHandler('Doorlock:CheckPerms', function()
+ local src = source;
+ for k, v in ipairs(GetPlayerIdentifiers(src)) do
+ if string.sub(v, 1, string.len("discord:")) == "discord:" then
+ identifierDiscord = v
+ end
+ end
+ -- TriggerClientEvent("FaxDisVeh:CheckPermission:Return", src, true, false)
+ if identifierDiscord then
+ local roles = exports.Badger_Discord_API:GetDiscordRoles(src)
+ if not (roles == false) then
+ for roleName, roleID in pairs(Config.Roles) do
+ for i = 1, #roles do
+ if tostring(roles[i]) == tostring(roleID) then
+ -- Return the index back to the Client script
+ if roleTracker[src] ~= nil then
+ -- They have a list, add to it
+ table.insert(roleTracker[src], roleName);
+ print("Added " .. GetPlayerName(src) .. " to doorlock-group '" .. roleName .. "'")
+ else
+ -- No list, make one
+ local roless = {};
+ table.insert(roless, roleName);
+ roleTracker[src] = roless;
+ print("Added " .. GetPlayerName(src) .. " to doorlock-group '" .. roleName .. "'")
+ end
+ end
+ end
+ end
+ else
+ print(GetPlayerName(src) .. " did not receive door permissions because roles == false")
+ end
+ elseif identifierDiscord == nil then
+ print("identifierDiscord == nil")
+ end
+end)
+roleTracker = {}
+function isAuthorized(role, doorObject)
+ for k, rolee in pairs(doorObject.authorizedRoles) do
+ if rolee == role then
+ return true
+ end
+ end
+
+ return false
+end
diff --git a/resources/EGRP-HUD/client.lua b/resources/EGRP-HUD/client.lua
new file mode 100644
index 000000000..0a07f9ac2
--- /dev/null
+++ b/resources/EGRP-HUD/client.lua
@@ -0,0 +1,413 @@
+-----------------------------------
+-- Area of Patrol, Made by FAXES --
+-----------------------------------
+
+--- "Ramsus" ---
+
+local isUiOpen = false
+local speedBuffer = {}
+local velBuffer = {}
+local SeatbeltON = false
+local InVehicle = false
+
+function Notify(string)
+ SetNotificationTextEntry("STRING")
+ AddTextComponentString(string)
+ DrawNotification(false, true)
+end
+
+AddEventHandler('seatbelt:sounds', function(soundFile, soundVolume)
+ SendNUIMessage({
+ transactionType = 'playSound',
+ transactionFile = soundFile,
+ transactionVolume = soundVolume
+ })
+end)
+
+function IsCar(veh)
+ local vc = GetVehicleClass(veh)
+ return (vc >= 0 and vc <= 7) or (vc >= 9 and vc <= 12) or (vc >= 17 and vc <= 20)
+end
+
+function Fwv(entity)
+ local hr = GetEntityHeading(entity) + 90.0
+ if hr < 0.0 then hr = 360.0 + hr end
+ hr = hr * 0.0174533
+ return { x = math.cos(hr) * 2.0, y = math.sin(hr) * 2.0 }
+end
+
+Citizen.CreateThread(function()
+ while true do
+ Citizen.Wait(0)
+
+ local ped = PlayerPedId()
+ local car = GetVehiclePedIsIn(ped)
+
+ if car ~= 0 and (InVehicle or IsCar(car)) then
+ InVehicle = true
+ if isUiOpen == false and not IsPlayerDead(PlayerId()) then
+ if Config.Blinker then
+ SendNUIMessage({displayWindow = 'true'})
+ end
+ isUiOpen = true
+ end
+
+ if SeatbeltON then
+ DisableControlAction(0, 75, true) -- Disable exit vehicle when stop
+ DisableControlAction(27, 75, true) -- Disable exit vehicle when Driving
+ end
+
+ speedBuffer[2] = speedBuffer[1]
+ speedBuffer[1] = GetEntitySpeed(car)
+
+ if not SeatbeltON and speedBuffer[2] ~= nil and GetEntitySpeedVector(car, true).y > 1.0 and speedBuffer[1] > (Config.Speed / 3.6) and (speedBuffer[2] - speedBuffer[1]) > (speedBuffer[1] * 0.255) then
+ local co = GetEntityCoords(ped)
+ local fw = Fwv(ped)
+ SetEntityCoords(ped, co.x + fw.x, co.y + fw.y, co.z - 0.47, true, true, true)
+ SetEntityVelocity(ped, velBuffer[2].x, velBuffer[2].y, velBuffer[2].z)
+ Citizen.Wait(1)
+ SetPedToRagdoll(ped, 1000, 1000, 0, 0, 0, 0)
+ end
+
+ velBuffer[2] = velBuffer[1]
+ velBuffer[1] = GetEntityVelocity(car)
+
+ if IsControlJustReleased(0, Config.Control) and GetLastInputMethod(0) then
+ SeatbeltON = not SeatbeltON
+ if SeatbeltON then
+ Citizen.Wait(1)
+
+ if Config.Sounds then
+ TriggerEvent("seatbelt:sounds", "buckle", Config.Volume)
+ end
+ if Config.Notification then
+ Notify(Config.Strings.seatbelt_on)
+ end
+
+ if Config.Blinker then
+ SendNUIMessage({displayWindow = 'false'})
+ end
+ isUiOpen = true
+ else
+ if Config.Notification then
+ Notify(Config.Strings.seatbelt_off)
+ end
+
+ if Config.Sounds then
+ TriggerEvent("seatbelt:sounds", "unbuckle", Config.Volume)
+ end
+
+ if Config.Blinker then
+ SendNUIMessage({displayWindow = 'true'})
+ end
+ isUiOpen = true
+ end
+ end
+
+ elseif InVehicle then
+ InVehicle = false
+ SeatbeltON = false
+ speedBuffer[1], speedBuffer[2] = 0.0, 0.0
+ if isUiOpen == true and not IsPlayerDead(PlayerId()) then
+ if Config.Blinker then
+ SendNUIMessage({displayWindow = 'false'})
+ end
+ isUiOpen = false
+ end
+ end
+ end
+end)
+
+Citizen.CreateThread(function()
+ while true do
+ Citizen.Wait(10)
+ local Vehicle = GetVehiclePedIsIn(GetPlayerPed(-1), false)
+ local VehSpeed = GetEntitySpeed(Vehicle) * 3.6
+
+ if Config.AlarmOnlySpeed and VehSpeed > Config.AlarmSpeed then
+ ShowWindow = true
+ else
+ ShowWindow = false
+ SendNUIMessage({displayWindow = 'false'})
+ end
+
+ if IsPlayerDead(PlayerId()) or IsPauseMenuActive() then
+ if isUiOpen == true then
+ SendNUIMessage({displayWindow = 'false'})
+ end
+ elseif not SeatbeltON and InVehicle and not IsPauseMenuActive() and not IsPlayerDead(PlayerId()) and Config.Blinker then
+ if Config.AlarmOnlySpeed and ShowWindow and VehSpeed > Config.AlarmSpeed then
+ SendNUIMessage({displayWindow = 'true'})
+ end
+ end
+ end
+end)
+
+Citizen.CreateThread(function()
+ while true do
+ --Citizen.Wait(3500)
+ Citizen.Wait(30000)
+ if not SeatbeltON and InVehicle and not IsPauseMenuActive() and Config.LoopSound and ShowWindow then
+ TriggerEvent("seatbelt:sounds", "seatbelt", Config.Volume)
+ end
+ end
+end)
+
+--- NO NEED TO EDIT THIS FILE!!!! EDIT THE CONFIG.LUA ---
+--- NO NEED TO EDIT THIS FILE!!!! EDIT THE CONFIG.LUA ---
+--- NO NEED TO EDIT THIS FILE!!!! EDIT THE CONFIG.LUA ---
+--- NO NEED TO EDIT THIS FILE!!!! EDIT THE CONFIG.LUA ---
+--- NO NEED TO EDIT THIS FILE!!!! EDIT THE CONFIG.LUA ---
+
+
+local cooldown = 0
+peacetimeActive = false
+local year, month, day, hour, minute, second = GetLocalTime()
+local AOPxNew = 0.660
+local AOPyNew = 1.430
+local AOPyNew2 = 1.430
+
+AddEventHandler('onClientMapStart', function()
+ TriggerEvent('AOP:RunConfig')
+ Wait(2000)
+ TriggerServerEvent('AOP:Sync')
+ TriggerServerEvent('AOP:PTSync')
+end)
+
+AddEventHandler('playerSpawned', function()
+ local ped = GetPlayerPed(-1)
+ if AOPSpawnsEnabled then
+ TriggerEvent('AOP:SetPlayerSpawnPoint', ped)
+ end
+end)
+
+RegisterNetEvent('AOP:NoPerms')
+AddEventHandler('AOP:NoPerms', function()
+ ShowInfo(noPermsMessage)
+end)
+
+RegisterNetEvent('Fax:ClientPrint')
+AddEventHandler('Fax:ClientPrint', function(text)
+ print(text)
+end)
+
+RegisterNetEvent('AOP:DisNotification')
+AddEventHandler('AOP:DisNotification', function(textPassed)
+ BeginTextCommandDisplayHelp("STRING")
+ AddTextComponentSubstringPlayerName(textPassed)
+ EndTextCommandDisplayHelp(0, 0, 1, - 1)
+end)
+
+RegisterNetEvent('AOP:PTSound')
+AddEventHandler('AOP:PTSound', function()
+ PlaySoundFrontend(-1,"CONFIRM_BEEP", "HUD_MINI_GAME_SOUNDSET",1)
+end)
+
+RegisterNetEvent('AOP:RunConfig')
+AddEventHandler('AOP:RunConfig', function()
+ if AOPLocation == 0 then -- Default
+ if serverPLD then
+ AOPxNew = 0.660
+ AOPyNew = 1.370
+ AOPyNew2 = AOPyNew + 0.025
+ else
+ AOPxNew = 0.660
+ AOPyNew = 1.430
+ AOPyNew2 = AOPyNew + 0.025
+ end
+ elseif AOPLocation == 1 then -- Bottom Center
+ AOPxNew = 1.000
+ AOPyNew = 1.430
+ AOPyNew2 = AOPyNew + 0.025
+ elseif AOPLocation == 2 then -- Bottom Right [WIP]
+ AOPxNew = 0.660
+ AOPyNew = 1.430
+ AOPyNew2 = AOPyNew + 0.025
+ elseif AOPLocation == 3 then -- Top Right [WIP]
+ AOPxNew = 0.660
+ AOPyNew = 1.430
+ AOPyNew2 = AOPyNew + 0.025
+ elseif AOPLocation == 4 then -- Top Center
+ AOPxNew = 1.000
+ AOPyNew = 0.50
+ AOPyNew2 = AOPyNew + 0.025
+ elseif AOPLocation == 5 then -- Top Left
+ AOPxNew = 0.00
+ AOPyNew = 0.50
+ AOPyNew2 = AOPyNew + 0.025
+ elseif AOPLocation == 6 then -- Custom
+ AOPxNew = AOPx
+ AOPyNew = AOPy
+ AOPyNew2 = AOPyNew + 0.025
+ end
+
+ Citizen.Trace("[FAXES AOP SCRIPT] Config Ran")
+end)
+
+
+RegisterNetEvent('AOP:SendAOP')
+AddEventHandler('AOP:SendAOP', function(newCurAOP)
+ FaxCurAOP = newCurAOP
+end)
+
+RegisterNetEvent('AOP:SendPT')
+AddEventHandler('AOP:SendPT', function(newCurPT)
+ peacetimeActive = newCurPT
+end)
+
+RegisterNetEvent('AOP:SetPlayerSpawnPoint')
+AddEventHandler('AOP:SetPlayerSpawnPoint', function(ped)
+ for i=1, #AOPSpawns do
+ local AOPTab = AOPSpawns[i]
+ if string.lower(AOPTab.AOPName) == string.lower(FaxCurAOP) then
+ SetEntityCoords(ped, AOPTab.AOPCoords.x, AOPTab.AOPCoords.y, AOPTab.AOPCoords.z)
+ end
+ end
+end)
+
+Citizen.CreateThread(function()
+ while true do
+ if localTime == 1 then -- client time
+ year, month, day, hour, minute, second = GetLocalTime()
+ newMinute = minute
+ miid = GetPlayerServerId(NetworkGetEntityOwner(GetPlayerPed(-1)))
+ if minute < 10 then
+ newMinute = "0" .. minute
+ end
+ drawTimeText = featColor .. "Time: ~w~" .. hour .. ":" .. newMinute .. featColor .." | Date: ~w~" .. day .. featColor .."/~w~" .. month .. featColor .. "/~w~" .. year .. featColor .. " | Player ID: ~w~" .. miid
+ elseif localTime == 2 then
+ year = GetClockYear();month = GetClockMonth();day = GetClockDayOfMonth()
+ hour = GetClockHours();minute = GetClockMinutes();second = GetClockSeconds()
+ newMinute = minute
+ miid = GetPlayerServerId(NetworkGetEntityOwner(GetPlayerPed(-1)))
+ if minute < 10 then
+ newMinute = "0" .. minute
+ end
+ drawTimeText = featColor .. "Time: ~w~" .. hour .. ":" .. newMinute .. featColor .." | Date: ~w~" .. day .. featColor .."/~w~" .. month .. featColor .. "/~w~" .. year .. featColor .. " | Player ID: ~w~" .. miid
+ elseif localTime == 0 then
+ drawTimeText = ""
+ end
+ Citizen.Wait(1)
+ local player = GetPlayerPed(-1)
+ local veh = GetVehiclePedIsIn(player)
+ local mph = math.ceil(GetEntitySpeed(veh) * 2.23)
+
+ if peacetimeActive then
+ if peacetimeNS then
+ if IsControlPressed(0, 106) then
+ ShowInfo("~r~Peacetime is enabled. ~n~~s~You can not shoot.")
+ end
+ SetPlayerCanDoDriveBy(player, false)
+ DisablePlayerFiring(player, true)
+ DisableControlAction(0, 140) -- Melee R
+ end
+ if GetPedInVehicleSeat(veh, -1) == player then
+ if mph > maxPTSpeed then
+ ShowInfo("~r~Please keep in mind peacetime is active! ~n~~w~Slow down or stop.")
+ end
+ end
+
+ DrawTextAOP(AOPxNew, AOPyNew, 1.0,1.0,0.45, drawTimeText, 255, 255, 255, 255)
+ DrawTextAOP(AOPxNew, AOPyNew2, 1.0,1.0,0.45, "~w~Current " .. featColor .. "AOP: ~w~" .. FaxCurAOP .. featColor .. " | ~w~PeaceTime: ~g~Enabled" .. featColor , 255, 255, 255, 255)
+ elseif not peacetimeActive then
+ if peacetime then
+ DrawTextAOP(AOPxNew, AOPyNew, 1.0,1.0,0.45, drawTimeText, 255, 255, 255, 255)
+ DrawTextAOP(AOPxNew, AOPyNew2, 1.0,1.0,0.45, "~w~Current " .. featColor .. "AOP: ~w~" .. FaxCurAOP .. featColor .. " | ~w~PeaceTime: ~r~Disabled" .. featColor , 255, 255, 255, 255)
+ else
+ DrawTextAOP(AOPxNew, AOPyNew, 1.0,1.0,0.45, drawTimeText, 255, 255, 255, 255)
+ DrawTextAOP(AOPxNew, AOPyNew2, 1.0,1.0,0.45, "~w~Current " .. featColor .. "AOP: ~w~" .. FaxCurAOP .. featColor , 255, 255, 255, 255)
+ end
+ end
+ end
+end)
+
+Citizen.CreateThread(function()
+ while true do
+ if IsPedInAnyVehicle(GetPlayerPed(-1)) then
+ local ped = GetPlayerPed(-1)
+ local veh = GetVehiclePedIsIn(ped)
+ local plate = GetVehicleNumberPlateText(veh)
+ local rpm = math.ceil(GetVehicleCurrentRpm(veh) * 11) - 1
+ local speed = math.ceil(GetEntitySpeed(veh) * 2.236936)
+ local gear = GetVehicleCurrentGear(veh)
+ if speed == 0 then
+ gear = "N"
+ elseif gear == 0 then
+ gear = "~r~R"
+ end
+ DrawTextAOP(0.665, 1.340, 1.0,1.0,0.45,"~r~Plate: ~w~"..plate.."~r~ | MPH: ~w~"..speed.." ~r~| RPM: ~w~"..rpm.."X ~r~| Gear: ~w~"..gear, 255,255,255,255)
+ end
+ Citizen.Wait(1)
+ end
+end)
+
+function DrawTextAOP(x,y ,width,height,scale, text, r,g,b,a)
+ if AOPLocation == 1 or AOPLocation == 4 then
+ SetTextCentre(true)
+ end
+ SetTextFont(4)
+ SetTextProportional(0)
+ SetTextScale(scale, scale)
+ SetTextColour(r, g, b, a)
+ SetTextDropShadow(0, 0, 0, 0,255)
+ SetTextEdge(2, 0, 0, 0, 255)
+ SetTextDropShadow()
+ SetTextOutline()
+ SetTextEntry("STRING")
+ AddTextComponentString(text)
+ DrawText(x - width/2, y - height/2 + 0.005)
+end
+
+Citizen.CreateThread(function()
+ while true do Citizen.Wait(1)
+ local MyPed = GetPlayerPed(-1)
+
+ if SeatbeltON == true then
+ seatbeltmsg = "Enabled"
+
+ elseif SeatbeltON == false then
+ seatbeltmsg = "Disabled"
+
+ end
+
+ if(IsPedInAnyVehicle(MyPed, false))then
+
+ local MyPedVeh = GetVehiclePedIsIn(MyPed)
+ local VehStopped = IsVehicleStopped(MyPedVeh)
+ local VehEngineHP = GetVehicleEngineHealth(MyPedVeh)
+ local VehEngineOn = GetIsVehicleEngineRunning(MyPedVeh)
+
+ if VehEngineOn then
+ if VehEngineHP > 500 and VehEngineHP < 750 and SeatbeltON == true then
+ DrawTextAOP(0.665, 1.314, 1.0,1.0,0.45, "~r~Engine Status: ~y~Partially Damaged ~r~| Seatbelt: ~g~"..seatbeltmsg, 255, 255, 255, 255)
+ elseif VehEngineHP > 500 and VehEngineHP < 750 and SeatbeltON == false then
+ DrawTextAOP(0.665, 1.314, 1.0,1.0,0.45, "~r~Engine Status: ~y~Partially Damaged ~r~| Seatbelt: ~r~"..seatbeltmsg, 255, 255, 255, 255)
+ elseif (VehEngineHP > 200) and (VehEngineHP < 500) and SeatbeltON == true then
+ DrawTextAOP(0.665, 1.314, 1.0,1.0,0.45, "~r~Engine Status: ~y~Heavily Damaged ~r~| Seatbelt: ~g~"..seatbeltmsg, 255, 255, 255, 255)
+ elseif (VehEngineHP > 200) and (VehEngineHP < 500) and SeatbeltON == false then
+ DrawTextAOP(0.665, 1.314, 1.0,1.0,0.45, "~r~Engine Status: ~y~Heavily Damaged ~r~| Seatbelt: ~r~"..seatbeltmsg, 255, 255, 255, 255)
+ elseif VehEngineHP < 200 and SeatbeltON == true then
+ DrawTextAOP(0.665, 1.314, 1.0,1.0,0.45, "~r~Engine Status: ~r~Permanently Damaged ~r~| Seatbelt: ~g~"..seatbeltmsg, 255, 255, 255, 255)
+ elseif VehEngineHP < 200 and SeatbeltON == false then
+ DrawTextAOP(0.665, 1.314, 1.0,1.0,0.45, "~r~Engine Status: ~r~Permanently Damaged ~r~| Seatbelt: ~r~"..seatbeltmsg, 255, 255, 255, 255)
+ elseif VehEngineHP > 750 and SeatbeltON == true then
+ DrawTextAOP(0.665, 1.314, 1.0,1.0,0.45, "~r~Engine Status: ~g~Fully Functional ~r~| Seatbelt: ~g~"..seatbeltmsg, 255, 255, 255, 255)
+ elseif VehEngineHP > 750 and SeatbeltON == false then
+ DrawTextAOP(0.665, 1.314, 1.0,1.0,0.45, "~r~Engine Status: ~g~Fully Functional ~r~| Seatbelt: ~r~"..seatbeltmsg, 255, 255, 255, 255)
+ end
+ else
+ if SeatbeltON == true then
+ DrawTextAOP(0.665, 1.314, 1.0,1.0,0.45, "~r~Engine Status: ~r~Engine Off ~r~| Seatbelt: ~g~"..seatbeltmsg, 255, 255, 255, 255)
+ elseif SeatbeltON == false then
+ DrawTextAOP(0.665, 1.314, 1.0,1.0,0.45, "~r~Engine Status: ~r~Engine Off ~r~| Seatbelt: ~r~"..seatbeltmsg, 255, 255, 255, 255)
+ end
+ end
+ end
+ end
+ end)
+
+function ShowInfo(text)
+ BeginTextCommandThefeedPost("STRING")
+ AddTextComponentSubstringPlayerName(text)
+ EndTextCommandThefeedPostTicker(true, false)
+end
\ No newline at end of file
diff --git a/resources/EGRP-HUD/config.lua b/resources/EGRP-HUD/config.lua
new file mode 100644
index 000000000..a979264c5
--- /dev/null
+++ b/resources/EGRP-HUD/config.lua
@@ -0,0 +1,132 @@
+--[[
+ -----------------------------------
+ -- Area of Patrol, Made by FAXES --
+ -- CONFIG FILE --
+ -----------------------------------
+
+ !!!!!!!!!IMPORTANT!!!!!!!!!
+ To see what each variable (configurable option) below does. Please view the link right below...
+
+ Default / Variable Docs: https://docs.faxes.zone/docs/aop-setup/#variable-documentation
+]]
+
+Config = {}
+-- Disable/enable sounds
+Config.Sounds = true
+Config.LoopSound = true
+Config.Volume = 0.8
+-- Min: 0.0 Max: 1.0
+
+-- Disable/enable Notifications
+Config.Notification = false
+Config.Strings = {seatbelt_on = 'Seatbelt: ~g~connected', seatbelt_off = 'Seatbelt: ~r~disconnected'}
+-- Change to your own translations.
+
+-- Disable/enable blinker image
+Config.Blinker = false
+
+-- Seatbelt button (docs.fivem.net/docs/game-references/controls) (Set to K)
+Config.Control = 311
+
+-- KM/H (must be have decimal value) (Set to 50MPH)
+Config.Speed = 80.0
+
+Config.AlarmOnlySpeed = true
+Config.AlarmSpeed = 15
+
+--[[
+ 1. General Config & Commands
+--]]
+
+ FaxCurAOP = "Los Santos"
+ usingPerms = true
+ AOPChangeNotification = true
+
+ AOPCommand = "aop"
+ PTCommand = "pt"
+
+ featColor = "~r~"
+ noPermsMessage = "~r~Insufficient Permissions."
+
+
+--[[
+ 2. Peacetime Settings
+--]]
+
+ peacetime = true
+ peacetimeNS = true
+ maxPTSpeed = 100
+
+ PTOnMessage = featColor .. "Peace Time ~w~is now ~g~ in effect!"
+ PTOffMessage = featColor .. "Peace Time ~w~is now ~r~off."
+
+
+--[[
+ 3. DrawText Settings
+--]]
+
+ AOPLocation = 6
+ serverPLD = false
+ localTime = 1
+
+ --AOPx = 0.660
+ --AOPy = 1.430
+ AOPx = 0.665
+ AOPy = 1.425
+
+
+--[[
+ 4. Auto AOP Settings
+--]]
+
+ autoChangeAOP = false
+
+ ACAOPUnder5 = "Paleto Bay"
+ ACAOPUnder10 = "Sandy Shores"
+ ACAOPUnder20 = "Blaine County"
+ ACAOPUnder30 = "Los Santos"
+ ACAOPOver30 = "San Andreas"
+
+
+--[[
+ 5. AOP Spawn Locations
+--]]
+
+ AOPSpawnsEnabled = false
+ AOPSpawns = {
+ {
+ AOPName = 'sandy shores',
+ AOPCoords = {x = 311.22, y = 3457.60, z = 36.15}
+ },
+ {
+ AOPName = 'paleto bay',
+ AOPCoords = {x = -447.24, y = 5970.46, z = 31.78}
+ },
+ {
+ AOPName = 'downtown',
+ AOPCoords = {x = 219.98, y = -913.38, z = 30.69}
+ },
+ {
+ AOPName = 'rockford hills',
+ AOPCoords = {x = -851.57, y = -128.04, z = 37.62}
+ },
+ }
+
+-- NEW!
+--[[
+ 6. Discord Permissions
+ Make sure to have discord_perms installed and configured!
+--]]
+
+ usingDiscordPerms = true
+ discordRoleIds = {
+ "608583076037001225",
+ "789551229549281331",
+ "517060882686279701",
+ "789538166536798248",
+ "635155687688634399",
+ "556158473981788176",
+ "650653280275267591",
+ "671141073728307228",
+ "361899298209923075"
+ }
\ No newline at end of file
diff --git a/resources/EGRP-HUD/fxmanifest.lua b/resources/EGRP-HUD/fxmanifest.lua
new file mode 100644
index 000000000..cc2a5ee82
--- /dev/null
+++ b/resources/EGRP-HUD/fxmanifest.lua
@@ -0,0 +1,21 @@
+-----------------------------------
+-- Area of Patrol, Made by FAXES --
+-----------------------------------
+
+fx_version 'bodacious'
+game 'gta5'
+
+author 'FAXES'
+
+client_script "config.lua"
+client_script "client.lua"
+server_script "config.lua"
+server_script "server.lua"
+
+ui_page 'html/ui.html'
+
+files {
+ 'html/*',
+ 'html/img/seatbelt.png',
+ 'html/sounds/*.ogg'
+}
\ No newline at end of file
diff --git a/resources/EGRP-HUD/html/app.js b/resources/EGRP-HUD/html/app.js
new file mode 100644
index 000000000..1702342bc
--- /dev/null
+++ b/resources/EGRP-HUD/html/app.js
@@ -0,0 +1,26 @@
+
+window.addEventListener('message', function(e) {
+ $("#container").stop(false, true);
+ if (e.data.displayWindow == 'true') {
+ $("#container").css('display', 'flex');
+
+ $("#container").animate({
+ bottom: "25%",
+ opacity: "1.0"
+ },
+ 700, function() {
+
+ });
+
+ } else {
+ $("#container").animate({
+ bottom: "-50%",
+ opacity: "0.0"
+ },
+ 700, function() {
+ $("#container").css('display', 'none');
+
+ });
+ }
+});
+
diff --git a/resources/EGRP-HUD/html/img/seatbelt.png b/resources/EGRP-HUD/html/img/seatbelt.png
new file mode 100644
index 000000000..7b0e81430
Binary files /dev/null and b/resources/EGRP-HUD/html/img/seatbelt.png differ
diff --git a/resources/EGRP-HUD/html/sounds/buckle.ogg b/resources/EGRP-HUD/html/sounds/buckle.ogg
new file mode 100644
index 000000000..70c20eac1
Binary files /dev/null and b/resources/EGRP-HUD/html/sounds/buckle.ogg differ
diff --git a/resources/EGRP-HUD/html/sounds/seatbelt.ogg b/resources/EGRP-HUD/html/sounds/seatbelt.ogg
new file mode 100644
index 000000000..7b7b4454f
Binary files /dev/null and b/resources/EGRP-HUD/html/sounds/seatbelt.ogg differ
diff --git a/resources/EGRP-HUD/html/sounds/unbuckle.ogg b/resources/EGRP-HUD/html/sounds/unbuckle.ogg
new file mode 100644
index 000000000..66394bd6a
Binary files /dev/null and b/resources/EGRP-HUD/html/sounds/unbuckle.ogg differ
diff --git a/resources/EGRP-HUD/html/style.css b/resources/EGRP-HUD/html/style.css
new file mode 100644
index 000000000..b41d6cd02
--- /dev/null
+++ b/resources/EGRP-HUD/html/style.css
@@ -0,0 +1,58 @@
+html {
+ overflow: hidden;
+}
+
+body {
+ margin: 0px;
+ padding: 0px;
+}
+
+#container {
+ position: absolute;
+ top: 92%;
+ left: 18%; /*25*/
+ width: 80px;
+ height: 80px;
+ display: none;
+ flex-direction: column;
+}
+
+header {
+ width: 80px;
+ height: 80px;
+ opacity: 0.8;
+ border-top-left-radius: 40px;
+ border-top-right-radius: 40px;
+
+}
+
+header img {
+ width: 80px;
+ height: 80px;
+ border-top-left-radius: 40px;
+ border-top-right-radius: 40px;
+}
+
+.blink-image {
+ -moz-animation: blink normal 1s infinite ease-in-out;
+ -webkit-animation: blink normal 1s infinite ease-in-out;
+ animation: blink normal 1s infinite ease-in-out;
+}
+
+@-moz-keyframes blink {
+ 0% {opacity:1;}
+ 50% {opacity:0;}
+ 100% {opacity:1;}
+}
+
+@-webkit-keyframes blink {
+ 0% {opacity:1;}
+ 50% {opacity:0;}
+ 100% {opacity:1;}
+}
+
+@keyframes blink {
+ 0% {opacity:1;}
+ 50% {opacity:0;}
+ 100% {opacity:1;}
+}
\ No newline at end of file
diff --git a/resources/EGRP-HUD/html/ui.html b/resources/EGRP-HUD/html/ui.html
new file mode 100644
index 000000000..b254047ce
--- /dev/null
+++ b/resources/EGRP-HUD/html/ui.html
@@ -0,0 +1,42 @@
+
+
+
+
+ Seatbelt
+
+
+
+
+
+
1. You must sign-up and create a civilian on our CAD at: cad.elite-gaming.co.uk
+
2. Any RDM/VDM is strictly prohibited.
+
3. Roleplay everything you do, don't revive mid scenario.
+
4. You cannot steal any emergency vehicles.
+
5. Players cannot role-play sexual assault, rape, or anything that can be deemed as intense and inappropriate behavior.
+
6. Report people who aren't following the rules via /report.
+
7. Racism, bigotry, anti-antisemitism, and any other form of harassment is not tolerated.
+
8. Don't abuse noclip.
+
9. Flying air vehicles is allowed, as long as you are cautious of others.
+
10. You may find further rules and procedures in-game using F7.
+
+
+
+
+
+
+
+
HEAD OF STAFF
+
+
+
+
ThatGuyJacobee
+
+
+
+
+
+
King Rodriguez
+
+
+
+
+
+
vJack
+
+
+
+
+
+
+
+
+
+
EGRP STAFF
+
+
+
+
Choxie
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/EGRP-Playerlist/LICENSE b/resources/EGRP-Playerlist/LICENSE
new file mode 100644
index 000000000..217dbfeaa
--- /dev/null
+++ b/resources/EGRP-Playerlist/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Jared
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/resources/EGRP-Playerlist/NUI/panel.css b/resources/EGRP-Playerlist/NUI/panel.css
new file mode 100644
index 000000000..796ecaff7
--- /dev/null
+++ b/resources/EGRP-Playerlist/NUI/panel.css
@@ -0,0 +1,103 @@
+#wrap {
+ display: none; /* CHANGE THIS TO NONE */
+ font-family: 'Roboto', sans-serif;
+}
+body {
+ display: none;
+ background-color: transparent;
+ background: transparent;
+}
+div.container {
+ margin-top: 3%;
+ width: 60% !important;
+}
+.job-count {
+ background-color: #5d5d5dad;
+ border-radius: 10px;
+ padding: 5px;
+}
+.row {
+ margin-right: 0 !important;
+ margin-left: 0 !important;
+ margin-bottom: 20px;
+ margin-top: 10px;
+}
+div.container-box {
+ width: 60%;
+ margin-left: auto;
+ margin-right: auto;
+ background-color: rgba(45, 45, 45, 0.68);
+ color: white;
+ padding-bottom: 5px;
+ overflow-y: auto;
+ max-height: 85%;
+ border-radius: 5px;
+}
+div.info {
+ text-align: center;
+ display: block;
+ color: #ADB8BD;
+ font-weight: bold;
+}
+div#contain {
+ text-align: center;
+ width: 100%;
+}
+div.container-head {
+ text-align: center;
+ padding: 10px 0 10px 0;
+}
+table {
+ font-weight: bold;
+ color: white;
+ font-size: 15px;
+ width: 90%;
+}
+.table {
+ width: 98%;
+ margin-left: auto;
+ margin-right: auto;
+ border-collapse: collapse;
+}
+table.container-contents-l {
+ margin-top: 15px;
+ margin-left: auto;
+ margin-right: auto;
+ text-align: center;
+}
+tr.player-box {
+ width: 550px;
+ padding: 5px 0 5px 0;
+ color: white;
+}
+table th {
+ color: #ADB8BD;
+ text-decoration: underline;
+ font-weight: bold;
+ /*font-size: 16px;*/
+ text-transform: uppercase;
+}
+tr.player-box td {
+ margin-left: auto;
+ margin-right: auto;
+ padding-bottom: 5px;
+ padding-top: 5px;
+ vertical-align: middle;
+ word-wrap: break-word;
+ max-width: 160px;
+}
+td.ping-good {
+ color: #18d812;
+}
+td.ping-bad {
+ color: rgb(226, 11, 11);
+}
+td.ping-warn {
+ color: rgb(238, 238, 12);
+}
+tr.player-box img {
+ height: 30px;
+ width: 30px;
+ vertical-align: middle;
+ margin-right: 10px;
+}
\ No newline at end of file
diff --git a/resources/EGRP-Playerlist/NUI/panel.html b/resources/EGRP-Playerlist/NUI/panel.html
new file mode 100644
index 000000000..14d07e9be
--- /dev/null
+++ b/resources/EGRP-Playerlist/NUI/panel.html
@@ -0,0 +1,97 @@
+
+
+
+
+
+ Badger Server List
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Discord
+
Name
+
ID
+
Ping
+
+
+
+
+
+
+
Page: 1 | Players: 5/48
+
+
+
+
\ No newline at end of file
diff --git a/resources/EGRP-Playerlist/NUI/panel.js b/resources/EGRP-Playerlist/NUI/panel.js
new file mode 100644
index 000000000..e8130aa0a
--- /dev/null
+++ b/resources/EGRP-Playerlist/NUI/panel.js
@@ -0,0 +1,78 @@
+
+var resourceName = "";
+$( function() {
+ window.addEventListener( 'message', function( event ) {
+ var item = event.data;
+ if ( item.resourcename ) {
+ resourceName = item.resourcename;
+ }
+ if (item.display) {
+ $("#wrap").show();
+ $('#body').show();
+ } else {
+ $('#body').hide();
+ $("#wrap").hide();
+ $("#pageCount").empty();
+ $("#playerCount").empty();
+ //$("#serverIcon").empty();
+ $("#leftCol").empty();
+ $("#rightCol").empty();
+ $("#ems").empty();
+ $("#police").empty();
+ $("#taxi").empty();
+ $("#mechanic").empty();
+ $("#cardealer").empty();
+ $("#estate").empty();
+ }
+ if (item.addRowLeft) {
+ $("#leftCol").append(item.addRowLeft);
+ }
+ if (item.addRowRight) {
+ $("#rightCol").append(item.addRowRight);
+ }
+ if (item.playerCount) {
+ $("#playerCount").append(item.playerCount);
+ }
+ if (item.page) {
+ $("#pageCount").append(item.page);
+ }
+ if (item.serverIcon) {
+ $("#serverIcon").attr('src', item.serverIcon);
+ }
+ if (item.emsCount) {
+ $("#ems").append(item.emsCount);
+ }
+ if (item.policeCount) {
+ $("#police").append(item.policeCount);
+ }
+ if (item.taxiCount) {
+ $("#taxi").append(item.taxiCount);
+ }
+ if (item.mechanicCount) {
+ $("#mechanic").append(item.mechanicCount);
+ }
+ if (item.cardealerCount) {
+ $("#cardealer").append(item.cardealerCount);
+ }
+ if (item.estateCount) {
+ $("#estate").append(item.estateCount);
+ }
+
+ } );
+} )
+function copyText(text) {
+ var $temp = $("");
+ $("body").append($temp);
+ $temp.val(text).select();
+ document.execCommand("copy");
+ $temp.remove();
+}
+
+function sendData( name, data ) {
+ $.post( "http://" + resourceName + "/" + name, JSON.stringify( data ), function( datab ) {
+ if ( datab != "ok" ) {
+ return false;
+ }
+ } );
+ return true;
+}
\ No newline at end of file
diff --git a/resources/EGRP-Playerlist/README.md b/resources/EGRP-Playerlist/README.md
new file mode 100644
index 000000000..697740411
--- /dev/null
+++ b/resources/EGRP-Playerlist/README.md
@@ -0,0 +1,41 @@
+# Bad-Scoreboard
+The best Fivem Scoreboard created [A Fivem Script]
+
+## Jared's Developer Community [Discord]
+[](https://discord.com/invite/WjB5VFz)
+
+## What is it?
+
+Bad-Scoreboard (or Bad-ServerList as I like to call it) is a simple Fivem scoreboard script for your Fivem server. This makes the scoreboard a lot prettier and utilizes discord to actually show who is who. A user's discord name and avatar are displayed on the scoreboard so long as their discord ID is found successfully by the Fivem application client. The scoreboard has multiple pages and has a `PageSize` variable in the `config.lua` that can be edited to determine how many users are shown on each page. I found that 10 worked out to be the best delimiter. Pages can be cycled through by just clicking the `UP_ARROW` button again. The `UP_ARROW` displays the scoreboard and each time you click it the next page is brought up (if there are more players than the page can handle). I really like the layout of the scoreboard and figured others would too, so here it is. Enjoy. All I ask is that if you enjoy this resource, please give it a like on the forum page, on GitHub (if you have an account), and pop me a follow over on GitHub. Followers on GitHub are to me are considered more important than social media to me lol. So please help me get famous. Best Regards as always, Badger :)
+
+## Installation (discord_perms)
+
+### The script in this video is not installing this script, but much of what you do in this video is the same for this configuration file:
+
+https://www.youtube.com/watch?v=sjbFzkII2T0
+
+## Screenshots
+
+
+
+
+
+## Configuration
+
+```
+----------------------
+--- Bad-ServerList ---
+----------------------
+Config = {
+ GuildID = '',
+ BotToken = '',
+ Default_Profile = "https://www.gamesindustry.biz/img/base/default-user.png", -- Discord Avatar column picture if theirs is not found
+ Discord_Not_Found = "Not Found", -- This will display under 'Discord Name' column if their name is not found
+ ServerName = 'Noir Roleplay',
+ PageSize = 10,
+}
+```
+
+## Download
+
+https://github.com/JaredScar/Bad-Scoreboard
diff --git a/resources/EGRP-Playerlist/__resource.lua b/resources/EGRP-Playerlist/__resource.lua
new file mode 100644
index 000000000..6fe21e74c
--- /dev/null
+++ b/resources/EGRP-Playerlist/__resource.lua
@@ -0,0 +1,14 @@
+resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
+
+client_script "config.lua"
+server_script "config.lua"
+client_script 'client.lua'
+server_script "server.lua"
+
+ui_page "NUI/panel.html"
+
+files {
+ "NUI/panel.js",
+ "NUI/panel.html",
+ "NUI/panel.css",
+}
\ No newline at end of file
diff --git a/resources/EGRP-Playerlist/client.lua b/resources/EGRP-Playerlist/client.lua
new file mode 100644
index 000000000..a49dfec6a
--- /dev/null
+++ b/resources/EGRP-Playerlist/client.lua
@@ -0,0 +1,186 @@
+----------------------------
+--- Bootstrap-Scoreboard ---
+----------------------------
+AddEventHandler('playerSpawned', function()
+ if not alreadySet then
+ TriggerServerEvent('Bad-ServerList:SetupImg')
+ alreadySet = true;
+ end
+end)
+alreadySet = false;
+nui = false;
+pageSize = Config.PageSize;
+pageCount = 1;
+count = 0;
+function mod(a, b)
+ return a - (math.floor(a/b)*b)
+end
+
+jobCounts = {};
+RegisterNetEvent('Bad-ServerList:JobCountUpdate')
+AddEventHandler('Bad-ServerList:JobCountUpdate', function(jobCounts)
+ jobCounts = jobCounts;
+end)
+function ternary ( cond , T , F )
+ if cond then return T else return F end
+end
+curCount = 0;
+Citizen.CreateThread(function()
+ local key = Config.ScoreboardKey;
+ nui = false;
+ local col = true;
+ while true do
+ Wait(1);
+ if IsControlPressed(0, key) then
+ if not nui then
+ local left = "";
+ local right = "";
+ col = true;
+ local maxCount = 0;
+ for id, ava in pairs(avatarss) do
+ maxCount = maxCount + 1;
+ end
+ local counter = 0;
+ local keys = {}
+ for key, ava in pairs(avatarss) do
+ table.insert(keys, tonumber(key));
+ end
+ table.sort(keys);
+ for key = 1, #keys do
+ local id = tostring(keys[key]);
+ local ava = avatarss[id];
+ if (count < (pageSize * pageCount) and counter >= curCount) then
+ if (pingss[id] ~= nil and playerNames[id] ~= nil and discordNames[id] ~= nil) then
+ if pingss[id] < 60 then
+ left = left .. '
";
+ end
+ count = count + 1;
+ print("Count is now: " .. count)
+ ]]--
+ end
+ end
+ counter = counter + 1;
+ end
+ SendNUIMessage({
+ addRowLeft = left,
+ --addRowRight = right,
+ playerCount = "Players: " .. maxCount .. " / " .. Config.ServerSlots,
+ page = "Page: " .. pageCount,
+ serverIcon = Config.ServerIcon,
+ emsCount = ternary(jobCounts["ambulance"] ~= nil, jobCounts["ambulance"], '0'),
+ policeCount = ternary(jobCounts["police"] ~= nil, jobCounts["police"], '0'),
+ taxiCount = ternary(jobCounts["taxi"] ~= nil, jobCounts["taxi"], '0'),
+ mechanicCount = ternary(jobCounts["mechanic"] ~= nil, jobCounts["mechanic"], '0'),
+ cardealerCount = ternary(jobCounts["cardealer"] ~= nil, jobCounts["cardealer"], '0'),
+ estateCount = ternary(jobCounts["realestateagent"] ~= nil, jobCounts["realestateagent"], '0')
+ })
+ if (count >= maxCount) then
+ print("Count is=" .. count .. " and maxCount=" .. maxCount)
+ count = 0;
+ pageCount = 1;
+ col = true;
+ curCount = 0;
+ end
+ if (count >= (pageSize * pageCount)) then
+ pageCount = pageCount + 1;
+ curCount = (pageSize * pageCount) - pageSize; -- Used to be -10
+ col = true;
+ end
+ SendNUIMessage({
+ display = true;
+ })
+
+ nui = true
+ while nui do
+ Wait(0)
+ if(IsControlPressed(0, key) == false) then
+ nui = false
+ SendNUIMessage({
+ display = false;
+ })
+ break
+ end
+ end
+ end
+ end
+ end
+end)
+avatarss = {}
+pingss = {}
+playerNames = {}
+discordNames = {}
+RegisterNetEvent('Bad-ServerList:DiscordUpdate')
+AddEventHandler('Bad-ServerList:DiscordUpdate', function(players)
+ discordNames = {};
+ for id, discordName in pairs(players) do
+ --print("[" .. id .. "] Avatar == " .. ava)
+ discordNames[id] = discordName;
+ end
+end)
+RegisterNetEvent('Bad-ServerList:PlayerUpdate')
+AddEventHandler('Bad-ServerList:PlayerUpdate', function(players)
+ playerNames = {};
+ for id, playerName in pairs(players) do
+ --print("[" .. id .. "] Avatar == " .. ava)
+ playerNames[id] = playerName;
+ end
+end)
+RegisterNetEvent('Bad-ServerList:PingUpdate')
+AddEventHandler('Bad-ServerList:PingUpdate', function(pingList)
+ pingss = {};
+ for id, ping in pairs(pingList) do
+ --print("[" .. id .. "] Avatar == " .. ava)
+ pingss[id] = ping;
+ end
+end)
+RegisterNetEvent('Bad-ServerList:ClientUpdate')
+AddEventHandler('Bad-ServerList:ClientUpdate', function(avas)
+ avatarss = {};
+ for id, ava in pairs(avas) do
+ --print("[" .. id .. "] Avatar == " .. ava)
+ avatarss[id] = ava;
+ end
+end)
\ No newline at end of file
diff --git a/resources/EGRP-Playerlist/config.lua b/resources/EGRP-Playerlist/config.lua
new file mode 100644
index 000000000..3207170e2
--- /dev/null
+++ b/resources/EGRP-Playerlist/config.lua
@@ -0,0 +1,11 @@
+----------------------------
+--- Bootstrap-Scoreboard ---
+----------------------------
+Config = {
+ Default_Profile = "https://media4.giphy.com/media/3zhxq2ttgN6rEw8SDx/giphy.gif", -- Discord Avatar column picture if theirs is not found
+ ScoreboardKey = 27, -- 27 is UP, 57 is F10
+ Discord_Not_Found = "Not Found", -- This will display under 'Discord Name' column if their name is not found
+ ServerIcon = "https://i.imgur.com/ZPdWoUn.png",
+ PageSize = 15,
+ ServerSlots = 64,
+}
\ No newline at end of file
diff --git a/resources/EGRP-Playerlist/server.lua b/resources/EGRP-Playerlist/server.lua
new file mode 100644
index 000000000..233c30fb6
--- /dev/null
+++ b/resources/EGRP-Playerlist/server.lua
@@ -0,0 +1,144 @@
+----------------------------
+--- Bootstrap-Scoreboard ---
+----------------------------
+ESX = nil;
+Citizen.CreateThread(function()
+ while ESX == nil do
+ TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
+ Citizen.Wait(0)
+ end
+end)
+
+avatars = {}
+discordNames = {}
+RegisterNetEvent('Bad-ServerList:SetupImg')
+AddEventHandler('Bad-ServerList:SetupImg', function()
+ -- Add their avatar
+ local src = source;
+ local license = ExtractIdentifiers(src).license;
+ -- Only run this code if they have not been set up already
+ if avatars[license] == nil then
+ local ava = GetAvatar(src);
+ local discordName = GetDiscordName(src);
+ if (ava ~= nil) then
+ avatars[license] = ava;
+ else
+ avatars[license] = Config.Default_Profile;
+ end
+ if (discordName ~= nil) then
+ discordNames[license] = discordName;
+ else
+ discordNames[license] = Config.Discord_Not_Found;
+ end
+ end
+end)
+AddEventHandler('onResourceStart', function(resourceName)
+ if (GetCurrentResourceName() == resourceName) then
+ -- It's this resource
+ for _, id in pairs(GetPlayers()) do
+ Wait(3000);
+ TriggerEvent('Bad-ServerList:SetupRestart', id);
+ end
+ end
+end)
+RegisterNetEvent('Bad-ServerList:SetupRestart')
+AddEventHandler('Bad-ServerList:SetupRestart', function(src)
+ -- Add their avatar
+ local ava = GetAvatar(src);
+ local discordName = GetDiscordName(src);
+ local license = ExtractIdentifiers(src).license;
+ if (ava ~= nil) then
+ avatars[license] = ava;
+ else
+ avatars[license] = Config.Default_Profile;;
+ end
+ if (discordName ~= nil) then
+ discordNames[license] = discordName;
+ else
+ discordNames[license] = Config.Discord_Not_Found;
+ end
+end)
+
+Citizen.CreateThread(function()
+ while true do
+ Wait((1000 * 5)); -- Every 5 seconds, update
+ local avatarIDs = {};
+ local pings = {};
+ local players = {};
+ local discords = {};
+ local jobCounts = {};
+ for _, id in ipairs(GetPlayers()) do
+ local license = ExtractIdentifiers(id).license;
+ local ping = GetPlayerPing(id);
+ players[id] = GetPlayerName(id);
+ if (ESX ~= nil) then
+ local xPlayer = ESX.GetPlayerFromId(id);
+ if (xPlayer ~= nil) then
+ if (jobCounts[xPlayer.job.name] ~= nil) then
+ local currCount = jobCounts[xPlayer.job.name];
+ jobCounts[xPlayer.job.name] = currCount + 1;
+ else
+ jobCounts[xPlayer.job.name] = 1;
+ end
+ end
+ end
+ pings[id] = ping;
+ if (avatars[license] ~= nil) then
+ avatarIDs[id] = avatars[license];
+ else
+ avatarIDs[id] = Config.Default_Profile;
+ end
+ if (discordNames[license] ~= nil) then
+ discords[id] = discordNames[license]
+ else
+ discords[id] = Config.Discord_Not_Found;
+ end
+ end
+ TriggerClientEvent('Bad-ServerList:PlayerUpdate', -1, players)
+ TriggerClientEvent('Bad-ServerList:PingUpdate', -1, pings)
+ TriggerClientEvent('Bad-ServerList:ClientUpdate', -1, avatarIDs)
+ TriggerClientEvent('Bad-ServerList:DiscordUpdate', -1, discords)
+ TriggerClientEvent('Bad-ServerList:JobCountUpdate', -1, jobCounts);
+ end
+end)
+
+
+function GetAvatar(user)
+ return exports.Badger_Discord_API:GetDiscordAvatar(user);
+end
+function GetDiscordName(user)
+ return exports.Badger_Discord_API:GetDiscordName(user);
+end
+
+function ExtractIdentifiers(src)
+ local identifiers = {
+ steam = "",
+ ip = "",
+ discord = "",
+ license = "",
+ xbl = "",
+ live = ""
+ }
+
+ --Loop over all identifiers
+ for i = 0, GetNumPlayerIdentifiers(src) - 1 do
+ local id = GetPlayerIdentifier(src, i)
+
+ --Convert it to a nice table.
+ if string.find(id, "steam") then
+ identifiers.steam = id
+ elseif string.find(id, "ip") then
+ identifiers.ip = id
+ elseif string.find(id, "discord") then
+ identifiers.discord = id
+ elseif string.find(id, "license") then
+ identifiers.license = id
+ elseif string.find(id, "xbl") then
+ identifiers.xbl = id
+ elseif string.find(id, "live") then
+ identifiers.live = id
+ end
+ end
+
+ return identifiers
+end
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Badger_Discord_API/LICENSE b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/LICENSE
new file mode 100644
index 000000000..a210d6be4
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Jared Scarito
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/resources/[EGRP-Discord-Integration]/Badger_Discord_API/README.md b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/README.md
new file mode 100644
index 000000000..e213a5abd
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/README.md
@@ -0,0 +1,153 @@
+# Badger_Discord_API
+
+## Documentation
+https://docs.badger.store/fivem-discord-scripts/badger_discord_api
+
+## Jared's Developer Community [Discord]
+[](https://discord.com/invite/WjB5VFz)
+
+## Notes
+Some methods of the API not may fully work or be broken. I was able to test most and 75% of it works. If something does not work, please just submit an issue or pull request for it on the GitHub page. I will be making a more reinforced documentation for this whole API sometime in the future, but for now please just make use of the example.lua file for understanding it all. Thanks!
+
+## What is it?
+This is essentially a Discord API for FiveM. It utilizes the REST API of Discord for all your essential needs :) Things that are heavy in Discord rate limiting (such as retreiving all server roles and player avatars) will be automatically stored to a cache for developers automatically. I will be moving all my scripts over to use this API for better ease of use. Some features include not having to gather role IDs at all, since the script gets the server's roles automatically, so you can just specify the role's name instead of role IDs at all (however, be aware that this will break then if someone changes the roles' names on Discord)... I hope you can all find some use for this, I know I will :P
+
+## Scripts that utilize the API
+https://forum.cfx.re/t/release-badgertools-major-revamp/665756/
+https://forum.cfx.re/t/discordaceperms-release/573044
+https://forum.cfx.re/t/release-bad-discordqueue-a-discord-role-based-queue-system-by-badger/1394685
+https://forum.cfx.re/t/discordtagids-i-know-i-know-i-only-make-discord-based-scripts/582513
+https://forum.cfx.re/t/discordchatroles-release/566338
+
+## Example Usage:
+
+```
+-- IMPORTANT:
+-- For use in other resources, you will need to use:
+-- exports.Badger_Discord_API:
+--
+-- For example:
+-- exports.Badger_Discord_API:GetRoleIdFromRoleName("roleName")
+
+RegisterCommand('testResource', function(source, args, rawCommand)
+ local user = source; -- The user
+
+
+
+-- function GetRoleIdFromRoleName(name)
+-- Returns nil if not found
+-- Returns Discord Role ID if found
+-- Usage:
+ local roleName = "Founder"; -- Change this to an existing role name on your Discord server
+
+ local roleID = GetRoleIdFromRoleName(roleName);
+ print("[Badger_Perms Example] The roleID for (" .. roleName .. ") is: " .. tostring(roleID));
+
+-- function IsDiscordEmailVerified(user)
+-- Returns false if not found
+-- Returns true if verified
+-- Usage:
+ local isVerified = IsDiscordEmailVerified(user);
+ print("[Badger_Perms Example] Player " .. GetPlayerName(user) .. " has Discord email verified?: " .. tostring(isVerified));
+
+-- function GetDiscordEmail(user)
+-- Returns nil if not found
+-- Returns Email if found
+-- Usage:
+ local emailAddr = GetDiscordEmail(user);
+ print("[Badger_Perms Example] Player " .. GetPlayerName(user) .. " has Discord email address: " .. tostring(emailAddr));
+
+-- function GetDiscordName(user)
+-- Returns nil if not found
+-- Returns Discord name if found
+-- Usage:
+ local name = GetDiscordName(user);
+ print("[Badger_Perms Example] Player " .. GetPlayerName(user) .. " has Discord name: " .. tostring(name));
+
+-- function GetGuildIcon()
+-- Returns nil if not found
+-- Returns URL if found
+-- Usage:
+ local icon_URL = GetGuildIcon();
+ print("[Badger_Perms Example] Guild icon URL is: " .. tostring(icon_URL));
+
+-- function GetGuildSplash()
+-- Returns nil if not found
+-- Returns URL if found
+-- Usage:
+ local splash_URL = GetGuildSplash();
+ print("[Badger_Perms Example] Guild splash URL is: " .. tostring(splash_URL));
+
+-- function GetGuildName()
+-- Returns nil if not found
+-- Returns name if found
+-- Usage:
+ local guildName = GetGuildName();
+ print("[Badger_Perms Example] Guild name is: " .. tostring(guildName));
+
+-- function GetGuildDescription()
+-- Returns nil if not found
+-- Returns description if found
+-- Usage:
+ local guildDesc = GetGuildDescription();
+ print("[Badger_Perms Example] Guild description is: " .. tostring(guildDesc));
+
+-- function GetGuildMemberCount()
+-- Returns nil if not found
+-- Returns member count if found
+-- Usage:
+ local guildMemCount = GetGuildMemberCount();
+ print("[Badger_Perms Example] Guild member count is: " .. tostring(guildMemCount));
+
+-- function GetGuildOnlineMemberCount()
+-- Returns nil if not found
+-- Returns description if found
+-- Usage:
+ local onlineMemCount = GetGuildOnlineMemberCount();
+ print("[Badger_Perms Example] Guild online member count is: " .. tostring(onlineMemCount));
+
+-- function GetDiscordAvatar(user)
+-- Returns nil if not found
+-- Returns URL if found
+-- Usage:
+ local avatar = GetDiscordAvatar(user);
+ print("[Badger_Perms Example] Player " .. GetPlayerName(user) .. " has Discord avatar: " .. tostring(avatar));
+
+-- function GetDiscordNickname(user)
+-- Returns nil if not found
+-- Returns nickname if found
+-- Usage:
+ local nickname = GetDiscordNickname(user);
+ print("[Badger_Perms Example] Player " .. GetPlayerName(user) .. " has Discord nickname: " .. tostring(nickname));
+
+-- function GetGuildRoleList()
+-- Returns nil if not found
+-- Returns associative array if found
+-- Usage:
+ local roles = GetGuildRoleList();
+ for roleName, roleID in pairs(roles) do
+ print(roleName .. " === " .. roleID);
+ end
+
+-- function GetDiscordRoles(user)
+-- Returns nil if not found
+-- Returns array if found
+-- Usage:
+ local roles = GetDiscordRoles(user)
+ for i = 1, #roles do
+ print(roles[i]);
+ end
+
+-- function CheckEqual(role1, role2)
+-- Returns false if not equal
+-- Returns true if equal
+-- Usage:
+ local isRolesEqual = CheckEqual("Founder", 597446100206616596);
+ local isRolesEqual2 = CheckEqual("FounderRef", "Founder"); -- Refer to config.lua file, this is basically checking if FounderRef in the config is
+ -- equal to the Founder role's ID
+end)
+```
+
+## Download
+
+https://github.com/JaredScar/Badger_Discord_API
diff --git a/resources/[EGRP-Discord-Integration]/Badger_Discord_API/__resource.lua b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/__resource.lua
new file mode 100644
index 000000000..c367364dc
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/__resource.lua
@@ -0,0 +1,30 @@
+resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
+
+client_scripts {
+ 'client.lua',
+}
+
+server_scripts {
+ 'config.lua',
+ "server.lua", -- Uncomment this line
+ --"example.lua" -- Remove this when you actually start using the script!!!
+}
+
+server_exports {
+ "GetDiscordRoles",
+ "GetRoleIdfromRoleName",
+ "GetDiscordAvatar",
+ "GetDiscordName",
+ "GetDiscordEmail",
+ "IsDiscordEmailVerified",
+ "GetDiscordNickname",
+ "GetGuildIcon",
+ "GetGuildSplash",
+ "GetGuildName",
+ "GetGuildDescription",
+ "GetGuildMemberCount",
+ "GetGuildOnlineMemberCount",
+ "GetGuildRoleList",
+ "ResetCaches",
+ "CheckEqual"
+}
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Badger_Discord_API/client.lua b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/client.lua
new file mode 100644
index 000000000..607b28b8d
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/client.lua
@@ -0,0 +1,8 @@
+triggered = false;
+AddEventHandler("playerSpawned", function()
+ if not triggered then
+ triggered = true;
+ Citizen.Wait((1000 * 20)); -- Wait 20 seconds
+ TriggerServerEvent('Badger_Discord_API:PlayerLoaded');
+ end
+end)
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Badger_Discord_API/config.lua b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/config.lua
new file mode 100644
index 000000000..6270492e1
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/config.lua
@@ -0,0 +1,38 @@
+Config = {
+ Guild_ID = '361895986198609920',
+ Bot_Token = 'NTI4NjYwNTc5MjA4OTIxMDk4.DwljPg.T-EapLt0H4szdfByBQIh7ks3kb8',
+ RoleList = {},
+ ["Silver Supporter 🥈"] = "596414797977878530",
+ ["Gold Supporter 🥇"] = "742482159851536455",
+ ["Platinum Supporter 💠"] = "742482158945566771",
+ ["Diamond Supporter 💎"] = "742482161680122047",
+ ["LSPD"] = "807381507622305852",
+ ["BCSO"] = "807381508167565352",
+ ["SASP"] = "807381508859887667",
+ ["SAFD"] = "807381509195300905",
+ ["Civilian I"] = "813907383892967424",
+ ["Civilian II"] = "876585455615889450",
+ ["Civilian III"] = "876585456387629066",
+ ["Civilian IV"] = "876585900946128936",
+ ["Civilian V"] = "876585431901294663",
+ ["EG | Helper"] = "538822780662054963",
+ ["EG | Staff"] = "608583076037001225",
+ ["EG | Sr. Staff"] = "789551229549281331",
+ ["EG | Moderator"] = "517060882686279701",
+ ["EG | Sr. Moderator"] = "789538166536798248",
+ ["EG | Admin"] = "635155687688634399",
+ ["EG | Sr. Admin"] = "556158473981788176",
+ ["EG | Head of Staff"] = "650653280275267591",
+ ["EG | Server Developer"] = "671141073728307228",
+ ["EG | Owner"] = "361899298209923075",
+}
+
+Config.Splash = {
+ Header_IMG = 'https://forum.cfx.re/uploads/default/original/3X/a/6/a6ad03c9fb60fa7888424e7c9389402846107c7e.png',
+ Enabled = false,
+ Wait = 10, -- How many seconds should splash page be shown for? (Max is 12)
+ Heading1 = "Welcome to [ServerName]",
+ Heading2 = "Make sure to join our Discord and check out our website!",
+ Discord_Link = 'https://discord.gg',
+ Website_Link = 'https://badger.store',
+}
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Badger_Discord_API/example.lua b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/example.lua
new file mode 100644
index 000000000..0d28e1042
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/example.lua
@@ -0,0 +1,124 @@
+-- IMPORTANT:
+-- For use in other resources, you will need to use:
+-- exports.Badger_Discord_API:
+--
+-- For example:
+-- exports.Badger_Discord_API:GetRoleIdFromRoleName("roleName")
+
+RegisterCommand('testResource', function(source, args, rawCommand)
+ local user = source; -- The user
+
+
+
+-- function GetRoleIdFromRoleName(name)
+-- Returns nil if not found
+-- Returns Discord Role ID if found
+-- Usage:
+ local roleName = "Founder"; -- Change this to an existing role name on your Discord server
+
+ local roleID = GetRoleIdFromRoleName(roleName);
+ print("[Badger_Perms Example] The roleID for (" .. roleName .. ") is: " .. tostring(roleID));
+
+-- function IsDiscordEmailVerified(user)
+-- Returns false if not found
+-- Returns true if verified
+-- Usage:
+ local isVerified = IsDiscordEmailVerified(user);
+ print("[Badger_Perms Example] Player " .. GetPlayerName(user) .. " has Discord email verified?: " .. tostring(isVerified));
+
+-- function GetDiscordEmail(user)
+-- Returns nil if not found
+-- Returns Email if found
+-- Usage:
+ local emailAddr = GetDiscordEmail(user);
+ print("[Badger_Perms Example] Player " .. GetPlayerName(user) .. " has Discord email address: " .. tostring(emailAddr));
+
+-- function GetDiscordName(user)
+-- Returns nil if not found
+-- Returns Discord name if found
+-- Usage:
+ local name = GetDiscordName(user);
+ print("[Badger_Perms Example] Player " .. GetPlayerName(user) .. " has Discord name: " .. tostring(name));
+
+-- function GetGuildIcon()
+-- Returns nil if not found
+-- Returns URL if found
+-- Usage:
+ local icon_URL = GetGuildIcon();
+ print("[Badger_Perms Example] Guild icon URL is: " .. tostring(icon_URL));
+
+-- function GetGuildSplash()
+-- Returns nil if not found
+-- Returns URL if found
+-- Usage:
+ local splash_URL = GetGuildSplash();
+ print("[Badger_Perms Example] Guild splash URL is: " .. tostring(splash_URL));
+
+-- function GetGuildName()
+-- Returns nil if not found
+-- Returns name if found
+-- Usage:
+ local guildName = GetGuildName();
+ print("[Badger_Perms Example] Guild name is: " .. tostring(guildName));
+
+-- function GetGuildDescription()
+-- Returns nil if not found
+-- Returns description if found
+-- Usage:
+ local guildDesc = GetGuildDescription();
+ print("[Badger_Perms Example] Guild description is: " .. tostring(guildDesc));
+
+-- function GetGuildMemberCount()
+-- Returns nil if not found
+-- Returns member count if found
+-- Usage:
+ local guildMemCount = GetGuildMemberCount();
+ print("[Badger_Perms Example] Guild member count is: " .. tostring(guildMemCount));
+
+-- function GetGuildOnlineMemberCount()
+-- Returns nil if not found
+-- Returns description if found
+-- Usage:
+ local onlineMemCount = GetGuildOnlineMemberCount();
+ print("[Badger_Perms Example] Guild online member count is: " .. tostring(onlineMemCount));
+
+-- function GetDiscordAvatar(user)
+-- Returns nil if not found
+-- Returns URL if found
+-- Usage:
+ local avatar = GetDiscordAvatar(user);
+ print("[Badger_Perms Example] Player " .. GetPlayerName(user) .. " has Discord avatar: " .. tostring(avatar));
+
+-- function GetDiscordNickname(user)
+-- Returns nil if not found
+-- Returns nickname if found
+-- Usage:
+ local nickname = GetDiscordNickname(user);
+ print("[Badger_Perms Example] Player " .. GetPlayerName(user) .. " has Discord nickname: " .. tostring(nickname));
+
+-- function GetGuildRoleList()
+-- Returns nil if not found
+-- Returns associative array if found
+-- Usage:
+ local roles = GetGuildRoleList();
+ for roleName, roleID in pairs(roles) do
+ print(roleName .. " === " .. roleID);
+ end
+
+-- function GetDiscordRoles(user)
+-- Returns nil if not found
+-- Returns array if found
+-- Usage:
+ local roles = GetDiscordRoles(user)
+ for i = 1, #roles do
+ print(roles[i]);
+ end
+
+-- function CheckEqual(role1, role2)
+-- Returns false if not equal
+-- Returns true if equal
+-- Usage:
+ local isRolesEqual = CheckEqual("Founder", 597446100206616596);
+ local isRolesEqual2 = CheckEqual("FounderRef", "Founder"); -- Refer to config.lua file, this is basically checking if FounderRef in the config is
+ -- equal to the Founder role's ID
+end)
diff --git a/resources/[EGRP-Discord-Integration]/Badger_Discord_API/server.lua b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/server.lua
new file mode 100644
index 000000000..f14878c80
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Badger_Discord_API/server.lua
@@ -0,0 +1,436 @@
+local FormattedToken = "Bot " .. Config.Bot_Token
+
+Citizen.CreateThread(function()
+ if (GetCurrentResourceName() ~= "Badger_Discord_API") then
+ --StopResource(GetCurrentResourceName());
+ print("[" .. GetCurrentResourceName() .. "] " .. "IMPORTANT: This resource must be named Badger_Discord_API for it to work properly with other scripts...");
+ end
+ --print("[Badger_Discord_API] For support, make sure to join Badger's official Discord server: discord.gg/WjB5VFz");
+end)
+
+tracked = {}
+
+RegisterNetEvent('Badger_Discord_API:PlayerLoaded')
+AddEventHandler('Badger_Discord_API:PlayerLoaded', function()
+ if (GetCurrentResourceName() ~= "Badger_Discord_API") then
+ TriggerClientEvent('chatMessage', -1, '^1[^5SCRIPT ERROR^1] ^3The script ^1' .. GetCurrentResourceName() .. ' ^3will not work properly... You must '
+ .. 'rename the resource to ^1Badger_Discord_API');
+ end
+ local license = ExtractIdentifiers(source).license;
+ if (tracked[license] == nil) then
+ tracked[license] = true;
+ --TriggerClientEvent('chatMessage', source,
+ --'^1[^5Badger_Discord_API^1] ^3The Discord API script was created by Badger. You may join his Discord at: ^6discord.gg/WjB5VFz')
+ end
+end)
+
+--card = '{"type":"AdaptiveCard","$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2","body":[{"type":"Container","items":[{"type":"TextBlock","text":"Badger_Discord_API","wrap":true,"fontType":"Default","size":"ExtraLarge","weight":"Bolder","color":"Light","horizontalAlignment":"Center"},{"type":"TextBlock","text":"' .. Config.Splash.Heading1 .. '","wrap":true,"size":"Large","weight":"Bolder","color":"Light"},{"type":"TextBlock","text":"' .. Config.Splash.Heading2 .. '","wrap":true,"color":"Light","size":"Medium"},{"type":"ColumnSet","height":"stretch","minHeight":"100px","bleed":true,"horizontalAlignment":"Center","columns":[{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Discord","url":"' .. Config.Splash.Discord_Link .. '","style":"positive"}]}],"height":"stretch"},{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Website","style":"positive","url":"' .. Config.Splash.Website_Link .. '"}]}]}]},{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Click to join Badger\'s Discord","style":"destructive","iconUrl":"https://i.gyazo.com/c629f37bb1aeed2c1bc1768fdc93bc1a.gif","url":"https://discord.com/invite/WjB5VFz"}]}],"style":"default","bleed":true,"height":"stretch","isVisible":true}]}'
+card = '{"type":"AdaptiveCard","$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2","body":[{"type":"Image","url":"' .. Config.Splash.Header_IMG .. '","horizontalAlignment":"Center"},{"type":"Container","items":[{"type":"TextBlock","text":"Badger_Discord_API","wrap":true,"fontType":"Default","size":"ExtraLarge","weight":"Bolder","color":"Light","horizontalAlignment":"Center"},{"type":"TextBlock","text":"' .. Config.Splash.Heading1 .. '","wrap":true,"size":"Large","weight":"Bolder","color":"Light", "horizontalAlignment":"Center"},{"type":"TextBlock","text":"' .. Config.Splash.Heading2 .. '","wrap":true,"color":"Light","size":"Medium","horizontalAlignment":"Center"},{"type":"ColumnSet","height":"stretch","minHeight":"100px","bleed":true,"horizontalAlignment":"Center","columns":[{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Discord","url":"' .. Config.Splash.Discord_Link .. '","style":"positive"}]}],"height":"stretch"},{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Website","style":"positive","url":"' .. Config.Splash.Website_Link .. '"}]}]}]},{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Click to join Badger\'s Discord","style":"destructive","iconUrl":"https://i.gyazo.com/c629f37bb1aeed2c1bc1768fdc93bc1a.gif","url":"https://discord.com/invite/WjB5VFz"}]}],"style":"default","bleed":true,"height":"stretch","isVisible":true}]}'
+if Config.Splash.Enabled then
+ AddEventHandler('playerConnecting', function(name, setKickReason, deferrals)
+ -- Player is connecting
+ deferrals.defer();
+ local src = source;
+ local toEnd = false;
+ local count = 0;
+ while not toEnd do
+ deferrals.presentCard(card,
+ function(data, rawData)
+ end)
+ Wait((1000))
+ count = count + 1;
+ if count == Config.Splash.Wait then
+ toEnd = true;
+ end
+ end
+ deferrals.done();
+ end)
+end
+
+function ExtractIdentifiers(src)
+ local identifiers = {
+ steam = "",
+ ip = "",
+ discord = "",
+ license = "",
+ xbl = "",
+ live = ""
+ }
+
+ --Loop over all identifiers
+ for i = 0, GetNumPlayerIdentifiers(src) - 1 do
+ local id = GetPlayerIdentifier(src, i)
+
+ --Convert it to a nice table.
+ if string.find(id, "steam") then
+ identifiers.steam = id
+ elseif string.find(id, "ip") then
+ identifiers.ip = id
+ elseif string.find(id, "discord") then
+ identifiers.discord = id
+ elseif string.find(id, "license") then
+ identifiers.license = id
+ elseif string.find(id, "xbl") then
+ identifiers.xbl = id
+ elseif string.find(id, "live") then
+ identifiers.live = id
+ end
+ end
+
+ return identifiers
+end
+function DiscordRequest(method, endpoint, jsondata)
+ local data = nil
+ PerformHttpRequest("https://discordapp.com/api/"..endpoint, function(errorCode, resultData, resultHeaders)
+ data = {data=resultData, code=errorCode, headers=resultHeaders}
+ end, method, #jsondata > 0 and json.encode(jsondata) or "", {["Content-Type"] = "application/json", ["Authorization"] = FormattedToken})
+
+ while data == nil do
+ Citizen.Wait(0)
+ end
+
+ return data
+end
+
+function GetRoleIdFromRoleName(name)
+ if (Caches.RoleList ~= nil) then
+ return tonumber(Caches.RoleList[name]);
+ else
+ local roles = GetGuildRoleList();
+ return tonumber(roles[name]);
+ end
+end
+
+function CheckEqual(role1, role2)
+ local checkStr1 = false;
+ local checkStr2 = false;
+ local roleID1 = role1;
+ local roleID2 = role2;
+ if type(role1) == "string" then checkStr1 = true end;
+ if type(role2) == "string" then checkStr2 = true end;
+ if checkStr1 then
+ local roles = GetGuildRoleList();
+ for roleName, roleID in pairs(roles) do
+ if roleName == role1 then
+ roleID1 = roleID;
+ end
+ end
+ local roles2 = Config.RoleList;
+ for roleRef, roleID in pairs(roles2) do
+ if roleRef == role1 then
+ roleID1 = roleID;
+ end
+ end
+ end
+ if checkStr2 then
+ local roles = GetGuildRoleList();
+ for roleName, roleID in pairs(roles) do
+ if roleName == role2 then
+ roleID2 = roleID;
+ end
+ end
+ local roles2 = Config.RoleList;
+ for roleRef, roleID in pairs(roles2) do
+ if roleRef == role2 then
+ roleID2 = roleID;
+ end
+ end
+ end
+ if tonumber(roleID1) == tonumber(roleID2) then
+ return true;
+ end
+ return false;
+end
+
+function IsDiscordEmailVerified(user)
+ local discordId = nil
+ local isVerified = false;
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ break
+ end
+ end
+ if discordId then
+ local endpoint = ("users/%s"):format(discordId)
+ local member = DiscordRequest("GET", endpoint, {})
+ if member.code == 200 then
+ local data = json.decode(member.data)
+ if data ~= nil then
+ -- It is valid data
+ --print("The data for User " .. GetPlayerName(user) .. " is: ");
+ --print(data.avatar);
+ isVerified = data.verified;
+ --print("---")
+ end
+ else
+ print("[Badger_Perms] ERROR: Code 200 was not reached. Error provided: " .. member.data)
+ end
+ end
+ return isVerified;
+end
+
+function GetDiscordEmail(user)
+ local discordId = nil
+ local emailData = nil;
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ break
+ end
+ end
+ if discordId then
+ local endpoint = ("users/%s"):format(discordId)
+ local member = DiscordRequest("GET", endpoint, {})
+ if member.code == 200 then
+ local data = json.decode(member.data)
+ if data ~= nil then
+ -- It is valid data
+ --print("The data for User " .. GetPlayerName(user) .. " is: ");
+ --print(data.avatar);
+ emailData = data.email;
+ --print("---")
+ end
+ else
+ print("[Badger_Perms] ERROR: Code 200 was not reached. Error provided: " .. member.data)
+ end
+ end
+ return emailData;
+end
+
+function GetDiscordName(user)
+ local discordId = nil
+ local nameData = nil;
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ break
+ end
+ end
+ if discordId then
+ local endpoint = ("users/%s"):format(discordId)
+ local member = DiscordRequest("GET", endpoint, {})
+ if member.code == 200 then
+ local data = json.decode(member.data)
+ if data ~= nil then
+ -- It is valid data
+ --print("The data for User " .. GetPlayerName(user) .. " is: ");
+ --print(data.avatar);
+ nameData = data.username .. "#" .. data.discriminator;
+ --print("---")
+ end
+ else
+ print("[Badger_Perms] ERROR: Code 200 was not reached. Error provided: " .. member.data)
+ end
+ end
+ return nameData;
+end
+
+function GetGuildIcon()
+ local guild = DiscordRequest("GET", "guilds/"..Config.Guild_ID, {})
+ if guild.code == 200 then
+ local data = json.decode(guild.data)
+ if (data.icon:sub(1, 1) and data.icon:sub(2, 2) == "_") then
+ -- It's a gif
+ return 'https://cdn.discordapp.com/icons/' .. Config.Guild_ID .. "/" .. data.icon .. ".gif";
+ else
+ -- Image
+ return 'https://cdn.discordapp.com/icons/' .. Config.Guild_ID .. "/" .. data.icon .. ".png";
+ end
+ else
+ print("[Badger_Perms] An error occured, please check your config and ensure everything is correct. Error: "..(guild.data or guild.code))
+ end
+ return nil;
+end
+
+function GetGuildSplash()
+ local guild = DiscordRequest("GET", "guilds/"..Config.Guild_ID, {})
+ if guild.code == 200 then
+ local data = json.decode(guild.data)
+ -- Image
+ return 'https://cdn.discordapp.com/splashes/' .. Config.Guild_ID .. "/" .. data.icon .. ".png";
+ else
+ print("[Badger_Perms] An error occured, please check your config and ensure everything is correct. Error: "..(guild.data or guild.code))
+ end
+ return nil;
+end
+
+function GetGuildName()
+ local guild = DiscordRequest("GET", "guilds/"..Config.Guild_ID, {})
+ if guild.code == 200 then
+ local data = json.decode(guild.data)
+ -- Image
+ return data.name;
+ else
+ print("[Badger_Perms] An error occured, please check your config and ensure everything is correct. Error: "..(guild.data or guild.code))
+ end
+ return nil;
+end
+
+function GetGuildDescription()
+ local guild = DiscordRequest("GET", "guilds/"..Config.Guild_ID, {})
+ if guild.code == 200 then
+ local data = json.decode(guild.data)
+ -- Image
+ return data.description;
+ else
+ print("[Badger_Perms] An error occured, please check your config and ensure everything is correct. Error: "..(guild.data or guild.code))
+ end
+ return nil;
+end
+
+function GetGuildMemberCount()
+ local guild = DiscordRequest("GET", "guilds/"..Config.Guild_ID.."?with_counts=true", {})
+ if guild.code == 200 then
+ local data = json.decode(guild.data)
+ -- Image
+ return data.approximate_member_count;
+ else
+ print("[Badger_Perms] An error occured, please check your config and ensure everything is correct. Error: "..(guild.data or guild.code))
+ end
+ return nil;
+end
+
+function GetGuildOnlineMemberCount()
+ local guild = DiscordRequest("GET", "guilds/"..Config.Guild_ID.."?with_counts=true", {})
+ if guild.code == 200 then
+ local data = json.decode(guild.data)
+ return data.approximate_presence_count;
+ else
+ print("[Badger_Perms] An error occured, please check your config and ensure everything is correct. Error: "..(guild.data or guild.code))
+ end
+ return nil;
+end
+
+function GetDiscordAvatar(user)
+ local discordId = nil
+ local imgURL = nil;
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ break
+ end
+ end
+ if discordId then
+ if Caches.Avatars[discordId] == nil then
+ local endpoint = ("users/%s"):format(discordId)
+ local member = DiscordRequest("GET", endpoint, {})
+ if member.code == 200 then
+ local data = json.decode(member.data)
+ if data ~= nil and data.avatar ~= nil then
+ -- It is valid data
+ --print("The data for User " .. GetPlayerName(user) .. " is: ");
+ --print(data.avatar);
+ if (data.avatar:sub(1, 1) and data.avatar:sub(2, 2) == "_") then
+ --print("IMG URL: " .. "https://cdn.discordapp.com/avatars/" .. discordId .. "/" .. data.avatar .. ".gif")
+ imgURL = "https://cdn.discordapp.com/avatars/" .. discordId .. "/" .. data.avatar .. ".gif";
+ else
+ --print("IMG URL: " .. "https://cdn.discordapp.com/avatars/" .. discordId .. "/" .. data.avatar .. ".png")
+ imgURL = "https://cdn.discordapp.com/avatars/" .. discordId .. "/" .. data.avatar .. ".png"
+ end
+ --print("---")
+ end
+ else
+ print("[Badger_Perms] ERROR: Code 200 was not reached. Error provided: " .. member.data)
+ end
+ Caches.Avatars[discordId] = imgURL;
+ else
+ imgURL = Caches.Avatars[discordId];
+ end
+ else
+ print("[Badger_Perms] ERROR: Discord ID was not found...")
+ end
+ return imgURL;
+end
+
+Caches = {
+ Avatars = {}
+}
+function ResetCaches()
+ Caches = {};
+end
+
+function GetGuildRoleList()
+ if (Caches.RoleList == nil) then
+ local guild = DiscordRequest("GET", "guilds/"..Config.Guild_ID, {})
+ if guild.code == 200 then
+ local data = json.decode(guild.data)
+ -- Image
+ local roles = data.roles;
+ local roleList = {};
+ for i = 1, #roles do
+ roleList[roles[i].name] = roles[i].id;
+ end
+ Caches.RoleList = roleList;
+ else
+ print("[Badger_Perms] An error occured, please check your config and ensure everything is correct. Error: "..(guild.data or guild.code))
+ Caches.RoleList = nil;
+ end
+ end
+ return Caches.RoleList;
+end
+
+function GetDiscordRoles(user)
+ local discordId = nil
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ break;
+ end
+ end
+
+ if discordId then
+ local endpoint = ("guilds/%s/members/%s"):format(Config.Guild_ID, discordId)
+ local member = DiscordRequest("GET", endpoint, {})
+ if member.code == 200 then
+ local data = json.decode(member.data)
+ local roles = data.roles
+ local found = true
+ return roles
+ else
+ print("[Badger_Perms] ERROR: Code 200 was not reached... Returning false. [Member Data NOT FOUND]")
+ return false
+ end
+ else
+ print("[Badger_Perms] ERROR: Discord was not connected to user's Fivem account...")
+ return false
+ end
+ return false
+end
+
+function GetDiscordNickname(user)
+ local discordId = nil
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ break
+ end
+ end
+
+ if discordId then
+ local endpoint = ("guilds/%s/members/%s"):format(Config.Guild_ID, discordId)
+ local member = DiscordRequest("GET", endpoint, {})
+ if member.code == 200 then
+ local data = json.decode(member.data)
+ local nickname = data.nick
+ return nickname;
+ else
+ print("[Badger_Perms] ERROR: Code 200 was not reached. Error provided: "..member.data)
+ return nil;
+ end
+ else
+ print("[Badger_Perms] ERROR: Discord was not connected to user's Fivem account...")
+ return nil;
+ end
+ return nil;
+end
+
+Citizen.CreateThread(function()
+ local guild = DiscordRequest("GET", "guilds/"..Config.Guild_ID, {})
+ if guild.code == 200 then
+ local data = json.decode(guild.data)
+ print("[Badger_Perms] Permission system guild set to: "..data.name.." ("..data.id..")")
+ else
+ print("[Badger_Perms] An error occured, please check your config and ensure everything is correct. Error: "..(guild.data or guild.code))
+ end
+end)
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Discord-Logging/__resource.lua b/resources/[EGRP-Discord-Integration]/Discord-Logging/__resource.lua
new file mode 100644
index 000000000..b94ce3c0a
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-Logging/__resource.lua
@@ -0,0 +1,10 @@
+resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
+
+description 'Server Logging'
+
+version '1.0'
+
+server_script 'server.lua'
+client_script 'client.lua'
+
+--edit and cleand up by NebelRebell
diff --git a/resources/[EGRP-Discord-Integration]/Discord-Logging/client.lua b/resources/[EGRP-Discord-Integration]/Discord-Logging/client.lua
new file mode 100644
index 000000000..429ba8012
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-Logging/client.lua
@@ -0,0 +1,75 @@
+-- Made by Tazio
+-- Help by qalle-fivem (esx_checkdeathcause)
+
+local Melee = { -1569615261, 1737195953, 1317494643, -1786099057, 1141786504, -2067956739, -868994466 }
+local Bullet = { 453432689, 1593441988, 584646201, -1716589765, 324215364, 736523883, -270015777, -1074790547, -2084633992, -1357824103, -1660422300, 2144741730, 487013001, 2017895192, -494615257, -1654528753, 100416529, 205991906, 1119849093 }
+local Knife = { -1716189206, 1223143800, -1955384325, -1833087301, 910830060, }
+local Car = { 133987706, -1553120962 }
+local Animal = { -100946242, 148160082 }
+local FallDamage = { -842959696 }
+local Explosion = { -1568386805, 1305664598, -1312131151, 375527679, 324506233, 1752584910, -1813897027, 741814745, -37975472, 539292904, 341774354, -1090665087 }
+local Gas = { -1600701090 }
+local Burn = { 615608432, 883325847, -544306709 }
+local Drown = { -10959621, 1936677264 }
+
+Citizen.CreateThread(function()
+ local alreadyDead = false
+
+ while true do
+ Citizen.Wait(50)
+ local playerPed = GetPlayerPed(-1)
+ if IsEntityDead(playerPed) and not alreadyDead then
+ local playerName = GetPlayerName(PlayerId())
+ killer = GetPedKiller(playerPed)
+ killername = false
+
+ for id = 0, 64 do
+ if killer == GetPlayerPed(id) then
+ killername = GetPlayerName(id)
+ end
+ end
+
+ local death = GetPedCauseOfDeath(playerPed)
+
+ if checkArray (Melee, death) then
+ TriggerServerEvent('playerDied', killername .. " meleed " .. playerName)
+ elseif checkArray (Bullet, death) then
+ TriggerServerEvent('playerDied', killername .. " shot " .. playerName)
+ elseif checkArray (Knife, death) then
+ TriggerServerEvent('playerDied', killername .. " stabbed " .. playerName)
+ elseif checkArray (Car, death) then
+ TriggerServerEvent('playerDied', killername .. " hit " .. playerName)
+ elseif checkArray (Animal, death) then
+ TriggerServerEvent('playerDied', playerName .. " died by an animal")
+ elseif checkArray (FallDamage, death) then
+ TriggerServerEvent('playerDied', playerName .. " died of fall damage")
+ elseif checkArray (Explosion, death) then
+ TriggerServerEvent('playerDied', playerName .. " died of an explosion")
+ elseif checkArray (Gas, death) then
+ TriggerServerEvent('playerDied', playerName .. " died of gas")
+ elseif checkArray (Burn, death) then
+ TriggerServerEvent('playerDied', playerName .. " burned to death")
+ elseif checkArray (Drown, death) then
+ TriggerServerEvent('playerDied', playerName .. " drowned")
+ else
+ TriggerServerEvent('playerDied', playerName .. " was killed by an unknown force")
+ --print(death)
+ end
+
+ alreadyDead = true
+ end
+
+ if not IsEntityDead(playerPed) then
+ alreadyDead = false
+ end
+ end
+end)
+
+function checkArray (array, val)
+ for name, value in ipairs(array) do
+ if value == val then
+ return true
+ end
+ end
+ return false
+end
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Discord-Logging/server.lua b/resources/[EGRP-Discord-Integration]/Discord-Logging/server.lua
new file mode 100644
index 000000000..66cfcd890
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-Logging/server.lua
@@ -0,0 +1,89 @@
+-- Made by Tazio
+
+local DISCORD_WEBHOOK = "https://discord.com/api/webhooks/807394115561979935/-gtiRGG6drFwJ_8e2vGG-SxJPhEb-tQTq_0r0664Q8CdtkLvj6BDxmiyE8Oc92VYuCMH"
+local DISCORD_NAME = "Elite Gaming RP"
+local STEAM_KEY = "0C034D20C57C8D6C5A8EED855916981F"
+local DISCORD_IMAGE = "https://i.imgur.com/lF8nHnz.jpg" -- default is FiveM logo
+
+--DON'T EDIT BELOW THIS
+
+PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = DISCORD_NAME, content = "Discord Webhook is **ONLINE**", avatar_url = DISCORD_IMAGE}), { ['Content-Type'] = 'application/json' })
+
+AddEventHandler('chatMessage', function(source, name, message)
+
+ if string.match(message, "@everyone") then
+ message = message:gsub("@everyone", "`@everyone`")
+ end
+ if string.match(message, "@here") then
+ message = message:gsub("@here", "`@here`")
+ end
+ --print(tonumber(GetIDFromSource('steam', source), 16)) -- DEBUGGING
+ --print('https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=' .. STEAM_KEY .. '&steamids=' .. tonumber(GetIDFromSource('steam', source), 16))
+ if STEAM_KEY == '' or STEAM_KEY == nil then
+ PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = name .. " [" .. source .. "]", content = message, tts = false}), { ['Content-Type'] = 'application/json' })
+ else
+ PerformHttpRequest('https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=' .. STEAM_KEY .. '&steamids=' .. tonumber(GetIDFromSource('steam', source), 16), function(err, text, headers)
+ local image = string.match(text, '"avatarfull":"(.-)","')
+ --print(image) -- DEBUGGING
+ PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = name .. " [" .. source .. "]", content = message, avatar_url = image, tts = false}), { ['Content-Type'] = 'application/json' })
+ end)
+ end
+end)
+
+AddEventHandler('playerConnecting', function()
+ --PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = DISCORD_NAME, content = "```CSS\n".. GetPlayerName(source) .. " connecting\n```", avatar_url = DISCORD_IMAGE}), { ['Content-Type'] = 'application/json' })
+ sendToDiscord("Server Login", "**" .. GetPlayerName(source) .. "** is connecting to the server.", 65280)
+end)
+
+AddEventHandler('playerDropped', function(reason)
+ local color = 16711680
+ if string.match(reason, "Kicked") or string.match(reason, "Banned") then
+ color = 16007897
+ end
+ sendToDiscord("Server Logout", "**" .. GetPlayerName(source) .. "** has left the server. \n Reason: " .. reason, color)
+end)
+
+RegisterServerEvent('playerDied')
+AddEventHandler('playerDied',function(message)
+ sendToDiscord("Death log", message, 16711680)
+end)
+
+function GetIDFromSource(Type, ID) --(Thanks To WolfKnight [forum.FiveM.net])
+ local IDs = GetPlayerIdentifiers(ID)
+ for k, CurrentID in pairs(IDs) do
+ local ID = stringsplit(CurrentID, ':')
+ if (ID[1]:lower() == string.lower(Type)) then
+ return ID[2]:lower()
+ end
+ end
+ return nil
+end
+
+function stringsplit(input, seperator)
+ if seperator == nil then
+ seperator = '%s'
+ end
+
+ local t={} ; i=1
+
+ for str in string.gmatch(input, '([^'..seperator..']+)') do
+ t[i] = str
+ i = i + 1
+ end
+
+ return t
+end
+
+function sendToDiscord(name, message, color)
+ local connect = {
+ {
+ ["color"] = color,
+ ["title"] = "**".. name .."**",
+ ["description"] = message,
+ ["footer"] = {
+ ["text"] = "Server Logging",
+ },
+ }
+ }
+ PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = DISCORD_NAME, embeds = connect, avatar_url = DISCORD_IMAGE}), { ['Content-Type'] = 'application/json' })
+end
diff --git a/resources/[EGRP-Discord-Integration]/Discord-Queue/Badger_Discord_Queue.zip b/resources/[EGRP-Discord-Integration]/Discord-Queue/Badger_Discord_Queue.zip
new file mode 100644
index 000000000..b74391aa6
Binary files /dev/null and b/resources/[EGRP-Discord-Integration]/Discord-Queue/Badger_Discord_Queue.zip differ
diff --git a/resources/[EGRP-Discord-Integration]/Discord-Queue/README.md b/resources/[EGRP-Discord-Integration]/Discord-Queue/README.md
new file mode 100644
index 000000000..2cbd1970b
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-Queue/README.md
@@ -0,0 +1,68 @@
+# Documentation as well as updates to this resource have been moved to: https://docs.badger.store/fivem-discord-scripts/bad-discordqueue
+
+## Jared's Developer Community [Discord]
+[](https://discord.com/invite/WjB5VFz)
+
+## All I ask
+
+All I ask is that if you enjoy this resource, please give it a like on the forum page, on GitHub (if you have an account), and pop me a follow over on GitHub.
+
+## What is it?
+
+This is basically a discord queue for logging into a server. When you connect to the server, you get added to a queue. Depending on your priority, you can be at the back of the queue or added to the top automatically. This all depends on what discord roles you have considering it works off of priority numbers. I'm not the best at writing descriptions. I'll be honest, I personally am probably not going to use this script, but I had a lot of people request this script from me, so here it is. Why not increase my rep within the Fivem community?
+
+## Dependencies
+
+https://github.com/sadboilogan/discord_perms
+
+## Installation
+
+https://www.youtube.com/watch?v=sjbFzkII2T0
+
+## Screenshots
+
+
+
+## Configuration
+
+```
+Config = {
+ Default_Prio = 500000, -- This is the default priority value if a discord isn't found
+ Displays = {
+ Prefix = '[BadgerDiscordQueue]',
+ ConnectingLoop = {
+ '🦡🌿🦡🌿🦡🌿',
+ '🌿🦡🌿🦡🌿🦡',
+ '🦡🌿🦡🌿🦡🥦',
+ '🌿🦡🌿🦡🥦🦡',
+ '🦡🌿🦡🥦🦡🥦',
+ '🌿🦡🥦🦡🥦🦡',
+ '🦡🥦🦡🥦🦡🥦',
+ '🥦🦡🥦🦡🥦🦡',
+ '🦡🥦🦡🥦🦡🌿',
+ '🥦🦡🥦🦡🌿🦡',
+ '🦡🥦🦡🌿🦡🌿',
+ '🥦🦡🌿🦡🌿🦡',
+ },
+ Messages = {
+ MSG_CONNECTING = 'You are being connected [{QUEUE_NUM}/{QUEUE_MAX}]: ',
+ MSG_CONNECTED = 'You are up! You are being connected now :)'
+ }
+ }
+}
+
+Config.Rankings = {
+ -- LOWER NUMBER === HIGHER PRIORITY
+ ['1'] = 500, -- Discord User
+ ['1'] = 400, -- Donator
+ ['1'] = 300, -- Trial Mod
+ ['1'] = 200, -- Mod
+ ['1'] = 100, -- Admin
+ ['1'] = 1, -- Management
+}
+```
+- Replace the `'1'`s in the configuration with the discord role ID you want to set up priority for
+
+## Download
+
+https://github.com/JaredScar/Bad-DiscordQueue
diff --git a/resources/[EGRP-Discord-Integration]/Discord-Queue/SharedQueue.lua b/resources/[EGRP-Discord-Integration]/Discord-Queue/SharedQueue.lua
new file mode 100644
index 000000000..3f555e70f
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-Queue/SharedQueue.lua
@@ -0,0 +1,279 @@
+Queue = {}
+Queue.Players = {}
+Queue.PlayerInfo = {}
+Queue.SortedKeys = {}
+Queue.Messages = {}
+debugg = true;
+
+
+
+function getKeysSortedByValue(tbl, sortFunction)
+ local keys = {}
+ for key in pairs(tbl) do
+ table.insert(keys, key)
+ end
+
+ table.sort(keys, function(a, b)
+ return sortFunction(tbl[a], tbl[b])
+ end)
+
+ return keys
+end
+
+function Queue:IsWhitelisted(user)
+ local discordId = nil;
+ local license = nil;
+
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ --print("Found discord id: "..discordId)
+ end
+ if string.match(id, "license:") then
+ license = string.gsub(id, "license:", "")
+ end
+ end
+ local identifierDiscord = discordId;
+
+ if identifierDiscord then
+ local roles = exports.Badger_Discord_API:GetDiscordRoles(user);
+ if not (roles == false) then
+ for i = 1, #roles do
+ for roleID, list in pairs(Config.Rankings) do
+ if exports.Badger_Discord_API:CheckEqual(roles[i], roleID) then
+ return true;
+ end
+ end
+ end
+ end
+ end
+ return false;
+end
+
+queueIndex = 0;
+function Queue:SetupPriority(user)
+ local discordId = nil;
+ local license = nil;
+
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ --print("Found discord id: "..discordId)
+ end
+ if string.match(id, "license:") then
+ license = string.gsub(id, "license:", "")
+ end
+ end
+ if license ~= nil then
+ -- Reset their account
+ Queue.Players[license] = nil;
+ local identifierDiscord = discordId;
+ queueIndex = queueIndex + 1;
+ theirPrios = {};
+ msgs = {};
+ if identifierDiscord and (Queue.Players[license] == nil) then
+ local roles = exports.Badger_Discord_API:GetDiscordRoles(user)
+ local lastRolePrio = 99999999999999999999;
+ local msg = nil;
+ if not (roles == false) then
+ for i = 1, #roles do
+ for roleID, list in pairs(Config.Rankings) do
+ local rolePrio = list[1];
+ if exports.Badger_Discord_API:CheckEqual(roles[i], roleID) then
+ -- Return the index back to the Client script
+ table.insert(theirPrios, rolePrio);
+ if lastRolePrio > tonumber(rolePrio) then
+ msg = list[2];
+ lastRolePrio = rolePrio;
+ end
+ end
+ end
+ end
+ else
+ Queue.Players[license] = tonumber(Config.Default_Prio) + queueIndex;;
+ Queue.Messages[license] = Config.Displays.Messages.MSG_CONNECTING;
+ end
+ if #theirPrios > 0 then
+ table.sort(theirPrios);
+ Queue.Players[license] = tonumber(theirPrios[1]) + queueIndex;
+ end
+ if msg ~= nil then
+ Queue.Messages[license] = msg;
+ end
+ elseif identifierDiscord == nil then
+ Queue.Players[license] = tonumber(Config.Default_Prio) + queueIndex;
+ Queue.Messages[license] = Config.Displays.Messages.MSG_CONNECTING;
+ end
+ if Queue.Players[license] == nil then
+ Queue.Players[license] = tonumber(Config.Default_Prio) + queueIndex;
+ end
+ if Queue.Messages[license] == nil then
+ Queue.Messages[license] = Config.Displays.Messages.MSG_CONNECTING;
+ end
+ local SortedKeys = getKeysSortedByValue(Queue.Players, function(a, b) return a < b end)
+ Queue.SortedKeys = SortedKeys;
+ local username = GetPlayerName(user);
+ Queue.PlayerInfo[license] = { username, Queue.Players[license] };
+ if debugg then
+ for identifier, data in pairs(Queue.PlayerInfo) do
+ print("[DEBUG] " .. tostring(data[1]) .. " has priority of: " .. tostring(data[2]) );
+ end
+ end
+ end -- License == nil, don't run
+end
+function GetMessage(user)
+ local discordId = nil;
+ local license = nil;
+
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ --print("Found discord id: "..discordId)
+ end
+ if string.match(id, "license:") then
+ license = string.gsub(id, "license:", "")
+ end
+ end
+ local msg = Config.Displays.Messages.MSG_CONNECTING;
+ if (Queue.Messages[license] ~= nil) then
+ return Queue.Messages[license];
+ else
+ return msg;
+ end
+end
+
+function Queue:IsSetUp(user)
+ local discordId = nil;
+ local license = nil;
+
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ --print("Found discord id: "..discordId)
+ end
+ if string.match(id, "license:") then
+ license = string.gsub(id, "license:", "")
+ end
+ end
+ if (Queue.Players[license] ~= nil) then
+ return true;
+ end
+ return false;
+end
+
+function Queue:CheckQueue(user, currentConnectors, slots)
+ local discordId = nil;
+ local license = nil;
+
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ --print("Found discord id: "..discordId)
+ end
+ if string.match(id, "license:") then
+ license = string.gsub(id, "license:", "")
+ end
+ end
+ if (tostring(Queue.SortedKeys[1]) == tostring(license) ) then
+ return true; -- They can login
+ end
+ -- Added 12/10/20
+ --[[]]--
+ local openSlots = (slots - GetNumPlayerIndices()) - currentConnectors;
+ local count = 1;
+ for k, v in pairs(Queue.SortedKeys) do
+ if Queue.SortedKeys[count] == license and count <= openSlots then
+ return true;
+ end
+ count = count + 1;
+ end
+ --[[]]--
+ -- End add
+ return false; -- Still waiting in queue, not next in line
+end
+
+function Queue:GetMax()
+ local cout = 0;
+ for identifier, prio in pairs(Queue.Players) do
+ cout = cout + 1;
+ end
+ return cout;
+end
+
+function Queue:GetQueueNum(user)
+ local discordId = nil;
+ local license = nil;
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ --print("Found discord id: "..discordId)
+ end
+ if string.match(id, "license:") then
+ license = string.gsub(id, "license:", "")
+ end
+ end
+ local cout = 1;
+ for i = 1, #Queue.SortedKeys do
+ local identifier = Queue.SortedKeys[i];
+ if identifier == license then
+ return cout;
+ end
+ cout = cout + 1;
+ end
+ return 1;
+end
+
+function Queue:PopLicense(license)
+ -- Pop them off the Queue
+ local tempQueue = {};
+ lic = license:gsub("license:", "");
+ --[[
+ for id, prio in pairs(Queue.Players) do
+ if tostring(id) ~= tostring(lic) then
+ tempQueue[id] = prio;
+ end
+ end
+ ]]--
+ Queue.Messages[lic] = nil;
+ Queue.Players[lic] = nil;
+ --Queue.Players = tempQueue;
+ Queue.PlayerInfo[lic] = nil;
+ if debugg then
+ print("[DEBUG] " .. tostring(lic) .. " has been POPPED from QUEUE")
+ end
+ local SortedKeys = getKeysSortedByValue(Queue.Players, function(a, b) return a < b end)
+ Queue.SortedKeys = SortedKeys;
+end
+
+function Queue:Pop(user)
+ -- Pop them off the Queue
+ local lic = nil;
+
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "license:") then
+ lic = string.gsub(id, "license:", "")
+ end
+ end
+ local tempQueue = {};
+ --[[
+ for id, prio in pairs(Queue.Players) do
+ if tostring(id) ~= tostring(lic) then
+ tempQueue[id] = prio;
+ end
+ end
+ ]]--
+ Queue.Messages[lic] = nil;
+ Queue.Players[lic] = nil;
+ --Queue.Players = tempQueue;
+ Queue.PlayerInfo[lic] = nil;
+ local SortedKeys = getKeysSortedByValue(Queue.Players, function(a, b) return a < b end)
+ Queue.SortedKeys = SortedKeys;
+ if debugg then
+ print("[DEBUG] " .. GetPlayerName(user) .. " has been POPPED from QUEUE")
+ end
+ if debugg then
+ for identifier, data in pairs(Queue.PlayerInfo) do
+ print("[DEBUG] " .. tostring(data[1]) .. " has priority of: " .. tostring(data[2]) );
+ end
+ end
+end
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Discord-Queue/client.lua b/resources/[EGRP-Discord-Integration]/Discord-Queue/client.lua
new file mode 100644
index 000000000..2a6522927
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-Queue/client.lua
@@ -0,0 +1,9 @@
+Citizen.CreateThread(function()
+ while true do
+ Citizen.Wait(0);
+ if NetworkIsSessionStarted() then
+ TriggerServerEvent('DiscordQueue:Activated'); -- They got past queue, deactivate them in it
+ return
+ end
+ end
+end)
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Discord-Queue/config.lua b/resources/[EGRP-Discord-Integration]/Discord-Queue/config.lua
new file mode 100644
index 000000000..f02b0bb26
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-Queue/config.lua
@@ -0,0 +1,46 @@
+Config = {
+ Default_Prio = 500000, -- This is the default priority value if a discord isn't found
+ AllowedPerTick = 6, -- How many players should we allow to connect at a time?
+ HostDisplayQueue = true,
+ onlyActiveWhenFull = false,
+ Requirements = { -- A player must have the identifier to be allowed into the server
+ Discord = true,
+ Steam = true
+ },
+ WhitelistRequired = false, -- If this option is set to true, a player must have a role in Config.Rankings to be allowed into the server
+ Debug = false,
+ Webhook = '',
+ Displays = {
+ Prefix = '[BadgerDiscordQueue]',
+ ConnectingLoop = {
+ '🦡🌿🦡🌿🦡🌿',
+ '🌿🦡🌿🦡🌿🦡',
+ '🦡🌿🦡🌿🦡🥦',
+ '🌿🦡🌿🦡🥦🦡',
+ '🦡🌿🦡🥦🦡🥦',
+ '🌿🦡🥦🦡🥦🦡',
+ '🦡🥦🦡🥦🦡🥦',
+ '🥦🦡🥦🦡🥦🦡',
+ '🦡🥦🦡🥦🦡🌿',
+ '🥦🦡🥦🦡🌿🦡',
+ '🦡🥦🦡🌿🦡🌿',
+ '🥦🦡🌿🦡🌿🦡',
+ },
+ Messages = {
+ MSG_CONNECTING = 'You are being connected [{QUEUE_NUM}/{QUEUE_MAX}]: ', -- Default message if they have no discord roles
+ MSG_CONNECTED = 'You are up! You are being connected now :)',
+ MSG_DISCORD_REQUIRED = 'Your Discord was not detected... You are required to have Discord to play on this server...',
+ MSG_STEAM_REQUIRED = 'Your Steam was not detected... You are required to have Steam to play on this server...',
+ MSG_NOT_WHITELISTED = 'You do not have a Discord role whitelisted for this server... You are not whitelisted.',
+ },
+ },
+}
+
+Config.Rankings = {
+ -- LOWER NUMBER === HIGHER PRIORITY
+ -- ['roleID'] = {rolePriority, connectQueueMessage},
+ ['Civilian I'] = {500, "You are being connected (you are not as special as Badger) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Discord User
+ ['Staff'] = {100, "You are being connected (Staff Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Staff
+ ['Admin'] = {50, "You are being connected (Admin Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Admin
+ ['Founder'] = {1, "You are being connected (Founder Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Founder
+}
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Discord-Queue/fxmanifest.lua b/resources/[EGRP-Discord-Integration]/Discord-Queue/fxmanifest.lua
new file mode 100644
index 000000000..92a6b9ff8
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-Queue/fxmanifest.lua
@@ -0,0 +1,16 @@
+fx_version 'bodacious'
+
+game 'gta5'
+
+description 'Bad-DiscordQueue by OfficialBadger(cfx.re)/JaredScar(github) originally released on cfx.re forums for FiveM'
+cfxlink 'https://forum.cfx.re/t/release-bad-discordqueue-a-discord-role-based-queue-system-by-badger/1394685'
+
+client_scripts {
+ "client.lua"
+}
+
+server_scripts {
+ "config.lua",
+ "SharedQueue.lua",
+ "server.lua"
+}
diff --git a/resources/[EGRP-Discord-Integration]/Discord-Queue/server.lua b/resources/[EGRP-Discord-Integration]/Discord-Queue/server.lua
new file mode 100644
index 000000000..0e225d144
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-Queue/server.lua
@@ -0,0 +1,380 @@
+displayIndex = 1;
+displays = Config.Displays.ConnectingLoop;
+prefix = Config.Displays.Prefix;
+currentConnectors = 0;
+maxConnectors = Config.AllowedPerTick;
+hostname = GetConvar("sv_hostname")
+slots = GetConvarInt('sv_maxclients', 32)
+
+StopResource('hardcap')
+
+AddEventHandler('onResourceStop', function(resource)
+ if resource == GetCurrentResourceName() then
+ if GetResourceState('hardcap') == 'stopped' then
+ StartResource('hardcap')
+ end
+ end
+end)
+
+webhookURL = Config.Webhook;
+function sendToDisc(title, message, footer)
+ local embed = {}
+ embed = {
+ {
+ ["color"] = 65280, -- GREEN = 65280 --- RED = 16711680
+ ["title"] = "**".. title .."**",
+ ["description"] = "" .. message .. "",
+ ["footer"] = {
+ ["text"] = footer,
+ },
+ }
+ }
+ -- Start
+ -- TODO Input Webhook
+ PerformHttpRequest(webhookURL,
+ function(err, text, headers) end, 'POST', json.encode({username = name, embeds = embed}), { ['Content-Type'] = 'application/json' })
+ -- END
+end
+function ExtractIdentifiers(src)
+ local identifiers = {
+ steam = "",
+ ip = "",
+ discord = "",
+ license = "",
+ xbl = "",
+ live = ""
+ }
+
+ --Loop over all identifiers
+ for i = 0, GetNumPlayerIdentifiers(src) - 1 do
+ local id = GetPlayerIdentifier(src, i)
+
+ --Convert it to a nice table.
+ if string.find(id, "steam") then
+ identifiers.steam = id
+ elseif string.find(id, "ip") then
+ identifiers.ip = id
+ elseif string.find(id, "discord") then
+ identifiers.discord = id
+ elseif string.find(id, "license") then
+ identifiers.license = id
+ elseif string.find(id, "xbl") then
+ identifiers.xbl = id
+ elseif string.find(id, "live") then
+ identifiers.live = id
+ end
+ end
+
+ return identifiers
+end
+function sendToDiscQueue(title, message, footer)
+ local embed = {}
+ embed = {
+ {
+ ["color"] = 16711680, -- GREEN = 65280 --- RED = 16711680
+ ["title"] = "**".. title .."**",
+ ["description"] = "" .. message .. "",
+ ["footer"] = {
+ ["text"] = footer,
+ },
+ }
+ }
+ -- Start
+ -- TODO Input Webhook
+ PerformHttpRequest(webhookURL,
+ function(err, text, headers) end, 'POST', json.encode({username = name, embeds = embed}), { ['Content-Type'] = 'application/json' })
+ -- END
+end
+
+Citizen.CreateThread(function()
+ while true do
+ Wait((1000 * 30)); -- Every 30 seconds
+ --print("sv_maxclients is set to: " .. tostring(slots));
+ --print("Queue:GetMax() is set to: " .. tostring(Queue:GetMax()));
+ if Config.HostDisplayQueue then
+ if hostname ~= "default FXServer" and Queue:GetMax() > 0 then
+ SetConvar("sv_hostname", "[" .. Queue:GetMax() .. "/" .. (Queue:GetMax() + 1) .. "] " .. hostname);
+ --print(prefix .. " Set server title: '" .. "[" .. "1" .. "/" .. (Queue:GetMax() + 1) .. "] " .. hostname .. "'")
+ end
+ if hostname ~= "default FXServer" and Queue:GetMax() == 0 then
+ SetConvar("sv_hostname", hostname);
+ --print(prefix .. " Set server title: '" .. hostname .. "'")
+ end
+ end
+ end
+end)
+notSet = true;
+Citizen.CreateThread(function()
+ while notSet do
+ if hostname == "default FXServer" then
+ hostname = GetConvar("sv_hostname");
+ else
+ notSet = false;
+ end
+ end
+end)
+
+function GetPlayerCount()
+ return GetNumPlayerIndices();
+end
+local connecting = {}
+local playerConnecting = {}
+
+function CheckForGhostUsers()
+ for license, data in pairs(playerConnecting) do
+ local found = false;
+ local user = data.ID;
+ local name = data.PlayerName;
+ local connectingg = data.Connection;
+ --[[ MASS DEBUG
+ if Config.Debug then
+ print("[Bad-DiscordQueue] (MASS DEBUG)")
+ print("[Bad-DiscordQueue] PlayerName: " .. tostring(name) .. " || ID:" .. tostring(user) .. " || GetPlayerName(user): " .. tostring(GetPlayerName(user) ) );
+ end
+ --[[ MASS DEBUG END ]]--
+ if GetPlayerName(user) == nil or GetPlayerName(user) ~= name then
+ -- They no longer exist
+ Queue:PopLicense(license)
+ if Config.Debug then
+ print(prefix .. " (Thread : NO LONGER EXISTS) Popped player " .. name .. " from queue...");
+ end
+ if connecting[license] ~= nil then
+ if (currentConnectors > 0) then
+ currentConnectors = currentConnectors - 1;
+ end
+ if Config.Debug then
+ print(prefix .. " (Thread : NO LONGER EXISTS) currentConnectors was decremented... FROM: " .. tostring(currentConnectors + 1) .. " -- TO: " ..
+ tostring(currentConnectors));
+ end
+ connecting[license] = nil;
+ end
+ if Config.Debug then
+ print(prefix .. " (Thread : NO LONGER EXISTS) currentConnectors is == " .. tostring(currentConnectors) )
+ end
+ playerConnecting[license] = nil;
+ end
+ end
+end
+
+--[[
+Citizen.CreateThread(function()
+ while true do
+ Citizen.Wait((1000 * 20));
+ for license, data in pairs(playerConnecting) do
+ local found = false;
+ local user = data.ID;
+ local name = data.PlayerName;
+ local connectingg = data.Connection;
+ -- MASS DEBUG
+ if Config.Debug then
+ print("[Bad-DiscordQueue] (MASS DEBUG)")
+ print("[Bad-DiscordQueue] PlayerName: " .. tostring(name) .. " || ID:" .. tostring(user) .. " || GetPlayerName(user): " .. tostring(GetPlayerName(user) ) );
+ end
+ -- MASS DEBUG END
+ if GetPlayerName(user) ~= name and GetPlayerName(user) == nil then
+ -- They no longer exist
+ Queue:PopLicense(license)
+ if Config.Debug then
+ print("[Bad-DiscordQueue] (Thread : NO LONGER EXISTS) Popped player " .. name .. " from queue...");
+ end
+ if connecting[license] ~= nil then
+ connecting[license] = nil;
+ if (currentConnectors > 0) then
+ currentConnectors = currentConnectors - 1;
+ end
+ end
+ if Config.Debug then
+ print("[Bad-DiscordQueue] (Thread : NO LONGER EXISTS) currentConnectors is == " .. tostring(currentConnectors) )
+ end
+ playerConnecting[license] = nil;
+ end
+ end
+ end
+end)
+]]--
+Citizen.CreateThread(function()
+ while true do
+ Wait((40 * 1000));
+ CheckForGhostUsers();
+ end
+end)
+
+AddEventHandler('playerConnecting', function(name, setKickReason, deferrals)
+ deferrals.defer();
+ local user = source;
+ local license = ExtractIdentifiers(user).license:gsub("license:", "");
+ local ids = ExtractIdentifiers(user);
+ local playerName = GetPlayerName(user);
+ local allowed = true;
+ if Config.Requirements.Steam then
+ -- Check if they have Steam
+ if #ids.steam <= 1 then
+ deferrals.done(Config.Displays.Prefix .. " " .. Config.Displays.Messages.MSG_STEAM_REQUIRED);
+ allowed = false;
+ CancelEvent();
+ return;
+ end
+ end
+ if Config.Requirements.Discord then
+ -- Check if they have Discord
+ if #ids.discord <= 1 then
+ deferrals.done(Config.Displays.Prefix .. " " .. Config.Displays.Messages.MSG_DISCORD_REQUIRED);
+ allowed = false;
+ CancelEvent();
+ return;
+ end
+ end
+ if Config.WhitelistRequired then
+ if not Queue:IsWhitelisted(user) then
+ -- Not whitelisted, return
+ deferrals.done(Config.Displays.Prefix .. " " .. Config.Displays.Messages.MSG_NOT_WHITELISTED);
+ allowed = false;
+ CancelEvent();
+ return;
+ end
+ end
+ if allowed then
+ playerConnecting[license] = {Connection = false, ID = user, PlayerName = playerName, Timeout = 0};
+ if Config.onlyActiveWhenFull == true then
+ -- It's only active when server is full so lets check
+ if (GetPlayerCount() + 1) > slots or (GetPlayerCount() + Queue:GetMax()) > slots then
+ -- It's full, activate
+ if not Queue:IsSetUp(user) then
+ -- Set them up
+ Queue:SetupPriority(user);
+ if GetPlayerName(user) ~= nil then
+ sendToDiscQueue("QUEUED USER", "Player `" .. GetPlayerName(user):gsub("`", "") .. "` has been added to the queue...", "Bad-DiscordQueue created by Badger");
+ end
+ local message = GetMessage(user);
+ local msg = message:gsub("{QUEUE_NUM}", Queue:GetQueueNum(user)):gsub("{QUEUE_MAX}", Queue:GetMax());
+ if GetPlayerName(user) ~= nil then
+ print(prefix .. " " .. "Player " .. GetPlayerName(user) .. " has been set to the QUEUE [" .. msg .. "]");
+ end
+ end
+ while ( ( (not Queue:CheckQueue(user, currentConnectors, slots)) or (currentConnectors == maxConnectors) ) or (GetPlayerCount() == slots) or
+ ((GetPlayerCount() + currentConnectors + 1) > slots) or ( (GetPlayerCount() + currentConnectors ) >= slots) ) do
+ -- They are still in the queue
+ Wait(1000);
+ if displayIndex > #displays then
+ displayIndex = 1;
+ end
+ local message = GetMessage(user);
+ local msg = message:gsub("{QUEUE_NUM}", Queue:GetQueueNum(user)):gsub("{QUEUE_MAX}", Queue:GetMax());
+ deferrals.update(prefix .. " " .. msg .. displays[displayIndex]);
+ displayIndex = displayIndex + 1;
+ end
+ -- If it got down here, they are now allowed to join the server
+ if connecting[license] == nil or connecting[license] ~= true then
+ Queue:PopLicense(license)
+ currentConnectors = currentConnectors + 1;
+ connecting[license] = true;
+ if GetPlayerName(user) ~= nil then
+ print(prefix .. " " .. "Player " .. GetPlayerName(user) .. " is allowed to join now!");
+ end
+ Wait(1000);
+ if GetPlayerName(user) ~= nil then
+ sendToDisc("NEW CONNECTOR", "Player `" .. GetPlayerName(user):gsub("`", "") .. "` is allowed to join now!", "Bad-DiscordQueue created by Badger");
+ end
+ if playerConnecting[license] ~= nil then
+ playerConnecting[license].Timeout = Config.Timeout;
+ playerConnecting[license].Connection = true;
+ end
+ if Config.Debug then
+ print(prefix .. " (playerConnecting) currentConnectors is == " .. tostring(currentConnectors) )
+ end
+ end -- connecting[license] == nil
+ deferrals.done();
+ else
+ deferrals.done();--deferrals done if server is not full as we don't want the queue
+ end
+ else
+ if not Queue:IsSetUp(user) then
+ -- Set them up
+ Queue:SetupPriority(user);
+ if GetPlayerName(user) ~= nil then
+ sendToDiscQueue("QUEUED USER", "Player `" .. GetPlayerName(user):gsub("`", "") .. "` has been added to the queue...", "Bad-DiscordQueue created by Badger");
+ end
+ local message = GetMessage(user);
+ local msg = message:gsub("{QUEUE_NUM}", Queue:GetQueueNum(user)):gsub("{QUEUE_MAX}", Queue:GetMax());
+ if GetPlayerName(user) ~= nil then
+ print(prefix .. " " .. "Player " .. GetPlayerName(user) .. " has been set to the QUEUE [" .. msg .. "]");
+ end
+ end
+ while ( ( (not Queue:CheckQueue(user, currentConnectors, slots)) or (currentConnectors == maxConnectors) ) or (GetPlayerCount() == slots) or
+ ((GetPlayerCount() + currentConnectors + 1) > slots) or ( (GetPlayerCount() + currentConnectors ) >= slots) ) do
+ -- They are still in the queue
+ Wait(1000);
+ if displayIndex > #displays then
+ displayIndex = 1;
+ end
+ local message = GetMessage(user);
+ local msg = message:gsub("{QUEUE_NUM}", Queue:GetQueueNum(user)):gsub("{QUEUE_MAX}", Queue:GetMax());
+ deferrals.update(prefix .. " " .. msg .. displays[displayIndex]);
+ displayIndex = displayIndex + 1;
+ end
+ -- If it got down here, they are now allowed to join the server
+ if connecting[license] == nil or connecting[license] ~= true then
+ Queue:PopLicense(license)
+ currentConnectors = currentConnectors + 1;
+ connecting[license] = true;
+ if GetPlayerName(user) ~= nil then
+ print(prefix .. " " .. "Player " .. GetPlayerName(user) .. " is allowed to join now!");
+ end
+ Wait(1000);
+ if GetPlayerName(user) ~= nil then
+ sendToDisc("NEW CONNECTOR", "Player `" .. GetPlayerName(user):gsub("`", "") .. "` is allowed to join now!", "Bad-DiscordQueue created by Badger");
+ end
+ if playerConnecting[license] ~= nil then
+ playerConnecting[license].Timeout = Config.Timeout;
+ playerConnecting[license].Connection = true;
+ end
+ if Config.Debug then
+ print(prefix .. " (playerConnecting) currentConnectors is == " .. tostring(currentConnectors) )
+ end
+ end -- connecting[license] == nil;
+ deferrals.done();
+ end
+ end
+end)
+AddEventHandler('playerDropped', function (reason)
+ local user = source;
+ local license = ExtractIdentifiers(user).license:gsub("license:", "");
+ if (connecting[license] ~= nil) then
+ if (currentConnectors > 0) then
+ currentConnectors = currentConnectors - 1;
+ if Config.Debug then
+ print(prefix .. " (playerDropped) currentConnectors was decremented... FROM: " .. tostring(currentConnectors + 1) .. " -- TO: " ..
+ tostring(currentConnectors));
+ end
+ end
+ connecting[license] = nil;
+ end
+ playerConnecting[license] = nil;
+ if (Queue:IsSetUp(user)) then
+ Queue:Pop(user);
+ sendToDiscQueue("REMOVED QUEUE USER", "Player `" .. GetPlayerName(user):gsub("`", "") .. "` has been removed from the queue...", "Bad-DiscordQueue created by Badger");
+ print(prefix .. " (playerDropped) " .. "Player " .. GetPlayerName(user) .. " has been removed from QUEUE");
+ end
+end)
+
+RegisterNetEvent('DiscordQueue:Activated')
+AddEventHandler('DiscordQueue:Activated', function()
+ -- They were activated, pop them from Queue
+ Queue:Pop(source);
+ local user = source;
+ local license = ExtractIdentifiers(user).license:gsub("license:", "");
+ connecting[license] = nil;
+ playerConnecting[license] = nil;
+ sendToDiscQueue("REMOVED QUEUE USER", "Player `" .. GetPlayerName(user):gsub("`", "") .. "` has been removed from the queue...", "Bad-DiscordQueue created by Badger");
+ if (currentConnectors > 0) then
+ currentConnectors = currentConnectors - 1;
+ if Config.Debug then
+ print(prefix .. " (DiscordQueue:Activated) currentConnectors was decremented... FROM: " .. tostring(currentConnectors + 1) .. " -- TO: " ..
+ tostring(currentConnectors));
+ end
+ end
+ if Config.Debug then
+ print(prefix .. " (DiscordQueue:Activated) " .. "Player " .. GetPlayerName(user) .. " has been removed from QUEUE");
+ print(prefix .. " (DiscordQueue:Activated) currentConnectors is == " .. tostring(currentConnectors) )
+ end
+end)
diff --git a/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/LICENSE b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/LICENSE
new file mode 100644
index 000000000..217dbfeaa
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Jared
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/README.md b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/README.md
new file mode 100644
index 000000000..45de87681
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/README.md
@@ -0,0 +1,89 @@
+# DiscordVehicleRestrictions
+
+## Documentation: https://docs.badger.store/fivem-discord-scripts/discordvehiclerestrictions
+
+## What is it?
+DiscordVehiclesRestrictions is a Discord based vehicle restriction script. I have previously made a script like this in the past, but it was made when I was barely considered a FiveM script developer. Due to the sloppy code practices within that script, I decided to rewrite the script and include something at most people had inquired about within the old one: Inheritance.
+
+### Old Script:
+https://forum.cfx.re/t/discordvehiclesrestrict/599594
+
+## Images
+https://i.gyazo.com/415c775a6cd94f194e22c9843778bdb0.gif
+
+## Requirement
+https://forum.cfx.re/t/release-badger-discord-api/1698464
+
+## Configuration
+* It should be noted that for `Config.Inheritances`, the roleNames and roleIDs should match up with the ones specified in `Config.VehicleRestrictions`.
+
+* Also, inheritance only inherits the role groups listed. Inheriting `RoleName2` which inherits `RoleName1` would not be inherited for `RoleName3`.
+```lua
+Config = {
+ RestrictedMessage = "~r~Restricted Vehicle Model.",
+ InheritanceEnabled = false
+}
+
+Config.VehicleRestrictions = {
+ ['RoleName1 or ID'] = {
+ "baller",
+ "baller2",
+ "baller3",
+ "baller4"
+ },
+ ['RoleName2 or ID2'] = {},
+ ['RoleName3 or ID3'] = {},
+ ['RoleName4 or ID4'] = {}
+}
+
+-- Requires Config.InheritanceEnabled to be = true
+Config.Inheritances = {
+ ['RoleName2 or ID'] = {'RoleName1', 'RoleName3', 'RoleName4'},
+ ['RoleName3'] = {'RoleName2'},
+}
+```
+
+## Example Configuration
+```lua
+Config = {
+ RestrictedMessage = "~r~Restricted Vehicle Model.",
+ InheritanceEnabled = true
+}
+
+Config.VehicleRestrictions = {
+ ['Head_Admin'] = {
+ "baller",
+ "baller2",
+ "baller3",
+ "baller4",
+ },
+ ['Admin'] = {
+ "dcd",
+ "chr20",
+ },
+ ['Moderator'] = {
+ "nf6",
+ "foxsnt",
+ "foxshelby",
+ "gt63s",
+ "fhauler",
+ "rescue1",
+ "um1",
+ "um2",
+ "um3",
+ "um4",
+ "um5",
+ "um6",
+ "um6",
+ "riot",
+ },
+}
+
+-- Requires Config.InheritanceEnabled to be = true
+Config.Inheritances = {
+ ['Head_Admin'] = {'Admin', 'Moderator'},
+}
+```
+Thanks to @clewis329 for helping to test this, a well as providing the example configuration file :)
+## Download
+https://github.com/JaredScar/DiscordVehicleRestrictions
diff --git a/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/client.lua b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/client.lua
new file mode 100644
index 000000000..c8205f8f9
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/client.lua
@@ -0,0 +1,84 @@
+restrictions = Config.VehicleRestrictions;
+myRoles = nil;
+
+RegisterNetEvent("BadgerVehicles:CheckPermission:Return")
+AddEventHandler("BadgerVehicles:CheckPermission:Return", function(roles)
+ myRoles = roles;
+end)
+
+lastChecked = nil;
+hasPerm = nil;
+Citizen.CreateThread(function()
+ TriggerServerEvent("BadgerVehicles:CheckPermission");
+ while true do
+ Citizen.Wait(1000)
+
+ local ped = PlayerPedId()
+ local veh = nil
+
+ if IsPedInAnyVehicle(ped, false) then
+ veh = GetVehiclePedIsUsing(ped)
+ else
+ veh = GetVehiclePedIsTryingToEnter(ped)
+ end
+ local model = GetEntityModel(veh)
+ if (model ~= nil) then
+ local driver = GetPedInVehicleSeat(veh, -1)
+ if (lastChecked ~= nil) and (lastChecked == model) and (hasPerm ~= nil) and (not hasPerm) then
+ if driver == ped then
+ ShowInfo(Config.RestrictedMessage)
+ DeleteEntity(veh)
+ ClearPedTasksImmediately(ped)
+ end
+ print("[DiscordVehicleRestrictions] Vehicle was last checked, but is not a driver...")
+ end
+ end
+
+ if veh ~= nil and DoesEntityExist(veh) and lastChecked ~= model then
+ local driver = GetPedInVehicleSeat(veh, -1)
+ -- Check if it has one of the restricted vehicles
+ local requiredPerm = nil;
+ hasPerm = false;
+ for role, val in pairs(myRoles) do
+ if (val == true) then
+ local vehicles = Config.VehicleRestrictions[role];
+ for i = 1, #vehicles do
+ if GetHashKey(vehicles[i]) == model then
+ requiredPerm = true;
+ hasPerm = true;
+ end
+ end
+ end
+ end
+ if not hasPerm then
+ local vehicles = Config.VehicleRestrictions;
+ for role, vehicleList in pairs(vehicles) do
+ for i = 1, #vehicleList do
+ if GetHashKey(vehicleList[i]) == model then
+ requiredPerm = true;
+ end
+ end
+ end
+ end
+
+ lastChecked = model;
+
+ -- If doesn't have permission, it's a restricted vehicle to them
+ if not hasPerm and (requiredPerm ~= nil) then
+ if driver == ped then
+ ShowInfo(Config.RestrictedMessage)
+ DeleteEntity(veh)
+ ClearPedTasksImmediately(ped)
+ end
+ else
+ hasPerm = true;
+ end
+ end
+ end
+end)
+
+function ShowInfo(text)
+ SetNotificationTextEntry("STRING")
+ AddTextComponentSubstringPlayerName(text)
+ DrawNotification(false, false)
+end
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/config.lua b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/config.lua
new file mode 100644
index 000000000..7571a1344
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/config.lua
@@ -0,0 +1,118 @@
+Config = {
+ RestrictedMessage = "~r~Restricted Vehicle Model! If you think this is an error message a staff member.",
+ InheritanceEnabled = false
+}
+
+Config.VehicleRestrictions = {
+ ['EG | Helper'] = {
+ "Staff-Buggy",
+ "Staff-Camaro",
+ "Staff-Charger",
+ "Staff-Mustang"
+ },
+ ['EG | Staff'] = {
+ "Staff-Buggy",
+ "Staff-Camaro",
+ "Staff-Charger",
+ "Staff-Mustang"
+ },
+ ['EG | Sr. Staff'] = {
+ "Staff-Buggy",
+ "Staff-Camaro",
+ "Staff-Charger",
+ "Staff-Mustang"
+ },
+ ['EG | Moderator'] = {
+ "Staff-Buggy",
+ "Staff-Camaro",
+ "Staff-Charger",
+ "Staff-Mustang"
+ },
+ ['EG | Sr. Moderator'] = {
+ "Staff-Buggy",
+ "Staff-Camaro",
+ "Staff-Charger",
+ "Staff-Mustang"
+ },
+ ['EG | Admin'] = {
+ "Staff-Buggy",
+ "Staff-Camaro",
+ "Staff-Charger",
+ "Staff-Mustang"
+ },
+ ['EG | Sr. Admin'] = {
+ "Staff-Buggy",
+ "Staff-Camaro",
+ "Staff-Charger",
+ "Staff-Mustang",
+ "m3e",
+ "mazdarx3pxxbk",
+ "mazdarx3pxxbkb",
+ "vanzwbchevy",
+ "vanzwbchev"
+ },
+ ['EG | Head of Staff'] = {
+ "Staff-Buggy",
+ "Staff-Camaro",
+ "Staff-Charger",
+ "Staff-Mustang",
+ "m3e",
+ "mazdarx3pxxbk",
+ "mazdarx3pxxbkb",
+ "vanzwbchevy",
+ "vanzwbchev"
+ },
+ ['EG | Server Developer'] = {
+ "Staff-Buggy",
+ "Staff-Camaro",
+ "Staff-Charger",
+ "Staff-Mustang",
+ "m3e",
+ "mazdarx3pxxbk",
+ "mazdarx3pxxbkb",
+ "vanzwbchevy",
+ "vanzwbchev"
+ },
+ ['EG | Owner'] = {
+ "Staff-Buggy",
+ "Staff-Camaro",
+ "Staff-Charger",
+ "Staff-Mustang",
+ "m3e",
+ "mazdarx3pxxbk",
+ "mazdarx3pxxbkb",
+ "vanzwbchevy",
+ "vanzwbchev"
+ },
+ ['Silver Supporter 🥈'] = {
+ "r8v10",
+ "18performante"
+ },
+ ['Gold Supporter 🥇'] = {
+ "bdivo",
+ "tr22",
+ "aperta",
+ "r8v10",
+ "18performante"
+ },
+ ['Platinum Supporter 💠'] = {
+ "bdivo",
+ "tr22",
+ "aperta",
+ "r8v10",
+ "18performante"
+ },
+ ['Diamond Supporter 💎'] = {
+ "bdivo",
+ "tr22",
+ "aperta",
+ "r8v10",
+ "18performante"
+ }
+}
+
+-- Requires Config.InheritanceEnabled to be = true
+Config.Inheritances = {
+ ['Silver Tier 🥈'] = {'Gold Tier 🥇', 'Platinum Tier 💠', 'Diamond Tier 💎'},
+ ['Gold Tier 🥇'] = {'Platinum Tier 💠', 'Diamond Tier 💎'},
+}
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/fxmanifest.lua b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/fxmanifest.lua
new file mode 100644
index 000000000..03d9d79ac
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/fxmanifest.lua
@@ -0,0 +1,15 @@
+fx_version 'bodacious'
+
+game 'gta5'
+
+description 'DiscordVehicleRestrictions by OfficialBadger (cfx.re) / JaredScar (github) originally released on cfx.re forums for FiveM'
+
+client_scripts {
+ "config.lua",
+ "client.lua"
+}
+
+server_scripts {
+ "config.lua",
+ "server.lua"
+}
diff --git a/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/server.lua b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/server.lua
new file mode 100644
index 000000000..5c19e4414
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-VehRestriction/server.lua
@@ -0,0 +1,45 @@
+RegisterServerEvent("BadgerVehicles:CheckPermission")
+AddEventHandler("BadgerVehicles:CheckPermission", function()
+ local src = source;
+ local userRoles = {}
+ for k, v in ipairs(GetPlayerIdentifiers(src)) do
+ if string.sub(v, 1, string.len("discord:")) == "discord:" then
+ identifierDiscord = v
+ end
+ end
+
+ if tostring(identifierDiscord) == "394446211341615104" then
+ -- It is the one and only Badger, we must pay our respects
+ TriggerClientEvent('chatMessage', -1, '^1[^5DiscordVehicleRestrictions^1] ^3Script creator ^1Badger ^3has joined the server!...');
+ end
+
+ if identifierDiscord then
+ local roleIDs = exports.Badger_Discord_API:GetDiscordRoles(src)
+ if not (roleIDs == false) then
+ for i = 1, #roleIDs do
+ for role, vehicles in pairs(Config.VehicleRestrictions) do
+ if exports.Badger_Discord_API:CheckEqual(role, roleIDs[i]) then
+ userRoles[role] = true;
+ print("[DiscordVehicleRestrictions] " .. GetPlayerName(src) .. " has received permission for role: " .. tostring(role) );
+ if Config.InheritanceEnabled then
+ local inheritedRoles = Config.Inheritances[role];
+ if inheritedRoles ~= nil then
+ -- There is inheritted roles
+ for j = 1, #inheritedRoles do
+ userRoles[ inheritedRoles[j] ] = true;
+ print("[DiscordVehicleRestrictions] " .. GetPlayerName(src) .. " has inherited role: " .. tostring(role) );
+ end
+ end
+ end
+ end
+ end
+ end
+ else
+ print("[DiscordVehicleRestrictions] " .. GetPlayerName(src) .. " did not receive permissions because roles == false")
+ end
+ elseif identifierDiscord == nil then
+ print("[DiscordVehicleRestrictions] " .. "identifierDiscord == nil")
+ end
+ -- Trigger client event
+ TriggerClientEvent("BadgerVehicles:CheckPermission:Return", src, userRoles);
+end)
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/LICENSE b/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/LICENSE
new file mode 100644
index 000000000..e7d69ab04
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Jared Scarito
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/README.md b/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/README.md
new file mode 100644
index 000000000..ba26aaf8c
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/README.md
@@ -0,0 +1,67 @@
+# DiscordWeaponPerms
+## Continued Documentation
+https://docs.badger.store/fivem-discord-scripts/discordweaponperms
+## Discontinued Documentation
+**Version 1.0**
+
+Another discord script of course! With this script, you can restrict weapons to certain roles on your discord server! This script also allows restricting certain attachments to different groups as well (however, it'll remove the weapon if they have the attachment, I'll eventually update it to just remove the attachment from the weapon).
+
+https://i.gyazo.com/52a7106f1db9c309c28ff012b8127ae2.gif
+
+You must set up IllusiveTea's discord_perms script for this to work properly. --> https://forum.fivem.net/t/discord-roles-for-permissions-im-creative-i-know/233805
+
+**How it works**
+```
+roleList = {
+1, -- Trusted Civ (1)
+1, -- Donator (2)
+1, -- Personal (3)
+}
+```
+responds to it's respective number within the other list:
+```
+restrictedWeapons = {
+{}, -- Trusted Civ (1)
+{}, -- Donator (2)
+{
+"WEAPON_RPG",
+}, -- Personal (3)
+}
+```
+
+The RPG weapon would then be restricted to only people with personal discord role within your discord server.
+
+It's quite simple :slight_smile:
+
+
+**Installation**
+1. Download DiscordWeaponPerms
+2. Extract the .zip and place the folder in your /resources/ of your Fivem server
+3. Make sure you add “start DiscordWeaponPerms†in your server.cfg
+4. Enjoy :slight_smile:
+
+**Download**
+[DiscordWeaponPerms](https://github.com/TheWolfBadger/DiscordWeaponPerms)
+
+
+
+**My Other Work**
+
+[DiscordChatRoles](https://forum.fivem.net/t/discordchatroles-release/566338)
+
+[DiscordAcePerms](https://forum.fivem.net/t/discordaceperms-release/573044)
+
+[SandyVehiclesRestrict](https://forum.fivem.net/t/release-sandy-vehicles-restrict/564929)
+
+[DiscordTagIDs](https://forum.fivem.net/t/discordtagids-i-know-i-know-i-only-make-discord-based-scripts/582513)
+
+[DiscordVehiclesRestrict](https://forum.fivem.net/t/discordvehiclesrestrict/599594)
+
+[DiscordPedPerms](https://forum.fivem.net/t/release-discordpedperms/642866)
+
+[BadgerAnims](https://forum.fivem.net/t/release-badgeranims/650517)
+
+[DiscordWeaponPerms](https://forum.fivem.net/t/release-discordweaponperms/664774)
+
+**Version 2.0**
+- Removing restricted weapon attachments from weapon instead of whole weapon?
diff --git a/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/__resource.lua b/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/__resource.lua
new file mode 100644
index 000000000..281e9392c
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/__resource.lua
@@ -0,0 +1,7 @@
+-----------------------------------
+---------- Discord Reports --------
+--- by Badger ---
+-----------------------------------
+
+client_script "client.lua"
+server_script "server.lua"
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/client.lua b/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/client.lua
new file mode 100644
index 000000000..2a10fec21
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/client.lua
@@ -0,0 +1,82 @@
+--------------------------
+--- DiscordWeaponPerms ---
+--------------------------
+restrictedWeapons = {
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 1
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 3
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 4
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 5
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 6
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 7
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 8
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 9
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 10
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 11
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 12
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 13
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 14
+{"WEAPON_PROXMINE", "WEAPON_GRENADELAUNCHER", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_STICKYBOMB", "WEAPON_COMPACTLAUNCHER", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_PIPEBOMB",}, -- 15
+}
+--[[
+Weapon components list: https://wiki.rage.mp/index.php?title=Weapons_Components
+Weapon list: https://runtime.fivem.net/doc/natives/#_0xBF0FD6E56C964FCB
+]]--
+isAllowed = {}
+RegisterNetEvent('DiscordWeaponPerms:CheckPerms:Return')
+AddEventHandler('DiscordWeaponPerms:CheckPerms:Return', function(hasPerms)
+ isAllowed = hasPerms
+end)
+function has_value (tab, val)
+ for index, value in ipairs(tab) do
+ if value == val then
+ return true
+ end
+ end
+ return false
+end
+alreadyRan = false
+Citizen.CreateThread(function()
+ while true do
+ Citizen.Wait(1000)
+ if not alreadyRan then
+ TriggerServerEvent("DiscordWeaponPerms:CheckPerms")
+ alreadyRan = true
+ end
+ --TriggerServerEvent("Print:PrintDebug", "It gets here 1") -- DEBUG - GET RID OF
+ local ped = GetPlayerPed(-1)
+ local weapon = GetSelectedPedWeapon(ped)
+ local restrictedStr = ""
+ local requiredPerm = nil
+ for i=1, #restrictedWeapons do
+ local weaponArr = restrictedWeapons[i]
+ for j=1, #weaponArr do
+ -- Check if the weapon is restricted and for what group, or if it's the attachment
+ if weapon == GetHashKey(weaponArr[j]) then
+ -- This weapon is restricted unless they have this role perm
+ requiredPerm = i
+ restrictedStr = weaponArr[j]
+ break
+ elseif (HasPedGotWeaponComponent(ped, weapon, GetHashKey(weaponArr[j]))) then
+ -- It's restricted unless they have this role perm
+ requiredPerm = i
+ restrictedStr = weaponArr[j]
+ break
+ end
+ end
+ end
+ --TriggerServerEvent("Print:PrintDebug", "It gets here 2") -- DEBUG - GET RID OF
+ -- Check their perms
+ if not has_value(isAllowed, requiredPerm) and requiredPerm ~= nil then
+ -- Does not have perms to use this
+ RemoveWeaponFromPed(ped, weapon)
+ DisplayNotification("~r~Weapon Restricted! \n~w~You aren't a high enough rank to use this!\n" .. restrictedStr)
+ end
+ --TriggerServerEvent("Print:PrintDebug", "It gets here 3") -- DEBUG - GET RID OF
+ end
+end)
+
+function DisplayNotification( text )
+ SetNotificationTextEntry( "STRING" )
+ AddTextComponentString( text )
+ DrawNotification( false, false )
+end
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/server.lua b/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/server.lua
new file mode 100644
index 000000000..ec19f9b38
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/server.lua
@@ -0,0 +1,53 @@
+--------------------------
+--- DiscordWeaponPerms ---
+--------------------------
+roleList = {
+"Civilian I", -- Civilian I (1)
+"Civilian II", -- Civilian II (2)
+"Civilian III", -- Civilian III (3)
+"Civilian IV", -- Civilian IV (4)
+"Civilian V", -- Civilian V (5)
+"EG | Helper", -- Mod (6)
+"EG | Staff", -- Admin (7)
+"EG | Sr. Staff", -- Management (8)
+"EG | Moderator", -- Owner (9)
+"EG | Sr. Moderator", -- Owner (10)
+"EG | Admin", -- Owner (11)
+"EG | Sr. Admin", -- Owner (12)
+"EG | Head of Staff", -- Owner (13)
+"EG | Server Developer", -- Owner (14)
+"EG | Owner", -- Owner (15)
+}
+
+
+RegisterNetEvent('Print:PrintDebug')
+AddEventHandler('Print:PrintDebug', function(msg)
+ print(msg)
+ TriggerClientEvent('chatMessage', -1, "^7[^1Badger's Scripts^7] ^1DEBUG ^7" .. msg)
+end)
+
+RegisterNetEvent("DiscordWeaponPerms:CheckPerms")
+AddEventHandler("DiscordWeaponPerms:CheckPerms", function()
+ local src = source
+ for k, v in ipairs(GetPlayerIdentifiers(src)) do
+ if string.sub(v, 1, string.len("discord:")) == "discord:" then
+ identifierDiscord = v
+ end
+ end
+ local hasPerms = {} -- Has perms for indexes:
+ if identifierDiscord then
+ local roleIDs = exports.Badger_Discord_API:GetDiscordRoles(src)
+ if not (roleIDs == false) then
+ for i = 1, #roleList do
+ for j = 1, #roleIDs do
+ if exports.Badger_Discord_API:CheckEqual(roleList[i], roleIDs[j]) then
+ table.insert(hasPerms, i)
+ end
+ end
+ end
+ else
+ print(GetPlayerName(src) .. " has not gotten their permissions cause roleIDs == false")
+ end
+ end
+ TriggerClientEvent('DiscordWeaponPerms:CheckPerms:Return', src, hasPerms)
+end)
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/DiscordAcePerms/LICENSE b/resources/[EGRP-Discord-Integration]/DiscordAcePerms/LICENSE
new file mode 100644
index 000000000..9595491de
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordAcePerms/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Jared
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/resources/[EGRP-Discord-Integration]/DiscordAcePerms/README.md b/resources/[EGRP-Discord-Integration]/DiscordAcePerms/README.md
new file mode 100644
index 000000000..52507a04a
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordAcePerms/README.md
@@ -0,0 +1,37 @@
+# DiscordAcePerms
+## Continued Documentation
+https://docs.badger.store/fivem-discord-scripts/discordaceperms
+
+## Jared's Developer Community [Discord]
+[](https://discord.com/invite/WjB5VFz)
+
+## Discontinued Documentation
+### Version 1.0
+
+#### Installation Information:
+
+https://forum.fivem.net/t/discordaceperms-release/573044
+
+This is another one of my discord scripts! :) If used properly along with my other scripts, you can fully make your server use only discord roles for permissions and chat roles ;)
+
+You must set up IllusiveTea’s discord_perms script for this to work properly:
+
+https://forum.fivem.net/t/discord-roles-for-permissions-im-creative-i-know/233805
+
+The permissions for a user update after every restart when they first login (so long as they have the discord role ID associated with the group in the list).
+
+#### How to set it up:
+
+
+The 1s should be replaced with IDs of the respective roles in your discord server. The quotes with groups should represent the groups in your permissions.cfg or server.cfg.
+```lua
+roleList = {
+{1, "group.tc"}, --[[ Trusted-Civ --- ]]
+{1, "group.faa"}, --[[ FAA --- ]]
+{1, "group.donator"}, --[[ Donator --- ]]
+{1, "group.trialModerator"}, --[[ T-Mod --- ]]
+{1, "group.moderator"}, --[[ Moderator --- ]]
+{1, "group.admin"}, --[[ Admin --- ]]
+{1, "group.admin"}, --[[ Management --- ]]
+{1, "group.owner"}, --[[ Owner --- ]]
+}
diff --git a/resources/[EGRP-Discord-Integration]/DiscordAcePerms/__resource.lua b/resources/[EGRP-Discord-Integration]/DiscordAcePerms/__resource.lua
new file mode 100644
index 000000000..b607dbd97
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordAcePerms/__resource.lua
@@ -0,0 +1,8 @@
+-----------------------------------
+--- Discord ACE Perms by Badger ---
+-----------------------------------
+
+resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
+
+server_script "config.lua"
+server_script "server.lua"
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/DiscordAcePerms/config.lua b/resources/[EGRP-Discord-Integration]/DiscordAcePerms/config.lua
new file mode 100644
index 000000000..7652bf8d0
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordAcePerms/config.lua
@@ -0,0 +1,17 @@
+Config = {
+ Server_Name = "[Elite Gaming RP]",
+ Discord_Link = 'https://discord.gg/2XvwvgR',
+ Website_Link = 'https://elite-gaming.co.uk',
+ roleList = {
+ {538822780662054963, "group.helper"}, --Helper role
+ {608583076037001225, "group.staff"}, --Staff role
+ {789551229549281331, "group.staff"}, --Sr.Staff role
+ {517060882686279701, "group.moderator"}, --Moderator role
+ {789538166536798248, "group.moderator"}, --Sr.Moderator role
+ {635155687688634399, "group.admin"}, --Admin role
+ {556158473981788176, "group.admin"}, --Sr.Admin role
+ {650653280275267591, "group.superadmin"}, --Head of Staff role
+ {789553875152535593, "group.superadmin"}, --Development Team role
+ {361899298209923075, "group.superadmin"}, --Owner role
+ },
+}
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/DiscordAcePerms/server.lua b/resources/[EGRP-Discord-Integration]/DiscordAcePerms/server.lua
new file mode 100644
index 000000000..b1d2a86b7
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordAcePerms/server.lua
@@ -0,0 +1,177 @@
+-----------------------------------
+--- Discord ACE Perms by Badger ---
+-----------------------------------
+
+--- Code ---
+local function has_value (tab, val)
+ for index, value in ipairs(tab) do
+ if value == val then
+ return true
+ end
+ end
+
+ return false
+end
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
+function ExtractIdentifiers(src)
+ local identifiers = {
+ steam = "",
+ ip = "",
+ discord = "",
+ license = "",
+ xbl = "",
+ live = ""
+ }
+
+ --Loop over all identifiers
+ for i = 0, GetNumPlayerIdentifiers(src) - 1 do
+ local id = GetPlayerIdentifier(src, i)
+
+ --Convert it to a nice table.
+ if string.find(id, "steam") then
+ identifiers.steam = id
+ elseif string.find(id, "ip") then
+ identifiers.ip = id
+ elseif string.find(id, "discord") then
+ identifiers.discord = id
+ elseif string.find(id, "license") then
+ identifiers.license = id
+ elseif string.find(id, "xbl") then
+ identifiers.xbl = id
+ elseif string.find(id, "live") then
+ identifiers.live = id
+ end
+ end
+
+ return identifiers
+end
+
+DiscordDetector = {}
+
+InDiscordDetector = {}
+
+PermTracker = {}
+
+roleList = Config.roleList;
+
+AddEventHandler('playerDropped', function (reason)
+ local src = source;
+ local discord = ExtractIdentifiers(src).discord:gsub("discord:", "");
+ local license = ExtractIdentifiers(src).license;
+ if PermTracker[discord] ~= nil then
+ -- They have perms that need to be removed:
+ local list = PermTracker[discord];
+ for i = 1, #list do
+ local permGroup = list[i];
+ ExecuteCommand('remove_principal identifier.discord:' .. discord .. " " .. permGroup);
+ print("[DiscordAcePerms] (playerDropped) Removed "
+ .. GetPlayerName(src) .. " from role group " .. permGroup)
+ end
+ PermTracker[discord] = nil;
+ end
+ DiscordDetector[license] = nil;
+end)
+debugScript = false;
+
+AddEventHandler('playerConnecting', function(name, setKickReason, deferrals)
+ deferrals.defer();
+ local src = source;
+ local identifierDiscord = "";
+ local license = ExtractIdentifiers(src).license;
+ local discord = ExtractIdentifiers(src).discord:gsub("discord:", "");
+ for k, v in ipairs(GetPlayerIdentifiers(src)) do
+ if string.sub(v, 1, string.len("discord:")) == "discord:" then
+ identifierDiscord = v
+ end
+ end
+ local permAdd = "add_principal identifier.discord:" .. discord .. " "
+ if identifierDiscord then
+ if debugScript then
+ print("Gets past identifierDiscord statement");
+ end
+ local roleIDs = exports.Badger_Discord_API:GetDiscordRoles(src)
+ if debugScript then
+ print("Value of roleIDs == " .. tostring(roleIDs));
+ end
+ if not (roleIDs == false) then
+ if debugScript then
+ print("Gets past (not [roleIDs == false]) statement");
+ end
+ for i = 1, #roleList do
+ for j = 1, #roleIDs do
+ if exports.Badger_Discord_API:CheckEqual(roleList[i][1], roleIDs[j]) then
+ print("[DiscordAcePerms] (playerConnecting) Added " .. GetPlayerName(src) .. " to role group " .. roleList[i][2]);
+ ExecuteCommand(permAdd .. roleList[i][2])
+ -- Track the permission node given:
+ if PermTracker[discord] ~= nil then
+ -- Has them, we add to list
+ local list = PermTracker[discord];
+ table.insert(list, roleList[i][2]);
+ PermTracker[discord] = list;
+ else
+ -- Doesn't have them, give them a list
+ local list = {};
+ table.insert(list, roleList[i][2]);
+ PermTracker[discord] = list;
+ end
+ end
+ end
+ end
+ print("[DiscordAcePerms] (playerConnecting) Player " .. GetPlayerName(src) .. " has been granted their permissions...");
+ else
+ print("[DiscordAcePerms] " .. GetPlayerName(src) .. " has not gotten permissions because we could not find their roles...")
+ if InDiscordDetector[license] == nil then
+ -- Notify them they are not in the Discord
+ InDiscordDetector[license] = true;
+ local clicked = false;
+ while not clicked do
+ deferrals.presentCard(card,
+ function(data, rawData)
+ if (data.submitId == 'played') then
+ clicked = true;
+ deferrals.done()
+ end
+ end)
+ Citizen.Wait((1000 * 13));
+ end
+ return;
+ end
+ end
+ else
+ if DiscordDetector[license] == nil then
+ -- Kick with we couldn't find their discord, try to restart it whilst fivem is closed
+ DiscordDetector[license] = true;
+ print('[DiscordAcePerms] Discord was not found for player ' .. GetPlayerName(src) .. "...")
+ local clicked = false;
+ while not clicked do
+ deferrals.presentCard(card,
+ function(data, rawData)
+ if (data.submitId == 'played') then
+ clicked = true;
+ deferrals.done()
+ end
+ end)
+ Citizen.Wait((1000 * 13));
+ end
+ return;
+ end
+ end
+ deferrals.done();
+end)
+--card = '{"type":"AdaptiveCard","$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2","body":[{"type":"Container","items":[{"type":"TextBlock","text":"Welcome to ' .. Config.Server_Name .. '","wrap":true,"fontType":"Default","size":"ExtraLarge","weight":"Bolder","color":"Light"},{"type":"TextBlock","text":"You were not detected in our Discord!","wrap":true,"size":"Large","weight":"Bolder","color":"Light"},{"type":"TextBlock","text":"Please join below, then press play! Have fun!","wrap":true,"color":"Light","size":"Medium"},{"type":"ColumnSet","height":"stretch","minHeight":"100px","bleed":true,"horizontalAlignment":"Center","columns":[{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Discord","iconUrl":"","url":"' .. Config.Discord_Link .. '","style":"positive"}]}]},{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.Submit","title":"Play","style":"positive","iconUrl":"","id":"played"}]}]},{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Website","style":"positive","url":"' .. Config.Website_Link .. '","iconUrl":""}]}]}]},{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"DiscordAcePerms created by Badger","style":"destructive","iconUrl":"https://i.gyazo.com/c629f37bb1aeed2c1bc1768fdc93bc1a.gif","url":"https://discord.com/invite/WjB5VFz"}]}],"style":"default","bleed":true,"height":"stretch","isVisible":true}]}'
+-- IMPORTANT
+-- BEFORE EDITING:
+-- Do not take out my credit... Out of respect for my resources, do not remove my credit. Thank you.
+card = '{"type":"AdaptiveCard","$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2","body":[{"type":"Container","items":[{"type":"TextBlock","text":"Welcome to ' .. Config.Server_Name .. '","wrap":true,"fontType":"Default","size":"ExtraLarge","weight":"Bolder","color":"Light"},{"type":"TextBlock","text":"You were not detected in our Discord!","wrap":true,"size":"Large","weight":"Bolder","color":"Light"},{"type":"TextBlock","text":"Please join below, then press play! Have fun!","wrap":true,"color":"Light","size":"Medium"},{"type":"ColumnSet","height":"stretch","minHeight":"100px","bleed":true,"horizontalAlignment":"Center","selectAction":{"type":"Action.OpenUrl"},"columns":[{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Discord","url":"' .. Config.Discord_Link .. '","style":"positive"}]}]},{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.Submit","title":"Play","style":"positive", "id":"played"}]}]},{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Website","style":"positive","url":"' .. Config.Website_Link .. '"}]}]}]},{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"DiscordAcePerms created by Badger","style":"destructive","iconUrl":"https://i.gyazo.com/c629f37bb1aeed2c1bc1768fdc93bc1a.gif","url":"https://discord.com/invite/WjB5VFz"}]}],"style":"default","bleed":true,"height":"stretch","isVisible":true}]}'
+--card = json.encode(card)
+--card = [==[{"type":"AdaptiveCard","$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2","body":[{"type":"Container","items":[{"type":"TextBlock","text":"Welcome to [SERVER_NAME]","wrap":true,"fontType":"Default","size":"ExtraLarge","weight":"Bolder","color":"Light"},{"type":"TextBlock","text":"You were not detected in our Discord!","wrap":true,"size":"Large","weight":"Bolder","color":"Light"},{"type":"TextBlock","text":"Please join below, then press play! Have fun!","wrap":true,"color":"Light","size":"Medium"},{"type":"ColumnSet","height":"stretch","minHeight":"100px","bleed":true,"horizontalAlignment":"Center","selectAction":{"type":"Action.OpenUrl"},"columns":[{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Discord","iconUrl":"https://i.gyazo.com/c629f37bb1aeed2c1bc1768fdc93bc1a.gif","url":"https://discord.gg","style":"positive"}]}]},{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.Submit","title":"Play","style":"positive","iconUrl":"https://i.gyazo.com/c629f37bb1aeed2c1bc1768fdc93bc1a.gif","id":"played"}]}]},{"type":"Column","width":"stretch","items":[{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"Website","style":"positive","url":"https://badger.store","iconUrl":"https://i.gyazo.com/c629f37bb1aeed2c1bc1768fdc93bc1a.gif"}]}]}]},{"type":"ActionSet","actions":[{"type":"Action.OpenUrl","title":"DiscordAcePerms created by Badger","style":"destructive","iconUrl":"https://i.gyazo.com/c629f37bb1aeed2c1bc1768fdc93bc1a.gif","url":"https://discord.com/invite/WjB5VFz"}]}],"style":"default","bleed":true,"height":"stretch","isVisible":true}]}]==]
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/DiscordChatRoles/LICENSE b/resources/[EGRP-Discord-Integration]/DiscordChatRoles/LICENSE
new file mode 100644
index 000000000..9595491de
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordChatRoles/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Jared
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/resources/[EGRP-Discord-Integration]/DiscordChatRoles/README.md b/resources/[EGRP-Discord-Integration]/DiscordChatRoles/README.md
new file mode 100644
index 000000000..ba53ec8d8
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordChatRoles/README.md
@@ -0,0 +1,43 @@
+# DiscordChatRoles
+
+## Continued Documentation
+https://docs.badger.store/fivem-discord-scripts/discordchatroles
+
+## Discontinued Documentation
+
+### Version 1.0
+
+#### Installation Information:
+https://forum.fivem.net/t/discordchatroles-release/566338
+
+This is a very simple script that uses IllusiveTea’s discord_perms for chat roles :)
+
+Picture example taken from my RP server:
+
+
+
+You must set up IllusiveTea’s discord_perms script for this to work properly:
+
+https://forum.fivem.net/t/discord-roles-for-permissions-im-creative-i-know/233805
+
+Example of how the chat roles are set up and what you should change:
+
+```lua
+--[[
+ List in order of least priority to highest with
+ highest priority overtaking role before it if
+ they have that discord role.
+]]--
+roleList = {
+{0, "^4Civilian | "},
+{1, "^3Trusted Civ | "},
+{1, "^2Donator | "},
+{1, "^1T-Mod | "},
+{1, "^1Mod | "},
+{1, "^1Admin | "},
+{1, "^6Management | "},
+{1, "^5Owner | "},
+}
+```
+
+The 1s should be replaced with IDs of the respective roles in your discord server. (0 should stay for Civilian as it is the default role for all users)
diff --git a/resources/[EGRP-Discord-Integration]/DiscordChatRoles/__resource.lua b/resources/[EGRP-Discord-Integration]/DiscordChatRoles/__resource.lua
new file mode 100644
index 000000000..3d5c0d617
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordChatRoles/__resource.lua
@@ -0,0 +1,8 @@
+------------------------------------
+--- Discord Chat Roles by Badger ---
+------------------------------------
+
+resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
+
+client_script "client.lua"
+server_script "server.lua"
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/DiscordChatRoles/client.lua b/resources/[EGRP-Discord-Integration]/DiscordChatRoles/client.lua
new file mode 100644
index 000000000..a0f3a2c2e
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordChatRoles/client.lua
@@ -0,0 +1,21 @@
+------------------------------------
+--- Discord Chat Roles by Badger ---
+------------------------------------
+
+RegisterNetEvent('Permissions:CheckPermsClient')
+AddEventHandler('Permissions:CheckPermsClient', function(msg)
+ if staffchatActive then
+ TriggerServerEvent('DiscordChatRoles:CheckPerms', msg)
+ end
+end)
+staffchatActive = true
+RegisterNetEvent('DiscordChatRoles:StaffChat:Toggle')
+AddEventHandler('DiscordChatRoles:StaffChat:Toggle', function()
+ if staffchatActive then
+ staffchatActive = false
+ TriggerEvent('chatMessage', '', {255, 255, 255}, '^7[^1StaffChat^7] ^5StaffChat messages are now ^1DISABLED')
+ else
+ staffchatActive = true
+ TriggerEvent('chatMessage', '', {255, 255, 255}, '^7[^1StaffChat^7] ^5StaffChat messages are now ^2ENABLED')
+ end
+end)
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/DiscordChatRoles/server.lua b/resources/[EGRP-Discord-Integration]/DiscordChatRoles/server.lua
new file mode 100644
index 000000000..140f533f3
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordChatRoles/server.lua
@@ -0,0 +1,495 @@
+------------------------------------
+--- Discord Chat Roles by Badger ---
+------------------------------------
+
+--[[
+ List in order of least priority to highest with
+ highest priority overtaking role before it if
+ they have that discord role.
+]]--
+-- CONFIG --
+roleList = {
+{0, "👱†^3Member | "}, -- 1
+{434472452328783893, "👨â€ðŸ”¬ ^3Verified Member | "}, -- 2
+{807398679937417237, "ðŸ› ï¸ ^1Mechanic | "}, -- 3
+{807381509195300905, '👨â€âš•ï¸ ^1SAFD | '}, -- 4
+{807381508167565352, '👮 ^2BCSO | '}, -- 5
+{807381508859887667, '👮 ^8SASP | '}, -- 6
+{807381507622305852, '👮 ^4LSPD | '}, -- 7
+{807381510284902451, '👮 ^4FBI | '}, -- 8
+{807381510026035240, '📶 ^6Dispatch | '}, -- 9
+{585557857827815429, '🔥 ^9Nitro Booster | '}, -- 10
+{596414797977878530, "🥈 ^7Silver Supporter | "}, -- 11
+{742482159851536455, '🥇 ^3Gold Supporter | '}, -- 12
+{742482158945566771, "💠^4Platinum Supporter | "}, -- 13
+{742482161680122047, "💎 ^5Diamond Supporter | "}, -- 14
+{608583076037001225, "🛂 ï¸^2Staff | "},
+{789551229549281331, "🛂 ï¸^2Sr. Staff | "},
+{517060882686279701, "🛃 ^4Moderator | "},
+{789538166536798248, "🛃 ^4Sr. Moderator | "},
+{635155687688634399, "🔰 ^2Administrator | "},
+{556158473981788176, "🔰 ^2Senior Administrator | "},
+{650653280275267591, "🔰 ^2Head of Staff | "},
+{671141073728307228, "👨â€ðŸ’» ^8Server Developer | "},
+{361899298209923075, "🉠^8EGRP CEO | "},
+}
+sendBlockMessages = false;
+
+
+-- CODE --
+function sendMsg(firstline, msg, to)
+ TriggerClientEvent('chat:addMessage', to, {
+ template = '
{0} {1}
',
+ args = { firstline, msg }
+ });
+end
+
+-- For allowing colored chat
+allowedColors = {3, 4, 10, 11, 12, 13, 14}
+allowedRed = {10, 11, 12, 13, 14}
+
+
+--- Code ---
+
+function sleep (a)
+ local sec = tonumber(os.clock() + a);
+ while (os.clock() < sec) do
+ end
+end
+local function has_value (tab, val)
+ for index, value in ipairs(tab) do
+ if value == val then
+ return true
+ end
+ end
+
+ return false
+end
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
+function get_index (tab, val)
+ local counter = 1
+ for index, value in ipairs(tab) do
+ if value == val then
+ return counter
+ end
+ counter = counter + 1
+ end
+
+ return nil
+end
+
+roleTracker = {}
+roleAccess = {}
+chatcolorTracker = {}
+local availColors =
+{
+ ['DiscordChatRoles.Access.Donator'] = {
+ ['White'] = {'^0'},
+ ['Green'] = {'^2'},
+ ['Yellow'] = {'^3'},
+ ['Blue'] = {'^4'},
+ ['Light Blue'] = {'^5'},
+ ['Purple'] = {'^6'},
+ ['White'] = {'^7'},
+ ['Pink'] = {'^9'},
+ ['Police'] = {'^1', '^4'},
+ ['Police2'] = {'^4', '^1'},
+ ['Christmas'] = {'^2', '^1'},
+ ['Christmas2'] = {'^1', '^2'},
+ },
+ ['DiscordChatRoles.Access.Elite'] = {
+ ['RainbowYGB'] = {'^3', '^2', '^4'},
+ ['RainbowFull'] = {'^3', '^4', '^1', '^5', '^6', '^7', '^9'},
+ },
+ ['DiscordChatRoles.Access.Staff'] = {
+ ['Red'] = {'^1'},
+ }
+}
+RegisterCommand('chatcolor', function(source, args, rawCommand)
+ local theirList = {}
+ local colorList = {}
+ for k, v in pairs(availColors) do
+ -- k = Permission
+ -- v = Array of color-selections
+ if IsPlayerAceAllowed(source, k) then
+ -- They have permission to use these colors:
+ for colorName, colorArr in pairs(availColors[k]) do
+ table.insert(theirList, colorName);
+ table.insert(colorList, colorArr);
+ end
+ end
+ end
+ if #args == 0 then
+ -- List out which ones they have access to
+ if #theirList > 0 then
+ TriggerClientEvent('chatMessage', source, prefix .. 'You have access to the following Chat-Colors:');
+ for i = 1, #theirList do
+ local arr = colorList[i];
+ local example = 'Example'
+ local ex = '';
+ local indCount = 1
+ for j = 1, #example do
+ if indCount > #arr then
+ indCount = 1;
+ end
+ local char = example:sub(j, j);
+ ex = ex .. arr[indCount] .. char;
+ indCount = indCount + 1;
+ end
+ TriggerClientEvent('chatMessage', source, '^9[^4' .. i .. '^9] ^0' .. theirList[i] .. " ---> " .. ex);
+ end
+ else
+ TriggerClientEvent('chatMessage', source, prefix .. '^1ERROR: You have no Chat-Colors :( - Consider donating for some :)');
+ end
+ else
+ local selection = args[1]
+ if tonumber(selection) ~= nil then
+ local sel = tonumber(selection);
+ if sel <= #theirList then
+ chatcolorTracker[source] = colorList[sel];
+ TriggerClientEvent('chatMessage', source, prefix .. 'You have set your Chat-Color to ^4' .. theirList[sel]);
+ else
+ -- Invalid selection
+ TriggerClientEvent('chatMessage', source, '^1ERROR: That is not a valid selection...')
+ end
+ else
+ -- Print it's not a number
+ TriggerClientEvent('chatMessage', source, '^1ERROR: You did not put in a number...')
+ end
+ end
+end)
+RegisterCommand('cc', function(source, args, rawCommand)
+ local theirList = {}
+ local colorList = {}
+ for k, v in pairs(availColors) do
+ -- k = Permission
+ -- v = Array of color-selections
+ if IsPlayerAceAllowed(source, k) then
+ -- They have permission to use these colors:
+ for colorName, colorArr in pairs(availColors[k]) do
+ table.insert(theirList, colorName);
+ table.insert(colorList, colorArr);
+ end
+ end
+ end
+ if #args == 0 then
+ -- List out which ones they have access to
+ if #theirList > 0 then
+ TriggerClientEvent('chatMessage', source, prefix .. 'You have access to the following Chat-Colors:');
+ for i = 1, #theirList do
+ local arr = colorList[i];
+ local example = 'Example'
+ local ex = '';
+ local indCount = 1
+ for j = 1, #example do
+ if indCount > #arr then
+ indCount = 1;
+ end
+ local char = example:sub(j, j);
+ ex = ex .. arr[indCount] .. char;
+ indCount = indCount + 1;
+ end
+ TriggerClientEvent('chatMessage', source, '^9[^4' .. i .. '^9] ^0' .. theirList[i] .. " ---> " .. ex);
+ end
+ else
+ TriggerClientEvent('chatMessage', source, prefix .. '^1ERROR: You have no Chat-Colors :( - Consider donating for some :)');
+ end
+ else
+ local selection = args[1]
+ if tonumber(selection) ~= nil then
+ local sel = tonumber(selection);
+ if sel <= #theirList then
+ chatcolorTracker[source] = colorList[sel];
+ TriggerClientEvent('chatMessage', source, prefix .. 'You have set your Chat-Color to ^4' .. theirList[sel]);
+ else
+ -- Invalid selection
+ TriggerClientEvent('chatMessage', source, '^1ERROR: That is not a valid selection...')
+ end
+ else
+ -- Print it's not a number
+ TriggerClientEvent('chatMessage', source, '^1ERROR: You did not put in a number...')
+ end
+ end
+end)
+function setContains(set, key)
+ return set[key] ~= nil
+end
+function msg(src, mesg)
+ TriggerClientEvent('chatMessage', src, prefix .. mesg)
+end
+function msgRaw(src, mesg)
+ TriggerClientEvent('chatMessage', src, mesg)
+end
+prefix = '^9[^5DiscordChatRoles^9] ^3'
+RegisterCommand('chattag', function(source, args, rawCommand)
+ local steamID = GetPlayerIdentifiers(source)[1];
+ local accessChat = roleAccess[steamID]
+ if accessChat == nil then
+ -- Need them to say something in chat first 1 time
+ msg(source, 'You need to say something in chat before you run this command...')
+ return;
+ end
+ if #args == 0 then
+ -- Just list their chat tags
+ msg(source, "You have access to the following Chat-Tags:")
+ for i = 1, #accessChat do
+ msgRaw(source, '^9[^4' .. i .. '^9] ^r' .. roleList[accessChat[i]][2])
+ end
+ msg(source, "Use /chattag to change your Chat-Tag")
+ elseif #args == 1 then
+ -- Change their chat tag
+ if tonumber(args[1]) ~= nil then
+ if accessChat[tonumber(args[1])] ~= nil then
+ -- Set their chatTag
+ roleTracker[steamID] = accessChat[tonumber(args[1])]
+ msg(source, 'Your Chat-Tag has now been set to:^r ' .. roleList[accessChat[tonumber(args[1])]][2])
+ else
+ -- Not a valid chat tag ID
+ msg(source, '^1ERROR: This is not a valid Chat-Tag id')
+ end
+ else
+ -- It's not a valid number
+ msg(source, '^1ERROR: This is not a number...')
+ end
+ else
+ -- Not correct syntax
+ msg(source, '^1ERROR: Not proper usage. /chattag ')
+ end
+end)
+chatNotEnabled = {}
+RegisterNetEvent('DiscordChatRoles:DisableChat')
+AddEventHandler('DiscordChatRoles:DisableChat', function(src)
+ chatNotEnabled[src] = true;
+end)
+RegisterNetEvent('DiscordChatRoles:EnableChat')
+AddEventHandler('DiscordChatRoles:EnableChat', function(src)
+ chatNotEnabled[src] = nil;
+end)
+
+AddEventHandler('chatMessage', function(source, name, msg)
+ local args = stringsplit(msg)
+ CancelEvent()
+ local src = source
+ if not string.find(args[1], "/") and setContains(roleTracker, GetPlayerIdentifiers(source)[1]) and
+ not has_value(inStaffChat, GetPlayerIdentifiers(source)[1]) and not (chatNotEnabled[src] ~= nil) then
+ local roleStr = roleList[roleTracker[GetPlayerIdentifiers(source)[1]]][2]
+ local colors = {'^0', '^2', '^3', '^4', '^5', '^6', '^7', '^8', '^9'}
+ local staffColors = {'^1', '^8'}
+ local hasColors = false
+ local hasRed = false
+ local roleNum = roleTracker[GetPlayerIdentifiers(source)[1]]
+ for i = 1, #colors do
+ local checkFor = "%" .. tostring(colors[i])
+ if string.match(msg, checkFor) ~= nil then
+ hasColors = true
+ end
+ end
+ for i = 1, #staffColors do
+ if string.find(msg, "%" .. staffColors[i]) ~= nil then
+ hasRed = true
+ end
+ end
+ local dontSend = false
+ if hasColors then
+ -- Check if they have required role
+ if not has_value(allowedColors, tonumber(roleNum)) then
+ dontSend = true
+ TriggerClientEvent('chatMessage', source, "^7[^1DiscordChatRoles^7] ^1You cannot use colored chat since you are not a donator...")
+ end
+ end
+ if hasRed then
+ -- Check if they have required role
+ if not has_value(allowedRed, tonumber(roleNum)) then
+ dontSend = true
+ TriggerClientEvent('chatMessage', source, "^7[^1DiscordChatRoles^7] ^1You cannot use the color RED in chat since you are not staff...")
+ end
+ end
+ local theirColor = chatcolorTracker[source];
+ local finalMessage = msg;
+ if theirColor ~= nil then
+ finalMessage = ''
+ local indCount = 1;
+ for j = 1, #msg do
+ if indCount > #theirColor then
+ indCount = 1;
+ end
+ local char = msg:sub(j, j);
+ finalMessage = finalMessage .. theirColor[indCount] .. char;
+ indCount = indCount + 1;
+ end
+ end
+ if not dontSend then
+ --TriggerClientEvent('chatMessage', -1, roleStr .. name .. "^7: " .. finalMessage)
+ if sendBlockMessages then
+ sendMsg(roleStr .. name .. "^7: ", finalMessage, -1);
+ else
+ TriggerClientEvent('chatMessage', -1, roleStr .. name .. "^7: " .. finalMessage);
+ end
+ end
+ end
+ if not string.find(args[1], "/") and not has_value(inStaffChat, GetPlayerIdentifiers(source)[1]) and
+ not setContains(roleTracker, GetPlayerIdentifiers(source)[1]) and not (chatNotEnabled[src] ~= nil) then
+ CancelEvent()
+ roleTracker[GetPlayerIdentifiers(source)[1]] = 1
+ for k, v in ipairs(GetPlayerIdentifiers(src)) do
+ if string.sub(v, 1, string.len("discord:")) == "discord:" then
+ identifierDiscord = v
+ end
+ end
+ local roleStr = roleList[1][2]
+ local roleNum = 1
+ local hasAccess = {}
+ table.insert(hasAccess, roleNum)
+ if identifierDiscord then
+ local roleIDs = exports.discord_perms:GetRoles(src)
+ -- Loop through roleList and set their role up:
+ if not (roleIDs == false) then
+ for i = 1, #roleList do
+ for j = 1, #roleIDs do
+ local roleID = roleIDs[j]
+ if (tostring(roleList[i][1]) == tostring(roleID)) then
+ roleStr = roleList[i][2]
+ table.insert(hasAccess, i)
+ roleNum = i
+ end
+ end
+ end
+ roleAccess[GetPlayerIdentifiers(source)[1]] = hasAccess;
+ else
+ print(GetPlayerName(src) .. " has not gotten their permissions cause roleIDs == false")
+ end
+ end
+ roleTracker[GetPlayerIdentifiers(source)[1]] = roleNum
+ local colors = {'^0', '^2', '^3', '^4', '^5', '^6', '^7', '^8', '^9'}
+ local staffColors = {'^1', '^8'}
+ local hasColors = false
+ local hasRed = false
+ for i = 1, #colors do
+ local checkFor = "%" .. tostring(colors[i])
+ if string.match(msg, checkFor) ~= nil then
+ hasColors = true
+ end
+ end
+ for i = 1, #staffColors do
+ if string.find(msg, "%" .. staffColors[i]) ~= nil then
+ hasRed = true
+ end
+ end
+ local dontSend = false
+ if hasColors then
+ -- Check if they have required role
+ if not has_value(allowedColors, tonumber(roleNum)) then
+ dontSend = true
+ TriggerClientEvent('chatMessage', source, "^7[^1DiscordChatRoles^7] ^1You cannot use colored chat since you are not a donator...")
+ end
+ end
+ if hasRed then
+ -- Check if they have required role
+ if not has_value(allowedRed, tonumber(roleNum)) then
+ dontSend = true
+ TriggerClientEvent('chatMessage', source, "^7[^1DiscordChatRoles^7] ^1You cannot use the color RED in chat since you are not staff...")
+ end
+ end
+ local theirColor = chatcolorTracker[source];
+ local finalMessage = msg;
+ if theirColor ~= nil then
+ finalMessage = ''
+ local indCount = 1;
+ for j = 1, #msg do
+ if indCount > #theirColor then
+ indCount = 1;
+ end
+ local char = msg:sub(j, j);
+ finalMessage = finalMessage .. theirColor[indCount] .. char;
+ indCount = indCount + 1;
+ end
+ end
+ if not dontSend then
+ --TriggerClientEvent('chatMessage', -1, roleStr .. name .. "^7: " .. finalMessage)
+ if (sendBlockMessages) then
+ sendMsg(roleStr .. name .. "^7: ", finalMessage, -1);
+ else
+ TriggerClientEvent('chatMessage', -1, roleStr .. name .. "^7: " .. finalMessage);
+ end
+ end
+ elseif has_value(inStaffChat, GetPlayerIdentifiers(source)[1]) and not string.find(args[1], "/") and not (chatNotEnabled[src] ~= nil) then
+ -- Run client event for all and check perms
+ CancelEvent()
+ msg = "^7[^1StaffChat^7] ^5(^1" .. name .. "^5) ^9" .. msg
+ TriggerClientEvent('Permissions:CheckPermsClient', -1, msg)
+ --print("It gets here 1")
+ end
+end)
+RegisterNetEvent('Print:PrintDebug')
+AddEventHandler('Print:PrintDebug', function(msg)
+ print(msg)
+ TriggerClientEvent('chatMessage', source, "^7[^1Badger's Scripts^7] ^1DEBUG ^7" .. msg)
+end)
+inStaffChat = {}
+RegisterNetEvent("DiscordChatRoles:CheckPerms")
+AddEventHandler("DiscordChatRoles:CheckPerms", function(msg)
+ -- Check if they have permissions
+ --print("It gets to start")
+ local src = source
+ if IsPlayerAceAllowed(src, "StaffChat.Toggle") then
+ TriggerClientEvent('chatMessage', src, msg)
+ --print("It gets to end")
+ else
+ -- Doesn't have perms
+ end
+end)
+RegisterCommand("staffchat", function(source, args, rawCommand)
+ -- Check if they can run the command
+ if IsPlayerAceAllowed(source, "StaffChat.Toggle") then
+ if #args == 1 then
+ if args[1] == "toggle" then
+ -- Turn off their staffchat and return
+ TriggerClientEvent('DiscordChatRoles:StaffChat:Toggle', source)
+ return
+ end
+ end
+ if not has_value(inStaffChat, GetPlayerIdentifiers(source)[1]) then
+ table.insert(inStaffChat, GetPlayerIdentifiers(source)[1])
+ TriggerClientEvent('chatMessage', source, "^7[^1StaffChat^7] ^5StaffChat has been toggled ^2ON")
+ else
+ table.remove(inStaffChat, get_index(inStaffChat, GetPlayerIdentifiers(source)[1]))
+ TriggerClientEvent('chatMessage', source, "^7[^1StaffChat^7] ^5StaffChat has been toggled ^1OFF")
+ end
+ end
+end)
+
+RegisterCommand("sc", function(source, args, rawCommand)
+ -- Check if they can run the command
+ if IsPlayerAceAllowed(source, "StaffChat.Toggle") then
+ if #args == 1 then
+ if args[1] == "toggle" then
+ -- Turn off their staffchat and return
+ TriggerClientEvent('DiscordChatRoles:StaffChat:Toggle', source)
+ return
+ end
+ end
+ if not has_value(inStaffChat, GetPlayerIdentifiers(source)[1]) then
+ table.insert(inStaffChat, GetPlayerIdentifiers(source)[1])
+ TriggerClientEvent('chatMessage', source, "^7[^1StaffChat^7] ^5StaffChat has been toggled ^2ON")
+ else
+ table.remove(inStaffChat, get_index(inStaffChat, GetPlayerIdentifiers(source)[1]))
+ TriggerClientEvent('chatMessage', source, "^7[^1StaffChat^7] ^5StaffChat has been toggled ^1OFF")
+ end
+ end
+end)
+
+AddEventHandler("playerDropped", function()
+ if has_value(inStaffChat, GetPlayerIdentifiers(source)[1]) then
+ table.remove(inStaffChat, get_index(inStaffChat, GetPlayerIdentifiers(source)[1]))
+ end
+end)
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/DiscordReports/LICENSE b/resources/[EGRP-Discord-Integration]/DiscordReports/LICENSE
new file mode 100644
index 000000000..9595491de
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordReports/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Jared
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/resources/[EGRP-Discord-Integration]/DiscordReports/README.md b/resources/[EGRP-Discord-Integration]/DiscordReports/README.md
new file mode 100644
index 000000000..1bd528ce5
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordReports/README.md
@@ -0,0 +1,4 @@
+# DiscordReports
+A Fivem script
+## Documentation
+https://docs.badger.store/fivem-discord-scripts/discordreports
diff --git a/resources/[EGRP-Discord-Integration]/DiscordReports/__resource.lua b/resources/[EGRP-Discord-Integration]/DiscordReports/__resource.lua
new file mode 100644
index 000000000..281e9392c
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordReports/__resource.lua
@@ -0,0 +1,7 @@
+-----------------------------------
+---------- Discord Reports --------
+--- by Badger ---
+-----------------------------------
+
+client_script "client.lua"
+server_script "server.lua"
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/DiscordReports/client.lua b/resources/[EGRP-Discord-Integration]/DiscordReports/client.lua
new file mode 100644
index 000000000..6a0c31d31
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordReports/client.lua
@@ -0,0 +1,17 @@
+-----------------------------------
+---------- Discord Reports --------
+--- by Badger ---
+-----------------------------------
+
+RegisterNetEvent("Reports:CheckPermission:Client")
+AddEventHandler("Reports:CheckPermission:Client", function(msg, error)
+ TriggerServerEvent("Reports:CheckPermission", msg, false)
+end)
+
+--- Functions ---
+function ShowInfo(text)
+ SetNotificationTextEntry("STRING")
+ AddTextComponentSubstringPlayerName(text)
+ DrawNotification(false, false)
+end
+
diff --git a/resources/[EGRP-Discord-Integration]/DiscordReports/server.lua b/resources/[EGRP-Discord-Integration]/DiscordReports/server.lua
new file mode 100644
index 000000000..7e17a6eda
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/DiscordReports/server.lua
@@ -0,0 +1,158 @@
+-----------------------------------
+---------- Discord Reports --------
+--- by Badger ---
+-----------------------------------
+-- Config --
+webhookURL = 'https://discord.com/api/webhooks/807400065840447510/sA249_-XyX9xntZPSyH8STNStIRdbggo2pMXyTLRVTRkSsqnOG2AksZ1D-d-a8qJYAxg'
+displayIdentifiers = true;
+
+-- CODE --
+function GetPlayers()
+ local players = {}
+
+ for _, i in ipairs(GetActivePlayers()) do
+ if NetworkIsPlayerActive(i) then
+ table.insert(players, i)
+ end
+ end
+
+ return players
+end
+
+RegisterCommand("report", function(source, args, rawCommand)
+ sm = stringsplit(rawCommand, " ");
+ if #args < 2 then
+ TriggerClientEvent('chatMessage', source, "^1ERROR: Invalid Usage. ^2Proper Usage: /report ")
+ return;
+ end
+ id = sm[2]
+ if GetPlayerIdentifiers(id)[1] == nil then
+ TriggerClientEvent('chatMessage', source, "^1ERROR: The specified ID is not currently online...")
+ return;
+ end
+ msg = ""
+ local message = ""
+ msg = msg .. " ^9(^6" .. GetPlayerName(source) .. "^9) ^1[^3" .. id .. "^1] "
+ for i = 3, #sm do
+ msg = msg .. sm[i] .. " "
+ message = message .. sm[i] .. " "
+ end
+ -- TriggerClientEvent('chatMessage', source, "^9[^1Badger-Tags^9] ^3Your tag is now ^2active")
+ -- TriggerClientEvent('SandyRestrictions:IsAOP:Return', -1, isSandyAOP, false)
+ if tonumber(id) ~= nil then
+ -- it's a number
+ TriggerClientEvent("Reports:CheckPermission:Client", -1, msg, false)
+ TriggerClientEvent('chatMessage', source, "^9[^1Report^9] ^2Report has been submitted! Thank you for helping us :)")
+ if not displayIdentifiers then
+ sendToDisc("NEW REPORT: _[" .. tostring(id) .. "] " .. GetPlayerName(id) .. "_", 'Reason: **' .. message ..
+ '**', "Reported by: [" .. source .. "] " .. GetPlayerName(source))
+ else
+ -- Display the identifiers with the report
+ local ids = ExtractIdentifiers(id);
+ local steam = ids.steam:gsub("steam:", "");
+ local steamDec = tostring(tonumber(steam,16));
+ steam = "https://steamcommunity.com/profiles/" .. steamDec;
+ local gameLicense = ids.license;
+ local discord = ids.discord;
+ sendToDisc("NEW REPORT: _[" .. tostring(id) .. "] " .. GetPlayerName(id) .. "_",
+ 'Reason: **' .. message ..
+ '**\n' ..
+ 'Steam: **' .. steam .. '**\n' ..
+ 'GameLicense: **' .. gameLicense .. '**\n' ..
+ 'Discord Tag: **<@' .. discord:gsub('discord:', '') .. '>**\n' ..
+ 'Discord UID: **' .. discord:gsub('discord:', '') .. '**', "Reported by: [" .. source .. "] " .. GetPlayerName(source))
+ end
+ --print("Runs report command fine and is number for ID") -- TODO - Debug
+ else
+ -- It's not a number
+ TriggerClientEvent('chatMessage', source, "^9[^1Report^9] ^1Invalid Format. ^1Proper Format: /report ")
+ end
+end)
+
+function sendToDisc(title, message, footer)
+ local embed = {}
+ embed = {
+ {
+ ["color"] = 16711680, -- GREEN = 65280 --- RED = 16711680
+ ["title"] = "**".. title .."**",
+ ["description"] = "" .. message .. "",
+ ["footer"] = {
+ ["text"] = footer,
+ },
+ }
+ }
+ -- Start
+ -- TODO Input Webhook
+ PerformHttpRequest(webhookURL,
+ function(err, text, headers) end, 'POST', json.encode({username = name, embeds = embed}), { ['Content-Type'] = 'application/json' })
+ -- END
+end
+
+local function has_value (tab, val)
+ for index, value in ipairs(tab) do
+ if value == val then
+ return true
+ end
+ end
+ return false
+end
+function sleep (a)
+ local sec = tonumber(os.clock() + a);
+ while (os.clock() < sec) do
+ end
+end
+
+hasPermission = {}
+doesNotHavePermission = {}
+
+RegisterNetEvent("Reports:CheckPermission")
+AddEventHandler("Reports:CheckPermission", function(msg, error)
+ local src = source
+ if IsPlayerAceAllowed(src, "BadgerReports.See") then
+ TriggerClientEvent('chatMessage', src, "^9[^1Report^9] ^8" .. msg)
+ end
+end)
+
+function stringsplit(inputstr, sep)
+ if sep == nil then
+ sep = "%s"
+ end
+ local t={} ; i=1
+ for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
+ t[i] = str
+ i = i + 1
+ end
+ return t
+end
+function ExtractIdentifiers(src)
+ local identifiers = {
+ steam = "",
+ ip = "",
+ discord = "",
+ license = "",
+ xbl = "",
+ live = ""
+ }
+
+ --Loop over all identifiers
+ for i = 0, GetNumPlayerIdentifiers(src) - 1 do
+ local id = GetPlayerIdentifier(src, i)
+
+ --Convert it to a nice table.
+ if string.find(id, "steam") then
+ identifiers.steam = id
+ elseif string.find(id, "ip") then
+ identifiers.ip = id
+ elseif string.find(id, "discord") then
+ identifiers.discord = id
+ elseif string.find(id, "license") then
+ identifiers.license = id
+ elseif string.find(id, "xbl") then
+ identifiers.xbl = id
+ elseif string.find(id, "live") then
+ identifiers.live = id
+ end
+ end
+
+ return identifiers
+end
\ No newline at end of file
diff --git a/resources/[EGRP-Discord-Integration]/discord_perms/__resource.lua b/resources/[EGRP-Discord-Integration]/discord_perms/__resource.lua
new file mode 100644
index 000000000..7ebbaf845
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/discord_perms/__resource.lua
@@ -0,0 +1,9 @@
+resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
+
+server_scripts {
+ "config.lua",
+ "server.lua"
+}
+
+server_export "IsRolePresent"
+server_export "GetRoles"
diff --git a/resources/[EGRP-Discord-Integration]/discord_perms/config.lua b/resources/[EGRP-Discord-Integration]/discord_perms/config.lua
new file mode 100644
index 000000000..d1e37d41d
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/discord_perms/config.lua
@@ -0,0 +1,11 @@
+Config = {
+ DiscordToken = "NTI4NjYwNTc5MjA4OTIxMDk4.DwljPg.T-EapLt0H4szdfByBQIh7ks3kb8",
+ GuildId = "361895986198609920",
+
+ -- Format: ["Role Nickname"] = "Role ID" You can get role id by doing \@RoleName
+ Roles = {
+ ["Donator"] = "703705936577036290", -- This would be checked by doing exports.discord_perms:IsRolePresent(user, "TestRole")
+ ["Donator+"] = "711589146925203519"
+ --["Donator++"] = "711628656341942394"
+ }
+}
diff --git a/resources/[EGRP-Discord-Integration]/discord_perms/server.lua b/resources/[EGRP-Discord-Integration]/discord_perms/server.lua
new file mode 100644
index 000000000..173551a20
--- /dev/null
+++ b/resources/[EGRP-Discord-Integration]/discord_perms/server.lua
@@ -0,0 +1,94 @@
+local FormattedToken = "Bot "..Config.DiscordToken
+
+function DiscordRequest(method, endpoint, jsondata)
+ local data = nil
+ PerformHttpRequest("https://discordapp.com/api/"..endpoint, function(errorCode, resultData, resultHeaders)
+ data = {data=resultData, code=errorCode, headers=resultHeaders}
+ end, method, #jsondata > 0 and json.encode(jsondata) or "", {["Content-Type"] = "application/json", ["Authorization"] = FormattedToken})
+
+ while data == nil do
+ Citizen.Wait(0)
+ end
+
+ return data
+end
+
+function GetRoles(user)
+ local discordId = nil
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ print("Found discord id: "..discordId)
+ break
+ end
+ end
+
+ if discordId then
+ local endpoint = ("guilds/%s/members/%s"):format(Config.GuildId, discordId)
+ local member = DiscordRequest("GET", endpoint, {})
+ if member.code == 200 then
+ local data = json.decode(member.data)
+ local roles = data.roles
+ local found = true
+ return roles
+ else
+ --print("An error occured, maybe they arent in the discord? Error: "..member.data)
+ return false
+ end
+ else
+ --print("missing identifier")
+ return false
+ end
+end
+
+function IsRolePresent(user, role)
+ local discordId = nil
+ for _, id in ipairs(GetPlayerIdentifiers(user)) do
+ if string.match(id, "discord:") then
+ discordId = string.gsub(id, "discord:", "")
+ --print("Found discord id: "..discordId)
+ break
+ end
+ end
+
+ local theRole = nil
+ if type(role) == "number" then
+ theRole = tostring(role)
+ else
+ theRole = Config.Roles[role]
+ end
+
+ if discordId then
+ local endpoint = ("guilds/%s/members/%s"):format(Config.GuildId, discordId)
+ local member = DiscordRequest("GET", endpoint, {})
+ if member.code == 200 then
+ local data = json.decode(member.data)
+ local roles = data.roles
+ local found = true
+ for i=1, #roles do
+ if roles[i] == theRole then
+ --print("Found role")
+ return true
+ end
+ end
+ --print("Not found!")
+ return false
+ else
+ --print("An error occured, maybe they arent in the discord? Error: "..member.data)
+ return false
+ end
+ else
+ --print("Missing Identifier")
+ return false
+ end
+end
+
+Citizen.CreateThread(function()
+ local guild = DiscordRequest("GET", "guilds/"..Config.GuildId, {})
+ if guild.code == 200 then
+ local data = json.decode(guild.data)
+ --print("Permission system guild set to: "..data.name.." ("..data.id..")")
+ else
+ --print("An error occured, please check your config and ensure everything is correct. Error: "..(guild.data or guild.code))
+ end
+end)
diff --git a/resources/[EGRP-Peds]/AdminPed/__resource.lua b/resources/[EGRP-Peds]/AdminPed/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/AdminPed/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/AdminPed/peds.meta b/resources/[EGRP-Peds]/AdminPed/peds.meta
new file mode 100644
index 000000000..7db281425
--- /dev/null
+++ b/resources/[EGRP-Peds]/AdminPed/peds.meta
@@ -0,0 +1 @@
+
s_m_m_ciasec_01move_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.ydd b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.ydd
new file mode 100644
index 000000000..3b56c4c73
Binary files /dev/null and b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.ydd differ
diff --git a/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.yft b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.yft
new file mode 100644
index 000000000..20a017ce3
--- /dev/null
+++ b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ca9f77e0b335bc0b765ed4a5fe669c8266e5a5a2c48fdc65646bcad9734903ac
+size 12785
diff --git a/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.ymt b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.ymt
new file mode 100644
index 000000000..884d4a06a
Binary files /dev/null and b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.ymt differ
diff --git a/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.ytd b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.ytd
new file mode 100644
index 000000000..cde5ea7d1
--- /dev/null
+++ b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2b1586b4223a50009ae9c550623e1d1524a9a22770dda3eeed6e861a7735fd3d
+size 9871448
diff --git a/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01_p.ydd b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01_p.ydd
new file mode 100644
index 000000000..ee2646f3d
Binary files /dev/null and b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01_p.ydd differ
diff --git a/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01_p.ytd b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01_p.ytd
new file mode 100644
index 000000000..c5e8eb76a
--- /dev/null
+++ b/resources/[EGRP-Peds]/AdminPed/stream/s_m_m_ciasec_01_p.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0644e96aa4738e87b8b5b376e6ae567a763455b9a9bd73f3f7b82500ec6caf5d
+size 1006953
diff --git a/resources/[EGRP-Peds]/Alien/__resource.lua b/resources/[EGRP-Peds]/Alien/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/Alien/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/Alien/peds.meta b/resources/[EGRP-Peds]/Alien/peds.meta
new file mode 100644
index 000000000..8521f807e
--- /dev/null
+++ b/resources/[EGRP-Peds]/Alien/peds.meta
@@ -0,0 +1 @@
+
Alienmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/Alien/stream/Alien.ydd b/resources/[EGRP-Peds]/Alien/stream/Alien.ydd
new file mode 100644
index 000000000..d151ea273
Binary files /dev/null and b/resources/[EGRP-Peds]/Alien/stream/Alien.ydd differ
diff --git a/resources/[EGRP-Peds]/Alien/stream/Alien.yft b/resources/[EGRP-Peds]/Alien/stream/Alien.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/Alien/stream/Alien.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/Alien/stream/Alien.ymt b/resources/[EGRP-Peds]/Alien/stream/Alien.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/Alien/stream/Alien.ymt differ
diff --git a/resources/[EGRP-Peds]/Alien/stream/Alien.ytd b/resources/[EGRP-Peds]/Alien/stream/Alien.ytd
new file mode 100644
index 000000000..3d1f710f1
--- /dev/null
+++ b/resources/[EGRP-Peds]/Alien/stream/Alien.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c7ffb96f55e52146932b8e87009560aa742ce230e93d3a0889440adb00b3899
+size 1372507
diff --git a/resources/[EGRP-Peds]/BCSO/__resource.lua b/resources/[EGRP-Peds]/BCSO/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/BCSO/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/BCSO/peds.meta b/resources/[EGRP-Peds]/BCSO/peds.meta
new file mode 100644
index 000000000..ccd401389
--- /dev/null
+++ b/resources/[EGRP-Peds]/BCSO/peds.meta
@@ -0,0 +1 @@
+
BCSOmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/BCSO/stream/BCSO.ydd b/resources/[EGRP-Peds]/BCSO/stream/BCSO.ydd
new file mode 100644
index 000000000..0d2e8d879
Binary files /dev/null and b/resources/[EGRP-Peds]/BCSO/stream/BCSO.ydd differ
diff --git a/resources/[EGRP-Peds]/BCSO/stream/BCSO.yft b/resources/[EGRP-Peds]/BCSO/stream/BCSO.yft
new file mode 100644
index 000000000..c638f79c2
--- /dev/null
+++ b/resources/[EGRP-Peds]/BCSO/stream/BCSO.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c36737237e40a7e5c06683ec4cdbf04788aab1ab8feeb6d02fb50070a5bc634
+size 12782
diff --git a/resources/[EGRP-Peds]/BCSO/stream/BCSO.ymt b/resources/[EGRP-Peds]/BCSO/stream/BCSO.ymt
new file mode 100644
index 000000000..5900255b0
Binary files /dev/null and b/resources/[EGRP-Peds]/BCSO/stream/BCSO.ymt differ
diff --git a/resources/[EGRP-Peds]/BCSO/stream/BCSO.ytd b/resources/[EGRP-Peds]/BCSO/stream/BCSO.ytd
new file mode 100644
index 000000000..3c41acc70
--- /dev/null
+++ b/resources/[EGRP-Peds]/BCSO/stream/BCSO.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a9bf977815cd61c9ed7a078b79326d126ad790b90bd5cdf27b16d1c5eeb2226d
+size 5406906
diff --git a/resources/[EGRP-Peds]/BCSO/stream/BCSO_p.ydd b/resources/[EGRP-Peds]/BCSO/stream/BCSO_p.ydd
new file mode 100644
index 000000000..a3e67cd69
Binary files /dev/null and b/resources/[EGRP-Peds]/BCSO/stream/BCSO_p.ydd differ
diff --git a/resources/[EGRP-Peds]/BCSO/stream/BCSO_p.ytd b/resources/[EGRP-Peds]/BCSO/stream/BCSO_p.ytd
new file mode 100644
index 000000000..faf756258
--- /dev/null
+++ b/resources/[EGRP-Peds]/BCSO/stream/BCSO_p.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:deb67ac40e9d5ba137475b7ae9c32e9f32664bb84d2e64347753d2789dc08aaa
+size 103878
diff --git a/resources/[EGRP-Peds]/Batman/__resource.lua b/resources/[EGRP-Peds]/Batman/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/Batman/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/Batman/peds.meta b/resources/[EGRP-Peds]/Batman/peds.meta
new file mode 100644
index 000000000..41c21f275
--- /dev/null
+++ b/resources/[EGRP-Peds]/Batman/peds.meta
@@ -0,0 +1 @@
+
BatmanBVSmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.ydd b/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.ydd
new file mode 100644
index 000000000..4986c11d4
Binary files /dev/null and b/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.ydd differ
diff --git a/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.yft b/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.ymt b/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.ymt differ
diff --git a/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.ytd b/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.ytd
new file mode 100644
index 000000000..5e60e0244
--- /dev/null
+++ b/resources/[EGRP-Peds]/Batman/stream/BatmanBVS.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:33a4e2c859c65d1196c159f9513438f0c2d077d425a65d664c8d8879d06c90b9
+size 1721114
diff --git a/resources/[EGRP-Peds]/BlueStaff/__resource.lua b/resources/[EGRP-Peds]/BlueStaff/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/BlueStaff/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/BlueStaff/peds.meta b/resources/[EGRP-Peds]/BlueStaff/peds.meta
new file mode 100644
index 000000000..8278de468
--- /dev/null
+++ b/resources/[EGRP-Peds]/BlueStaff/peds.meta
@@ -0,0 +1 @@
+
csb_mweathermove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.ydd b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.ydd
new file mode 100644
index 000000000..78f5d1fb4
Binary files /dev/null and b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.ydd differ
diff --git a/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.yft b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.yft
new file mode 100644
index 000000000..5179368ce
--- /dev/null
+++ b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:07cd49a21de0f73eed3963a111eb1a638c3037f65af1f6ea710cbc5286e78389
+size 15001
diff --git a/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.ymt b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.ymt
new file mode 100644
index 000000000..5725fc35b
Binary files /dev/null and b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.ymt differ
diff --git a/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.ytd b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.ytd
new file mode 100644
index 000000000..6cdb54e99
--- /dev/null
+++ b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:042b7f57332d02b861566953f00b189e1db85aecb1d785db273bcd35c690dba2
+size 1623826
diff --git a/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather_p.ydd b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather_p.ydd
new file mode 100644
index 000000000..46f0b86c8
Binary files /dev/null and b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather_p.ydd differ
diff --git a/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather_p.ytd b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather_p.ytd
new file mode 100644
index 000000000..2f624076c
--- /dev/null
+++ b/resources/[EGRP-Peds]/BlueStaff/stream/csb_mweather_p.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:40b043f5415c69da6160410674fdfa94d6a054210a25911f8b4afb79874a927f
+size 57539
diff --git a/resources/[EGRP-Peds]/BritishArmed/__resource.lua b/resources/[EGRP-Peds]/BritishArmed/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/BritishArmed/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/BritishArmed/peds.meta b/resources/[EGRP-Peds]/BritishArmed/peds.meta
new file mode 100644
index 000000000..654fd56d3
--- /dev/null
+++ b/resources/[EGRP-Peds]/BritishArmed/peds.meta
@@ -0,0 +1 @@
+
BritishArmedmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.ydd b/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.ydd
new file mode 100644
index 000000000..32938159e
Binary files /dev/null and b/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.ydd differ
diff --git a/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.yft b/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.yft
new file mode 100644
index 000000000..20a017ce3
--- /dev/null
+++ b/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ca9f77e0b335bc0b765ed4a5fe669c8266e5a5a2c48fdc65646bcad9734903ac
+size 12785
diff --git a/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.ymt b/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.ymt
new file mode 100644
index 000000000..abc92523f
Binary files /dev/null and b/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.ymt differ
diff --git a/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.ytd b/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.ytd
new file mode 100644
index 000000000..435986873
--- /dev/null
+++ b/resources/[EGRP-Peds]/BritishArmed/stream/BritishArmed.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3963a4a927637885d3f4ae53f07627cbc69a533535ced7d241f3d55e1814571d
+size 16363691
diff --git a/resources/[EGRP-Peds]/BumbleBee/__resource.lua b/resources/[EGRP-Peds]/BumbleBee/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/BumbleBee/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/BumbleBee/peds.meta b/resources/[EGRP-Peds]/BumbleBee/peds.meta
new file mode 100644
index 000000000..ee2f58632
--- /dev/null
+++ b/resources/[EGRP-Peds]/BumbleBee/peds.meta
@@ -0,0 +1 @@
+
BumbleBeemove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALBumbleBeeMinimove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.ydd b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.ydd
new file mode 100644
index 000000000..e491c64ab
Binary files /dev/null and b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.ydd differ
diff --git a/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.yft b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.yft
new file mode 100644
index 000000000..f162e2a1a
--- /dev/null
+++ b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:218e4fe515a9fd8c7cf455f46e2cf88c2fe9d8c36595e78fda54e155f57357fa
+size 14045
diff --git a/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.ymt b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.ymt differ
diff --git a/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.ytd b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.ytd
new file mode 100644
index 000000000..51ca2aaeb
--- /dev/null
+++ b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBee.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0e982c3ae444e973d282acf1254aedc1a851f0566e09e07e28e03760d208b373
+size 4759351
diff --git a/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.ydd b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.ydd
new file mode 100644
index 000000000..d6b20f1d3
Binary files /dev/null and b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.ydd differ
diff --git a/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.yft b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.yft
new file mode 100644
index 000000000..96ea54b5d
--- /dev/null
+++ b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:29a6997bae2f5b7cace812bf9b2e752110d65640cd9b44673f3c2c435c4293de
+size 13310
diff --git a/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.ymt b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.ymt differ
diff --git a/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.ytd b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.ytd
new file mode 100644
index 000000000..51ca2aaeb
--- /dev/null
+++ b/resources/[EGRP-Peds]/BumbleBee/stream/BumbleBeeMini.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0e982c3ae444e973d282acf1254aedc1a851f0566e09e07e28e03760d208b373
+size 4759351
diff --git a/resources/[EGRP-Peds]/CasualMai/__resource.lua b/resources/[EGRP-Peds]/CasualMai/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/CasualMai/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/CasualMai/peds.meta b/resources/[EGRP-Peds]/CasualMai/peds.meta
new file mode 100644
index 000000000..c8d0b4ef9
--- /dev/null
+++ b/resources/[EGRP-Peds]/CasualMai/peds.meta
@@ -0,0 +1 @@
+
CasualMaimove_m@genericexpr_set_ambient_maleCIVFEMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.ydd b/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.ydd
new file mode 100644
index 000000000..e5a935f8e
Binary files /dev/null and b/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.ydd differ
diff --git a/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.yft b/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.yft
new file mode 100644
index 000000000..18b31dd43
--- /dev/null
+++ b/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e7cbb0591f9fdc8219ef4a18b62737674af345728c9f1dfa3218b338f5387189
+size 14588
diff --git a/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.ymt b/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.ymt
new file mode 100644
index 000000000..06b93fec0
Binary files /dev/null and b/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.ymt differ
diff --git a/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.ytd b/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.ytd
new file mode 100644
index 000000000..22cf18734
--- /dev/null
+++ b/resources/[EGRP-Peds]/CasualMai/stream/CasualMai.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ed5c96a1978e6e81befdd526fd17200898acdda4d9e962000fb652e6af3df69c
+size 15683614
diff --git a/resources/[EGRP-Peds]/CyberpunkGirls/__resource.lua b/resources/[EGRP-Peds]/CyberpunkGirls/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/CyberpunkGirls/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/CyberpunkGirls/peds.meta b/resources/[EGRP-Peds]/CyberpunkGirls/peds.meta
new file mode 100644
index 000000000..984cead45
--- /dev/null
+++ b/resources/[EGRP-Peds]/CyberpunkGirls/peds.meta
@@ -0,0 +1 @@
+
Cyberpunkmove_m@genericexpr_set_ambient_maleCIVFEMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALCyberpunk2move_m@genericexpr_set_ambient_maleCIVFEMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.ydd b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.ydd
new file mode 100644
index 000000000..bdb1dbe51
Binary files /dev/null and b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.ydd differ
diff --git a/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.yft b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.yft
new file mode 100644
index 000000000..059d7f2ac
--- /dev/null
+++ b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cc58bdffcd890604eceaa7cb168cc2e54ea7acf5817bf340da77f045b03ecb56
+size 15154
diff --git a/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.ymt b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.ymt
new file mode 100644
index 000000000..5244ec231
Binary files /dev/null and b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.ymt differ
diff --git a/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.ytd b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.ytd
new file mode 100644
index 000000000..b1eb9e1ec
--- /dev/null
+++ b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4152ec9e2af9f3786090a7ecad58cec56b1f42d82af23388541018cc2d964f3d
+size 8109657
diff --git a/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.ydd b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.ydd
new file mode 100644
index 000000000..384b4d088
Binary files /dev/null and b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.ydd differ
diff --git a/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.yft b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.yft
new file mode 100644
index 000000000..5b854fc02
--- /dev/null
+++ b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a654604a61e0220ec49ce16f1532ca606ac27bded3067a37f46b355b9c93e08a
+size 16005
diff --git a/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.ymt b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.ymt
new file mode 100644
index 000000000..5244ec231
Binary files /dev/null and b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.ymt differ
diff --git a/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.ytd b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.ytd
new file mode 100644
index 000000000..3ed78246f
--- /dev/null
+++ b/resources/[EGRP-Peds]/CyberpunkGirls/stream/Cyberpunk2.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1df77edaf3eef2e20773a5501519ce94f6a51a487bdc318252a4f97ba56903cc
+size 7086846
diff --git a/resources/[EGRP-Peds]/DarthVader/__resource.lua b/resources/[EGRP-Peds]/DarthVader/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/DarthVader/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/DarthVader/peds.meta b/resources/[EGRP-Peds]/DarthVader/peds.meta
new file mode 100644
index 000000000..59aca7614
--- /dev/null
+++ b/resources/[EGRP-Peds]/DarthVader/peds.meta
@@ -0,0 +1 @@
+
DarthVadermove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.ydd b/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.ydd
new file mode 100644
index 000000000..bedeb3116
Binary files /dev/null and b/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.ydd differ
diff --git a/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.yft b/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.ymt b/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.ymt differ
diff --git a/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.ytd b/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.ytd
new file mode 100644
index 000000000..50ba14ce6
--- /dev/null
+++ b/resources/[EGRP-Peds]/DarthVader/stream/DarthVader.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ca220a75d390d077e7d708bb57e7958d26c4ddab235383d83ffed6155b61e189
+size 1674973
diff --git a/resources/[EGRP-Peds]/Deadpool/__resource.lua b/resources/[EGRP-Peds]/Deadpool/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/Deadpool/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/Deadpool/peds.meta b/resources/[EGRP-Peds]/Deadpool/peds.meta
new file mode 100644
index 000000000..5657bf4fd
--- /dev/null
+++ b/resources/[EGRP-Peds]/Deadpool/peds.meta
@@ -0,0 +1 @@
+
Deadpoolmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.ydd b/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.ydd
new file mode 100644
index 000000000..08f3040f9
Binary files /dev/null and b/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.ydd differ
diff --git a/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.yft b/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.ymt b/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.ymt differ
diff --git a/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.ytd b/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.ytd
new file mode 100644
index 000000000..06b4f7e84
--- /dev/null
+++ b/resources/[EGRP-Peds]/Deadpool/stream/Deadpool.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:18c36d70825fd1722fee3b1acc1d50d3b080fb41a0f30b910a1ebacf39e0cf98
+size 2242831
diff --git a/resources/[EGRP-Peds]/FBI-csgo/__resource.lua b/resources/[EGRP-Peds]/FBI-csgo/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/FBI-csgo/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/FBI-csgo/peds.meta b/resources/[EGRP-Peds]/FBI-csgo/peds.meta
new file mode 100644
index 000000000..e1a93efd8
--- /dev/null
+++ b/resources/[EGRP-Peds]/FBI-csgo/peds.meta
@@ -0,0 +1 @@
+
csgomove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALcsgo2move_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALcsgo3move_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALcsgo4move_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.ydd b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.ydd
new file mode 100644
index 000000000..52c0d50e8
Binary files /dev/null and b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.ydd differ
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.yft b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.ymt b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.ymt differ
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.ytd b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.ytd
new file mode 100644
index 000000000..b8194888b
--- /dev/null
+++ b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2f0df22e02c7a3a120dc95b65fb74ebffb04974a04a0f9bcd8109e38d476f810
+size 2473821
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.ydd b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.ydd
new file mode 100644
index 000000000..0e20d73d7
Binary files /dev/null and b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.ydd differ
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.yft b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.ymt b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.ymt differ
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.ytd b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.ytd
new file mode 100644
index 000000000..7e3e16fa3
--- /dev/null
+++ b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo2.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:745e1e40e4d8a3be2881dd85edde6d62f0bc0b0a2eb5771c667ecc2d47913cec
+size 2407856
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.ydd b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.ydd
new file mode 100644
index 000000000..98da231cf
Binary files /dev/null and b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.ydd differ
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.yft b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.ymt b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.ymt differ
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.ytd b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.ytd
new file mode 100644
index 000000000..50127c2af
--- /dev/null
+++ b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo3.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a64bb2ea02fa9e0fb18101962c85d6a2b242b19c2124c2b36f568da37ec89d03
+size 2327285
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.ydd b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.ydd
new file mode 100644
index 000000000..8b2b25d66
Binary files /dev/null and b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.ydd differ
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.yft b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.ymt b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.ymt differ
diff --git a/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.ytd b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.ytd
new file mode 100644
index 000000000..872cbcfa7
--- /dev/null
+++ b/resources/[EGRP-Peds]/FBI-csgo/stream/csgo4.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2585c921453ae902215ec13cc31b2fafe33dda81bd99344d00348b9fd4772662
+size 2499878
diff --git a/resources/[EGRP-Peds]/Hulk/__resource.lua b/resources/[EGRP-Peds]/Hulk/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/Hulk/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/Hulk/peds.meta b/resources/[EGRP-Peds]/Hulk/peds.meta
new file mode 100644
index 000000000..2bcef41fd
--- /dev/null
+++ b/resources/[EGRP-Peds]/Hulk/peds.meta
@@ -0,0 +1 @@
+
HulkAvengersmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALHulkUltronmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.ydd b/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.ydd
new file mode 100644
index 000000000..ea167d0ad
Binary files /dev/null and b/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.ydd differ
diff --git a/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.yft b/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.yft
new file mode 100644
index 000000000..bea3b551d
--- /dev/null
+++ b/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0d6beeb2060ae36797a4d1f5ee3f95d919a01d53a085312d437659c30c37dd45
+size 13297
diff --git a/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.ymt b/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.ymt differ
diff --git a/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.ytd b/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.ytd
new file mode 100644
index 000000000..0b1dd9ff9
--- /dev/null
+++ b/resources/[EGRP-Peds]/Hulk/stream/HulkAvengers.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c58616666af7256c58cd2a35673ff1bceff7371890c8ee2aefb3ffc3618d4e5e
+size 299937
diff --git a/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.ydd b/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.ydd
new file mode 100644
index 000000000..1118be764
Binary files /dev/null and b/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.ydd differ
diff --git a/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.yft b/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.yft
new file mode 100644
index 000000000..bea3b551d
--- /dev/null
+++ b/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0d6beeb2060ae36797a4d1f5ee3f95d919a01d53a085312d437659c30c37dd45
+size 13297
diff --git a/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.ymt b/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.ymt differ
diff --git a/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.ytd b/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.ytd
new file mode 100644
index 000000000..355544933
--- /dev/null
+++ b/resources/[EGRP-Peds]/Hulk/stream/HulkUltron.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8af352af0ef9e7befe45b05099f460493279bf4822dc2b51dd4cb3d8fc9c475e
+size 1478389
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.ydd b/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.ydd
new file mode 100644
index 000000000..4a98215ac
Binary files /dev/null and b/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.ydd differ
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.yft b/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.yft
new file mode 100644
index 000000000..012765d62
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa26d899eeb0977e53df02e132433a6a8ee74fd03374bd00043570e8f8fe4843
+size 12692
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.ymt b/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.ymt
new file mode 100644
index 000000000..fe6a87d79
Binary files /dev/null and b/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.ymt differ
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.ytd b/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.ytd
new file mode 100644
index 000000000..59935df05
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/Stream/IronManEG.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:78a9992f3618e0c43546194991621996b7732028fda290cba1c4d59904174bdf
+size 6497414
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.ydd b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.ydd
new file mode 100644
index 000000000..81b7e7d2f
Binary files /dev/null and b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.ydd differ
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.yft b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.ymt b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.ymt differ
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.ytd b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.ytd
new file mode 100644
index 000000000..5f343bc38
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK43.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6db0e527ab9291f42bbded2d404272bbdae0e8b433fdc73409cd5369d33c13b1
+size 1296777
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.ydd b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.ydd
new file mode 100644
index 000000000..4bf29863e
Binary files /dev/null and b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.ydd differ
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.yft b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.yft
new file mode 100644
index 000000000..012765d62
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa26d899eeb0977e53df02e132433a6a8ee74fd03374bd00043570e8f8fe4843
+size 12692
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.ymt b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.ymt
new file mode 100644
index 000000000..fe6a87d79
Binary files /dev/null and b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.ymt differ
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.ytd b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.ytd
new file mode 100644
index 000000000..f459cbc25
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c88fc1770a80afaf07d562983879478814bcc484fe18cd07500f39e9990a5c28
+size 6062658
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.ydd b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.ydd
new file mode 100644
index 000000000..283e13a7e
Binary files /dev/null and b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.ydd differ
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.yft b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.ymt b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.ymt differ
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.ytd b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.ytd
new file mode 100644
index 000000000..28b364f11
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/Stream/IronManMK85z.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2dd2040caea3969dc94e6d4af86d2f1e7af260d189db1cb458f6f76079b879d2
+size 5471034
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.ydd b/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.ydd
new file mode 100644
index 000000000..50ced8ce5
Binary files /dev/null and b/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.ydd differ
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.yft b/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.yft
new file mode 100644
index 000000000..012765d62
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa26d899eeb0977e53df02e132433a6a8ee74fd03374bd00043570e8f8fe4843
+size 12692
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.ymt b/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.ymt
new file mode 100644
index 000000000..fe6a87d79
Binary files /dev/null and b/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.ymt differ
diff --git a/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.ytd b/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.ytd
new file mode 100644
index 000000000..6bf0d24e5
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/Stream/IronManTeamSuit.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:96d9de6862a5a1fe48ba9b9d41588856056f79e5014bb2628aaa03e9c8b249b1
+size 5027192
diff --git a/resources/[EGRP-Peds]/IronMan/__resource.lua b/resources/[EGRP-Peds]/IronMan/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/IronMan/peds.meta b/resources/[EGRP-Peds]/IronMan/peds.meta
new file mode 100644
index 000000000..1e60d5c39
--- /dev/null
+++ b/resources/[EGRP-Peds]/IronMan/peds.meta
@@ -0,0 +1 @@
+
IronManMK43move_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALIronManMK85move_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALIronManMK85zmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALIronManEGmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALIronManTeamSuitmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/JohnWick/__resource.lua b/resources/[EGRP-Peds]/JohnWick/__resource.lua
new file mode 100644
index 000000000..3f986aa70
--- /dev/null
+++ b/resources/[EGRP-Peds]/JohnWick/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+ 'peds.meta'
+}
+
+data_file "PED_METADATA_FILE" "peds.meta"
diff --git a/resources/[EGRP-Peds]/JohnWick/peds.meta b/resources/[EGRP-Peds]/JohnWick/peds.meta
new file mode 100644
index 000000000..f39e34ebb
--- /dev/null
+++ b/resources/[EGRP-Peds]/JohnWick/peds.meta
@@ -0,0 +1,43 @@
+
+
+
+
+ JohnWick
+ move_m@generic
+ expr_set_ambient_male
+ CIVMALE
+ move_m@business@c
+ move_ped_strafing
+ move_ped_to_strafe
+ move_strafe_injured
+ dam_ko
+ dam_ad
+ ANIM_GROUP_GESTURE_M_GENERIC
+ facial_clipset_group_gen_male
+ ANIM_GROUP_VISEMES_M_LO
+ Male
+ Male_prone
+ NMBS_SLOW_GETUPS
+ ambientPed_upperWrinkles
+ DEFAULT
+ STANDARD_PED
+ STANDARD_PED
+ STANDARD_MALE
+ CIVMALE
+ STANDARD_PED
+ DEFAULT_PERCEPTION
+ BS_AI
+ WEAPON_UNARMED
+ SERVICEMALES
+ DEFAULT
+ VFXPEDINFO_HUMAN_GENERIC
+ FLEE
+ SAT_NONE
+ TB_WARM
+ SLOD_HUMAN
+ SCENARIO_POP_STREAMING_NORMAL
+ DSP_NORMAL
+
+
+
+
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.ydd b/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.ydd
new file mode 100644
index 000000000..c7ee23f80
Binary files /dev/null and b/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.ydd differ
diff --git a/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.yft b/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.yft
new file mode 100644
index 000000000..28d828ec7
--- /dev/null
+++ b/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:710e5f474f9e63b4f244e58c60e855c5198364b3388e7d21a5d78972d2a431e3
+size 12758
diff --git a/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.ymt b/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.ymt
new file mode 100644
index 000000000..962df7855
Binary files /dev/null and b/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.ymt differ
diff --git a/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.ytd b/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.ytd
new file mode 100644
index 000000000..d6674612d
--- /dev/null
+++ b/resources/[EGRP-Peds]/JohnWick/stream/JohnWick.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c78f9faf246862865417f2b0a711a5113c8e78093b11fa0c81d30954f429c37e
+size 13927158
diff --git a/resources/[EGRP-Peds]/Joker/__resource.lua b/resources/[EGRP-Peds]/Joker/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/Joker/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/Joker/peds.meta b/resources/[EGRP-Peds]/Joker/peds.meta
new file mode 100644
index 000000000..348daa382
--- /dev/null
+++ b/resources/[EGRP-Peds]/Joker/peds.meta
@@ -0,0 +1 @@
+
Jokermove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALJokerSickmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/Joker/stream/Joker.ydd b/resources/[EGRP-Peds]/Joker/stream/Joker.ydd
new file mode 100644
index 000000000..bcab3c323
Binary files /dev/null and b/resources/[EGRP-Peds]/Joker/stream/Joker.ydd differ
diff --git a/resources/[EGRP-Peds]/Joker/stream/Joker.yft b/resources/[EGRP-Peds]/Joker/stream/Joker.yft
new file mode 100644
index 000000000..012765d62
--- /dev/null
+++ b/resources/[EGRP-Peds]/Joker/stream/Joker.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa26d899eeb0977e53df02e132433a6a8ee74fd03374bd00043570e8f8fe4843
+size 12692
diff --git a/resources/[EGRP-Peds]/Joker/stream/Joker.ymt b/resources/[EGRP-Peds]/Joker/stream/Joker.ymt
new file mode 100644
index 000000000..fe6a87d79
Binary files /dev/null and b/resources/[EGRP-Peds]/Joker/stream/Joker.ymt differ
diff --git a/resources/[EGRP-Peds]/Joker/stream/Joker.ytd b/resources/[EGRP-Peds]/Joker/stream/Joker.ytd
new file mode 100644
index 000000000..c19c6dbc7
--- /dev/null
+++ b/resources/[EGRP-Peds]/Joker/stream/Joker.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0be5a176f3cd43a49ee261c7dbbfabc6611090383318432a1a13d8420a9f828d
+size 2125704
diff --git a/resources/[EGRP-Peds]/Joker/stream/JokerSick.ydd b/resources/[EGRP-Peds]/Joker/stream/JokerSick.ydd
new file mode 100644
index 000000000..bcab3c323
Binary files /dev/null and b/resources/[EGRP-Peds]/Joker/stream/JokerSick.ydd differ
diff --git a/resources/[EGRP-Peds]/Joker/stream/JokerSick.yft b/resources/[EGRP-Peds]/Joker/stream/JokerSick.yft
new file mode 100644
index 000000000..012765d62
--- /dev/null
+++ b/resources/[EGRP-Peds]/Joker/stream/JokerSick.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa26d899eeb0977e53df02e132433a6a8ee74fd03374bd00043570e8f8fe4843
+size 12692
diff --git a/resources/[EGRP-Peds]/Joker/stream/JokerSick.ymt b/resources/[EGRP-Peds]/Joker/stream/JokerSick.ymt
new file mode 100644
index 000000000..fe6a87d79
Binary files /dev/null and b/resources/[EGRP-Peds]/Joker/stream/JokerSick.ymt differ
diff --git a/resources/[EGRP-Peds]/Joker/stream/JokerSick.ytd b/resources/[EGRP-Peds]/Joker/stream/JokerSick.ytd
new file mode 100644
index 000000000..80a3f2a40
--- /dev/null
+++ b/resources/[EGRP-Peds]/Joker/stream/JokerSick.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dfbb3f66400c64290148ba0ad68ef11252061566d4c46ca51edd9b640448b70c
+size 2140378
diff --git a/resources/[EGRP-Peds]/KyloRen/__resource.lua b/resources/[EGRP-Peds]/KyloRen/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/KyloRen/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/KyloRen/peds.meta b/resources/[EGRP-Peds]/KyloRen/peds.meta
new file mode 100644
index 000000000..8f257e457
--- /dev/null
+++ b/resources/[EGRP-Peds]/KyloRen/peds.meta
@@ -0,0 +1 @@
+
KyloRenmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.ydd b/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.ydd
new file mode 100644
index 000000000..09dfad244
Binary files /dev/null and b/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.ydd differ
diff --git a/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.yft b/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.ymt b/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.ymt differ
diff --git a/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.ytd b/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.ytd
new file mode 100644
index 000000000..8dc3e638c
--- /dev/null
+++ b/resources/[EGRP-Peds]/KyloRen/stream/KyloRen.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:50739b79ef28aa309bf7504da3ece3c8c7db13b2bf7262204d40ad6f7db01079
+size 2252054
diff --git a/resources/[EGRP-Peds]/LsfdBattalion/__resource.lua b/resources/[EGRP-Peds]/LsfdBattalion/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/LsfdBattalion/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/LsfdBattalion/peds.meta b/resources/[EGRP-Peds]/LsfdBattalion/peds.meta
new file mode 100644
index 000000000..c259481fd
--- /dev/null
+++ b/resources/[EGRP-Peds]/LsfdBattalion/peds.meta
@@ -0,0 +1 @@
+
s_m_m_fireman_02move_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.ydd b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.ydd
new file mode 100644
index 000000000..ed79e1cb0
Binary files /dev/null and b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.ydd differ
diff --git a/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.yft b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.yft
new file mode 100644
index 000000000..b89fbdf89
--- /dev/null
+++ b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1d80d24ed1dc9cea4d0f1d8c09722dd1f7360ce08d9d45eff057d699584d3196
+size 12811
diff --git a/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.ymt b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.ymt
new file mode 100644
index 000000000..90f14538c
Binary files /dev/null and b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.ymt differ
diff --git a/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.ytd b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.ytd
new file mode 100644
index 000000000..795e64845
--- /dev/null
+++ b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:11a12febfb658b0968d24011f87b779090180bcdf7272a5ccbbd75ed1017a63e
+size 2983940
diff --git a/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02_p.ydd b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02_p.ydd
new file mode 100644
index 000000000..d706d35a9
Binary files /dev/null and b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02_p.ydd differ
diff --git a/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02_p.ytd b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02_p.ytd
new file mode 100644
index 000000000..6d4e42f7c
--- /dev/null
+++ b/resources/[EGRP-Peds]/LsfdBattalion/stream/s_m_m_fireman_02_p.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a9618203e201750a9548c8700989c6746985225c1dfb3572e7c5806477a10ddb
+size 815074
diff --git a/resources/[EGRP-Peds]/LspdFemale/__resource.lua b/resources/[EGRP-Peds]/LspdFemale/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/LspdFemale/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/LspdFemale/peds.meta b/resources/[EGRP-Peds]/LspdFemale/peds.meta
new file mode 100644
index 000000000..11e7d8ceb
--- /dev/null
+++ b/resources/[EGRP-Peds]/LspdFemale/peds.meta
@@ -0,0 +1 @@
+
s_f_y_cop_01move_f@genericexpr_set_ambient_femaleCIVFEMALEmove_f@genericmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_F_GENERICfacial_clipset_group_gen_femaleANIM_GROUP_VISEMES_F_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_FEMALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01.ydd b/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01.ydd
new file mode 100644
index 000000000..5f0dfe43b
Binary files /dev/null and b/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01.ydd differ
diff --git a/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01.ymt b/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01.ymt
new file mode 100644
index 000000000..1dd1aeced
Binary files /dev/null and b/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01.ymt differ
diff --git a/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01.ytd b/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01.ytd
new file mode 100644
index 000000000..c5ac9f5cd
--- /dev/null
+++ b/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af8686329d83972ffd16b38fd0df6d78a7289d15ec09a9575fd0b4ae502c4bab
+size 2933365
diff --git a/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01_p.ytd b/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01_p.ytd
new file mode 100644
index 000000000..ffc2434fd
--- /dev/null
+++ b/resources/[EGRP-Peds]/LspdFemale/stream/s_f_y_cop_01_p.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:033b1bae0a4dd920c50ac425c424cc3b938346bbd169ac1d2fc6ef547d4b1713
+size 46040
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.ydd b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.ydd
new file mode 100644
index 000000000..fdb159a97
Binary files /dev/null and b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.ydd differ
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.yft b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.yft
new file mode 100644
index 000000000..605d45402
--- /dev/null
+++ b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9320168eb9ea5e47e23386fb42b9e474557848f311cc80ff738f4902ad7adb9d
+size 21422
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.ymt b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.ymt
new file mode 100644
index 000000000..182a223ae
Binary files /dev/null and b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.ymt differ
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.ytd b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.ytd
new file mode 100644
index 000000000..ecda0e8b5
--- /dev/null
+++ b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomata.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2fcaa41005c13f5ebead7c3a3f569559cfd11dffda280c8bf3c3625c4cf3458e
+size 4130963
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.ydd b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.ydd
new file mode 100644
index 000000000..27e891827
Binary files /dev/null and b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.ydd differ
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.yft b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.yft
new file mode 100644
index 000000000..605d45402
--- /dev/null
+++ b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9320168eb9ea5e47e23386fb42b9e474557848f311cc80ff738f4902ad7adb9d
+size 21422
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.ymt b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.ymt
new file mode 100644
index 000000000..182a223ae
Binary files /dev/null and b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.ymt differ
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.ytd b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.ytd
new file mode 100644
index 000000000..517ecef23
--- /dev/null
+++ b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataAS.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6b259dce60a13a760f058e885617d30b852b2a7b364ed7282114c70852a87d13
+size 4406301
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.ydd b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.ydd
new file mode 100644
index 000000000..f2b96d84a
Binary files /dev/null and b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.ydd differ
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.yft b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.yft
new file mode 100644
index 000000000..605d45402
--- /dev/null
+++ b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9320168eb9ea5e47e23386fb42b9e474557848f311cc80ff738f4902ad7adb9d
+size 21422
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.ymt b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.ymt
new file mode 100644
index 000000000..182a223ae
Binary files /dev/null and b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.ymt differ
diff --git a/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.ytd b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.ytd
new file mode 100644
index 000000000..4d10b220a
--- /dev/null
+++ b/resources/[EGRP-Peds]/NierAutomata/Stream/NierAutomataBS.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ee84c4a64495affb87238c58dc59a8e5c7fc79bffc5590363e60209ce2aee581
+size 5437275
diff --git a/resources/[EGRP-Peds]/NierAutomata/__resource.lua b/resources/[EGRP-Peds]/NierAutomata/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/NierAutomata/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/NierAutomata/peds.meta b/resources/[EGRP-Peds]/NierAutomata/peds.meta
new file mode 100644
index 000000000..c5107dc1c
--- /dev/null
+++ b/resources/[EGRP-Peds]/NierAutomata/peds.meta
@@ -0,0 +1 @@
+
NierAutomatamove_f@genericexpr_set_ambient_femaleCIVFEMALEmove_f@genericmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_F_GENERICfacial_clipset_group_gen_femaleANIM_GROUP_VISEMES_F_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_FEMALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALNierAutomataBSmove_f@genericexpr_set_ambient_femaleCIVFEMALEmove_f@genericmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_F_GENERICfacial_clipset_group_gen_femaleANIM_GROUP_VISEMES_F_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_FEMALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALNierAutomataASmove_f@genericexpr_set_ambient_femaleCIVFEMALEmove_f@genericmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_F_GENERICfacial_clipset_group_gen_femaleANIM_GROUP_VISEMES_F_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_FEMALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/OptimusPrime/__resource.lua b/resources/[EGRP-Peds]/OptimusPrime/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/OptimusPrime/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/OptimusPrime/peds.meta b/resources/[EGRP-Peds]/OptimusPrime/peds.meta
new file mode 100644
index 000000000..862f4e8ee
--- /dev/null
+++ b/resources/[EGRP-Peds]/OptimusPrime/peds.meta
@@ -0,0 +1 @@
+
OptimusPrimemove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALOptimusPrimeMinimove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.ydd b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.ydd
new file mode 100644
index 000000000..0004db223
Binary files /dev/null and b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.ydd differ
diff --git a/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.yft b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.yft
new file mode 100644
index 000000000..2af62ac0e
--- /dev/null
+++ b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9dba597b32a4f0f83991a93f5341812060949b499537f91c8ba2d46f4f407d89
+size 13159
diff --git a/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.ymt b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.ymt
new file mode 100644
index 000000000..9ced729e6
Binary files /dev/null and b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.ymt differ
diff --git a/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.ytd b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.ytd
new file mode 100644
index 000000000..035ae7c6d
--- /dev/null
+++ b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrime.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:456098ddff8ae046366d85a18580071d04d57f76ff752767965798b7fe0ca04a
+size 4739748
diff --git a/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.ydd b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.ydd
new file mode 100644
index 000000000..fb9295414
Binary files /dev/null and b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.ydd differ
diff --git a/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.yft b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.yft
new file mode 100644
index 000000000..068cb20c6
--- /dev/null
+++ b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:850d13c1e7be5c0d7c8f6a6dc3bf32b202ad602963603099bfe962833875ed15
+size 13792
diff --git a/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.ymt b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.ymt
new file mode 100644
index 000000000..d16e393cd
Binary files /dev/null and b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.ymt differ
diff --git a/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.ytd b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.ytd
new file mode 100644
index 000000000..035ae7c6d
--- /dev/null
+++ b/resources/[EGRP-Peds]/OptimusPrime/stream/OptimusPrimeMini.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:456098ddff8ae046366d85a18580071d04d57f76ff752767965798b7fe0ca04a
+size 4739748
diff --git a/resources/[EGRP-Peds]/RareBane/__resource.lua b/resources/[EGRP-Peds]/RareBane/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/RareBane/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/RareBane/peds.meta b/resources/[EGRP-Peds]/RareBane/peds.meta
new file mode 100644
index 000000000..7f314eaef
--- /dev/null
+++ b/resources/[EGRP-Peds]/RareBane/peds.meta
@@ -0,0 +1 @@
+
RareBanemove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/RareBane/stream/RareBane.ydd b/resources/[EGRP-Peds]/RareBane/stream/RareBane.ydd
new file mode 100644
index 000000000..e2696e7ab
Binary files /dev/null and b/resources/[EGRP-Peds]/RareBane/stream/RareBane.ydd differ
diff --git a/resources/[EGRP-Peds]/RareBane/stream/RareBane.yft b/resources/[EGRP-Peds]/RareBane/stream/RareBane.yft
new file mode 100644
index 000000000..af1374159
--- /dev/null
+++ b/resources/[EGRP-Peds]/RareBane/stream/RareBane.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f7e536c434381dc60de38dc619dec3fb64bdfebd1b4a9a7745dc5e1fe3b95d36
+size 13468
diff --git a/resources/[EGRP-Peds]/RareBane/stream/RareBane.ymt b/resources/[EGRP-Peds]/RareBane/stream/RareBane.ymt
new file mode 100644
index 000000000..d343ea1eb
Binary files /dev/null and b/resources/[EGRP-Peds]/RareBane/stream/RareBane.ymt differ
diff --git a/resources/[EGRP-Peds]/RareBane/stream/RareBane.ytd b/resources/[EGRP-Peds]/RareBane/stream/RareBane.ytd
new file mode 100644
index 000000000..8a96954bc
--- /dev/null
+++ b/resources/[EGRP-Peds]/RareBane/stream/RareBane.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:568dd2b18414e4a04b8bc2e5aa29c0347fdb2764d5dee6352b24444f8f2e8c54
+size 8131608
diff --git a/resources/[EGRP-Peds]/RedAdmin/__resource.lua b/resources/[EGRP-Peds]/RedAdmin/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/RedAdmin/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/RedAdmin/peds.meta b/resources/[EGRP-Peds]/RedAdmin/peds.meta
new file mode 100644
index 000000000..69c20a748
--- /dev/null
+++ b/resources/[EGRP-Peds]/RedAdmin/peds.meta
@@ -0,0 +1 @@
+
s_m_m_chemsec_01move_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.ydd b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.ydd
new file mode 100644
index 000000000..2d6334630
Binary files /dev/null and b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.ydd differ
diff --git a/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.yft b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.yft
new file mode 100644
index 000000000..64de9669c
--- /dev/null
+++ b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:73e1207419cdeae93ab0d4bed433d9549a5f1b40a093f541368bfa2be99762ca
+size 12663
diff --git a/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.ymt b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.ymt
new file mode 100644
index 000000000..354bcb884
Binary files /dev/null and b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.ymt differ
diff --git a/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.ytd b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.ytd
new file mode 100644
index 000000000..177b1ca05
--- /dev/null
+++ b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f6def4f9c2a827c3edde933132a520a929f9815e20f5033b4d96e27ee11f1396
+size 2440107
diff --git a/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01_p.ydd b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01_p.ydd
new file mode 100644
index 000000000..c8d406d79
Binary files /dev/null and b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01_p.ydd differ
diff --git a/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01_p.ytd b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01_p.ytd
new file mode 100644
index 000000000..2102176b4
--- /dev/null
+++ b/resources/[EGRP-Peds]/RedAdmin/stream/s_m_m_chemsec_01_p.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5ee9107ced9e3ebe4c5ec999ca2a3daea13a063182bbeff446b797d897910f45
+size 108186
diff --git a/resources/[EGRP-Peds]/SSPolice/__resource.lua b/resources/[EGRP-Peds]/SSPolice/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/SSPolice/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/SSPolice/peds.meta b/resources/[EGRP-Peds]/SSPolice/peds.meta
new file mode 100644
index 000000000..49f3f8bba
--- /dev/null
+++ b/resources/[EGRP-Peds]/SSPolice/peds.meta
@@ -0,0 +1 @@
+
s_m_y_blackops_02move_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.ydd b/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.ydd
new file mode 100644
index 000000000..727d5a93b
Binary files /dev/null and b/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.ydd differ
diff --git a/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.yft b/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.yft
new file mode 100644
index 000000000..20a017ce3
--- /dev/null
+++ b/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ca9f77e0b335bc0b765ed4a5fe669c8266e5a5a2c48fdc65646bcad9734903ac
+size 12785
diff --git a/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.ymt b/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.ymt
new file mode 100644
index 000000000..c2a3bc30a
Binary files /dev/null and b/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.ymt differ
diff --git a/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.ytd b/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.ytd
new file mode 100644
index 000000000..f9c41cdb9
--- /dev/null
+++ b/resources/[EGRP-Peds]/SSPolice/stream/s_m_y_blackops_02.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:09b4936a1530b56ebd3e7559d4d8693e9b4181ad950a3eb543a17c67c691fa88
+size 13009070
diff --git a/resources/[EGRP-Peds]/SpiderMan/__resource.lua b/resources/[EGRP-Peds]/SpiderMan/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/SpiderMan/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/SpiderMan/peds.meta b/resources/[EGRP-Peds]/SpiderMan/peds.meta
new file mode 100644
index 000000000..de115e4a1
--- /dev/null
+++ b/resources/[EGRP-Peds]/SpiderMan/peds.meta
@@ -0,0 +1 @@
+
SpiderManmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.ydd b/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.ydd
new file mode 100644
index 000000000..17feba7e7
Binary files /dev/null and b/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.ydd differ
diff --git a/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.yft b/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.ymt b/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.ymt differ
diff --git a/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.ytd b/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.ytd
new file mode 100644
index 000000000..d585b2d2f
--- /dev/null
+++ b/resources/[EGRP-Peds]/SpiderMan/stream/SpiderMan.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5a0793eb98568cfd560559d31e5f07d71e9f2268f11daa5e230768ba4e8c4f76
+size 864065
diff --git a/resources/[EGRP-Peds]/Superman/__resource.lua b/resources/[EGRP-Peds]/Superman/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/Superman/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/Superman/peds.meta b/resources/[EGRP-Peds]/Superman/peds.meta
new file mode 100644
index 000000000..c860ae032
--- /dev/null
+++ b/resources/[EGRP-Peds]/Superman/peds.meta
@@ -0,0 +1 @@
+
spn52move_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/Superman/stream/spn52.ydd b/resources/[EGRP-Peds]/Superman/stream/spn52.ydd
new file mode 100644
index 000000000..9e1c3c44d
Binary files /dev/null and b/resources/[EGRP-Peds]/Superman/stream/spn52.ydd differ
diff --git a/resources/[EGRP-Peds]/Superman/stream/spn52.yft b/resources/[EGRP-Peds]/Superman/stream/spn52.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/Superman/stream/spn52.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/Superman/stream/spn52.ymt b/resources/[EGRP-Peds]/Superman/stream/spn52.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/Superman/stream/spn52.ymt differ
diff --git a/resources/[EGRP-Peds]/Superman/stream/spn52.ytd b/resources/[EGRP-Peds]/Superman/stream/spn52.ytd
new file mode 100644
index 000000000..113418a75
--- /dev/null
+++ b/resources/[EGRP-Peds]/Superman/stream/spn52.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7bcf64d345e83094bb84fa4ff4e5040287084b5ec90a3cd3708526a3a7bf9a98
+size 2060426
diff --git a/resources/[EGRP-Peds]/ThanosIW/__resource.lua b/resources/[EGRP-Peds]/ThanosIW/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/ThanosIW/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/ThanosIW/peds.meta b/resources/[EGRP-Peds]/ThanosIW/peds.meta
new file mode 100644
index 000000000..afd4de445
--- /dev/null
+++ b/resources/[EGRP-Peds]/ThanosIW/peds.meta
@@ -0,0 +1 @@
+
ThanosIWmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.ydd b/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.ydd
new file mode 100644
index 000000000..80554f027
Binary files /dev/null and b/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.ydd differ
diff --git a/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.yft b/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.yft
new file mode 100644
index 000000000..bea3b551d
--- /dev/null
+++ b/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0d6beeb2060ae36797a4d1f5ee3f95d919a01d53a085312d437659c30c37dd45
+size 13297
diff --git a/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.ymt b/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.ymt differ
diff --git a/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.ytd b/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.ytd
new file mode 100644
index 000000000..2b2eba749
--- /dev/null
+++ b/resources/[EGRP-Peds]/ThanosIW/stream/ThanosIW.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3832bcf35a414e0bc5aecb69f16032e6bba94a319f54e1a2e0e7d5e757865680
+size 3480030
diff --git a/resources/[EGRP-Peds]/ThanosIW/stream/suit_ThanosIW.ini b/resources/[EGRP-Peds]/ThanosIW/stream/suit_ThanosIW.ini
new file mode 100644
index 000000000..a92289cfc
--- /dev/null
+++ b/resources/[EGRP-Peds]/ThanosIW/stream/suit_ThanosIW.ini
@@ -0,0 +1,49 @@
+[general]
+name=Thanos (IW big)
+model=ThanosIW_big
+hotkey=None
+bDisableFirstPerson=False
+bSetDefaultComponentVariation=0
+movement_clipset=
+bHidePlayerChar=0
+aux=0.1
+bSetDefaultComponentVariationB=True
+[parts_1]
+model=
+boneID=0
+pos_offset_x=0
+pos_offset_y=0
+pos_offset_z=0
+rot_offset_x=0
+rot_offset_y=0
+rot_offset_z=0
+bHideInFirstPerson=0
+name=
+[compvar_1]
+component=
+variation=0
+textureIndex=0
+[thanosConfig]
+maxHealth=10000
+healthRegenCoef=1
+damageCauseCoef=1
+AI_maxHealth=10000
+AI_healthRegenCoef=1
+AI_damageCauseCoef=1
+handoffset=0,26;0,15;0,05
+handOffsetCoef=0,85
+victim_handAttachOffset=0.147;-0.015;-0.194
+[stone_offsets]
+stone_Mind=0,5977498;0,06775008;-0,002249546
+stone_Soul=0,6589994;-0,009000017;-0,1069997
+stone_Reality=0,7102495;0,0005000766;-0,04949963
+stone_Space=0,6760005;0,07225007;-0,08074955
+stone_Power=0,6449997;0,1575;-0,05699978
+stone_Time=0,4702497;0,2425;-0,1644997
+[stone_glowSizeCoef]
+stone_Mind=1
+stone_Soul=1
+stone_Reality=1
+stone_Space=1
+stone_Power=1
+stone_Time=1
diff --git a/resources/[EGRP-Peds]/Thor/__resource.lua b/resources/[EGRP-Peds]/Thor/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/Thor/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/Thor/peds.meta b/resources/[EGRP-Peds]/Thor/peds.meta
new file mode 100644
index 000000000..a9f5d38da
--- /dev/null
+++ b/resources/[EGRP-Peds]/Thor/peds.meta
@@ -0,0 +1 @@
+
ThorEGmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALThorIWmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMALThorTeamSuitmove_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorEG.ydd b/resources/[EGRP-Peds]/Thor/stream/ThorEG.ydd
new file mode 100644
index 000000000..861635aaa
Binary files /dev/null and b/resources/[EGRP-Peds]/Thor/stream/ThorEG.ydd differ
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorEG.yft b/resources/[EGRP-Peds]/Thor/stream/ThorEG.yft
new file mode 100644
index 000000000..012765d62
--- /dev/null
+++ b/resources/[EGRP-Peds]/Thor/stream/ThorEG.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa26d899eeb0977e53df02e132433a6a8ee74fd03374bd00043570e8f8fe4843
+size 12692
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorEG.yld b/resources/[EGRP-Peds]/Thor/stream/ThorEG.yld
new file mode 100644
index 000000000..7676de8ad
Binary files /dev/null and b/resources/[EGRP-Peds]/Thor/stream/ThorEG.yld differ
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorEG.ymt b/resources/[EGRP-Peds]/Thor/stream/ThorEG.ymt
new file mode 100644
index 000000000..fe6a87d79
Binary files /dev/null and b/resources/[EGRP-Peds]/Thor/stream/ThorEG.ymt differ
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorEG.ytd b/resources/[EGRP-Peds]/Thor/stream/ThorEG.ytd
new file mode 100644
index 000000000..9341316bb
--- /dev/null
+++ b/resources/[EGRP-Peds]/Thor/stream/ThorEG.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:469ad318bcee1ae9cf4e0c49f2b242d892ade9603801e3da8e33f8166ba1e5a1
+size 13128454
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorIW.ydd b/resources/[EGRP-Peds]/Thor/stream/ThorIW.ydd
new file mode 100644
index 000000000..613a69f2f
Binary files /dev/null and b/resources/[EGRP-Peds]/Thor/stream/ThorIW.ydd differ
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorIW.yft b/resources/[EGRP-Peds]/Thor/stream/ThorIW.yft
new file mode 100644
index 000000000..c7141da3e
--- /dev/null
+++ b/resources/[EGRP-Peds]/Thor/stream/ThorIW.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d41efd77ec376c992e01569a63417f7a3b3dc93346eaeadf56f830446882f88
+size 12731
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorIW.ymt b/resources/[EGRP-Peds]/Thor/stream/ThorIW.ymt
new file mode 100644
index 000000000..bb739cfe5
Binary files /dev/null and b/resources/[EGRP-Peds]/Thor/stream/ThorIW.ymt differ
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorIW.ytd b/resources/[EGRP-Peds]/Thor/stream/ThorIW.ytd
new file mode 100644
index 000000000..57b7340ac
--- /dev/null
+++ b/resources/[EGRP-Peds]/Thor/stream/ThorIW.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8ad5fdf5e05dee92d3cd2576174d5c31bd7e8dc5ba6612bdede822bb8cbe2259
+size 649118
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.ydd b/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.ydd
new file mode 100644
index 000000000..21a3522b8
Binary files /dev/null and b/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.ydd differ
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.yft b/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.yft
new file mode 100644
index 000000000..012765d62
--- /dev/null
+++ b/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa26d899eeb0977e53df02e132433a6a8ee74fd03374bd00043570e8f8fe4843
+size 12692
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.ymt b/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.ymt
new file mode 100644
index 000000000..fe6a87d79
Binary files /dev/null and b/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.ymt differ
diff --git a/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.ytd b/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.ytd
new file mode 100644
index 000000000..97d68f965
--- /dev/null
+++ b/resources/[EGRP-Peds]/Thor/stream/ThorTeamSuit.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b8826377c4ac5b6c5e53ecf7327d25a8f484a2aa79cbebd9b11ade6a68bd8077
+size 4274813
diff --git a/resources/[EGRP-Peds]/WonderWoman/__resource.lua b/resources/[EGRP-Peds]/WonderWoman/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/WonderWoman/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/WonderWoman/peds.meta b/resources/[EGRP-Peds]/WonderWoman/peds.meta
new file mode 100644
index 000000000..9c593ffec
--- /dev/null
+++ b/resources/[EGRP-Peds]/WonderWoman/peds.meta
@@ -0,0 +1 @@
+
Wonder Woman Moviemove_f@genericexpr_set_ambient_femaleCIVFEMALEmove_f@genericmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_F_GENERICfacial_clipset_group_gen_femaleANIM_GROUP_VISEMES_F_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_FEMALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.ydd b/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.ydd
new file mode 100644
index 000000000..1c6e089eb
Binary files /dev/null and b/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.ydd differ
diff --git a/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.yft b/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.yft
new file mode 100644
index 000000000..987c5bbb7
--- /dev/null
+++ b/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e1d3a154df156dcdd38dbbff6af10f59f3bb1f50ab3f7d89cb86f38abd561c54
+size 13133
diff --git a/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.ymt b/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.ymt
new file mode 100644
index 000000000..b6dbe17e6
Binary files /dev/null and b/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.ymt differ
diff --git a/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.ytd b/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.ytd
new file mode 100644
index 000000000..03a96e14a
--- /dev/null
+++ b/resources/[EGRP-Peds]/WonderWoman/stream/Wonder Woman Movie.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:438810d4554c654f0440052c54b66eb7a4dcd7b36050dfd3cd690ae0c3490bb0
+size 1316307
diff --git a/resources/[EGRP-Peds]/pd/__resource.lua b/resources/[EGRP-Peds]/pd/__resource.lua
new file mode 100644
index 000000000..ae28e4545
--- /dev/null
+++ b/resources/[EGRP-Peds]/pd/__resource.lua
@@ -0,0 +1,7 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+'peds.meta'
+}
+
+data_file 'PED_METADATA_FILE' 'peds.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Peds]/pd/peds.meta b/resources/[EGRP-Peds]/pd/peds.meta
new file mode 100644
index 000000000..24efa5a09
--- /dev/null
+++ b/resources/[EGRP-Peds]/pd/peds.meta
@@ -0,0 +1 @@
+
s_m_y_cop_01move_m@genericexpr_set_ambient_maleCIVMALEmove_m@business@cmove_ped_strafingmove_ped_to_strafemove_strafe_injureddam_kodam_adANIM_GROUP_GESTURE_M_GENERICfacial_clipset_group_gen_maleANIM_GROUP_VISEMES_M_LOMaleMale_proneNMBS_SLOW_GETUPSambientPed_upperWrinklesDEFAULTSTANDARD_PEDSTANDARD_PEDSTANDARD_MALECIVMALESTANDARD_PEDDEFAULT_PERCEPTIONBS_AIWEAPON_UNARMEDSERVICEMALESDEFAULTVFXPEDINFO_HUMAN_GENERICFLEESAT_NONETB_WARMSLOD_HUMANSCENARIO_POP_STREAMING_NORMALDSP_NORMAL
diff --git a/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.ydd b/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.ydd
new file mode 100644
index 000000000..0d2e8d879
Binary files /dev/null and b/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.ydd differ
diff --git a/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.yft b/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.yft
new file mode 100644
index 000000000..c638f79c2
--- /dev/null
+++ b/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.yft
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c36737237e40a7e5c06683ec4cdbf04788aab1ab8feeb6d02fb50070a5bc634
+size 12782
diff --git a/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.ymt b/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.ymt
new file mode 100644
index 000000000..5900255b0
Binary files /dev/null and b/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.ymt differ
diff --git a/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.ytd b/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.ytd
new file mode 100644
index 000000000..62e4d7694
--- /dev/null
+++ b/resources/[EGRP-Peds]/pd/stream/s_m_y_cop_01.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:52436c3380ebfb60a0a0707cc378219d098cfb03f866a4959bcc8e6c339337e0
+size 7106061
diff --git a/resources/[EGRP-Weapons]/P90/fxmanifest.lua b/resources/[EGRP-Weapons]/P90/fxmanifest.lua
new file mode 100644
index 000000000..e69de29bb
diff --git a/resources/[EGRP-Weapons]/P90/stream/w_at_ar_supp_02.ydr b/resources/[EGRP-Weapons]/P90/stream/w_at_ar_supp_02.ydr
new file mode 100644
index 000000000..90c59613d
--- /dev/null
+++ b/resources/[EGRP-Weapons]/P90/stream/w_at_ar_supp_02.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7236ef777caafc20c6a7f74173a5ab9d2bb27c1f11a04c2db0fd12790b48bb07
+size 45824
diff --git a/resources/[EGRP-Weapons]/P90/stream/w_at_ar_supp_02.ytd b/resources/[EGRP-Weapons]/P90/stream/w_at_ar_supp_02.ytd
new file mode 100644
index 000000000..2ee30e97f
--- /dev/null
+++ b/resources/[EGRP-Weapons]/P90/stream/w_at_ar_supp_02.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c53e8627a02e0eaec8dc348954354d9df637049e4bcc0ac1acc40172044857f
+size 1396458
diff --git a/resources/[EGRP-Weapons]/P90/stream/w_at_ar_supp_02_hi.ydr b/resources/[EGRP-Weapons]/P90/stream/w_at_ar_supp_02_hi.ydr
new file mode 100644
index 000000000..90c59613d
--- /dev/null
+++ b/resources/[EGRP-Weapons]/P90/stream/w_at_ar_supp_02_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7236ef777caafc20c6a7f74173a5ab9d2bb27c1f11a04c2db0fd12790b48bb07
+size 45824
diff --git a/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg.ydr b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg.ydr
new file mode 100644
index 000000000..db1164083
--- /dev/null
+++ b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:897e15df0e6f15fe23467fea4eea0762f5deb61b3c1d1848edb9dfa7bd241fe1
+size 696500
diff --git a/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg.ytd b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg.ytd
new file mode 100644
index 000000000..fd057e94d
--- /dev/null
+++ b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7fbfffecfe91072588ab60ac1cd5e0ed9b6b123ed31e121fef877a76231a95e8
+size 1149159
diff --git a/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_hi.ydr b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_hi.ydr
new file mode 100644
index 000000000..db1164083
--- /dev/null
+++ b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:897e15df0e6f15fe23467fea4eea0762f5deb61b3c1d1848edb9dfa7bd241fe1
+size 696500
diff --git a/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_mag1.ydr b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_mag1.ydr
new file mode 100644
index 000000000..6206b61af
--- /dev/null
+++ b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_mag1.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:000db84923a70862a1ccc9246dd6c5dd1ba0f83bed377df927ca85abad062e3f
+size 157508
diff --git a/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_mag1.ytd b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_mag1.ytd
new file mode 100644
index 000000000..1b52677e0
--- /dev/null
+++ b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_mag1.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bce288f4de3812211ea982ed2f84ce96cceb3feb13e8e2efbfbfb8512c71f7d6
+size 357823
diff --git a/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_mag1_hi.ydr b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_mag1_hi.ydr
new file mode 100644
index 000000000..6206b61af
--- /dev/null
+++ b/resources/[EGRP-Weapons]/P90/stream/w_sb_assaultsmg_mag1_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:000db84923a70862a1ccc9246dd6c5dd1ba0f83bed377df927ca85abad062e3f
+size 157508
diff --git a/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle+hi.ytd b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle+hi.ytd
new file mode 100644
index 000000000..bfc5c0f2d
--- /dev/null
+++ b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle+hi.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f6044ae58eca2bbbe426ad7ba49524036ac3bb6e6fc388f35f68b1abe9b1bedf
+size 1450647
diff --git a/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle.ydr b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle.ydr
new file mode 100644
index 000000000..a94eaa31f
--- /dev/null
+++ b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e734d4a50f9b297598e7b553b5d6d8df76d63575517d2c2c354d9861f5ddddcc
+size 91666
diff --git a/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle.ytd b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle.ytd
new file mode 100644
index 000000000..bfc5c0f2d
--- /dev/null
+++ b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f6044ae58eca2bbbe426ad7ba49524036ac3bb6e6fc388f35f68b1abe9b1bedf
+size 1450647
diff --git a/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle_hi.ydr b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle_hi.ydr
new file mode 100644
index 000000000..7d279d22f
--- /dev/null
+++ b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3d1fe5b9e5fe12c43f3305574f7b61424261147340d2e9600558429dfe3495b7
+size 91671
diff --git a/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle_mag1.ydr b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle_mag1.ydr
new file mode 100644
index 000000000..a7209f685
--- /dev/null
+++ b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle_mag1.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1d3208487a2afb6d11af079ab41f765805717eccf91a0bf58ed0c08b4820c308
+size 7224
diff --git a/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle_mag1.ytd b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle_mag1.ytd
new file mode 100644
index 000000000..bfc5c0f2d
--- /dev/null
+++ b/resources/[EGRP-Weapons]/ak-47/Stream/w_ar_assaultrifle_mag1.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f6044ae58eca2bbbe426ad7ba49524036ac3bb6e6fc388f35f68b1abe9b1bedf
+size 1450647
diff --git a/resources/[EGRP-Weapons]/ak-47/__resource.lua b/resources/[EGRP-Weapons]/ak-47/__resource.lua
new file mode 100644
index 000000000..dde67706a
--- /dev/null
+++ b/resources/[EGRP-Weapons]/ak-47/__resource.lua
@@ -0,0 +1,17 @@
+resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
+
+files {
+ 'contentunlocks.meta',
+ 'loadouts.meta',
+ 'weaponcomponents.meta',
+ 'weaponanimations.meta',
+ 'weaponarchetypes.meta',
+ 'weapons.meta'
+ }
+
+ data_file 'WEAPONINFO_FILE' 'weapons.meta'
+ data_file 'WEAPON_METADATA_FILE' 'weaponarchetypes.meta'
+ data_file 'WEAPON_ANIMATIONS_FILE' 'weaponanimations.meta'
+ data_file 'CONTENT_UNLOCKING_META_FILE' 'contentunlocks.meta'
+ data_file 'LOADOUTS_FILE' 'loadouts.meta'
+ data_file 'WEAPON_COMPONENTS' 'weaponcomponents.meta'
\ No newline at end of file
diff --git a/resources/[EGRP-Weapons]/glock17/__resource.lua b/resources/[EGRP-Weapons]/glock17/__resource.lua
new file mode 100644
index 000000000..e69de29bb
diff --git a/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol.ydr b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol.ydr
new file mode 100644
index 000000000..8eb4b991d
--- /dev/null
+++ b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:335421cddd643514675ad7eed1df7737e97c17cd0710bb5cdd989b803a3e57f2
+size 234669
diff --git a/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol.ytd b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol.ytd
new file mode 100644
index 000000000..4e642cd42
--- /dev/null
+++ b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b5a6b16b2cb6ed527c8c09397c849768f89e0de987c808f4cfc3986322673a97
+size 903380
diff --git a/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_hi.ydr b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_hi.ydr
new file mode 100644
index 000000000..001ef7320
--- /dev/null
+++ b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e6e0e1162a680c036b0f52a414010fca8e41f62b45ac7681167d158d581d728f
+size 344743
diff --git a/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag1.ydr b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag1.ydr
new file mode 100644
index 000000000..47922fa56
--- /dev/null
+++ b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag1.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eb3cccc5309b9a190696aa821cd1a4e7faf140c36cb975ce59edc295698aff31
+size 34863
diff --git a/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag1.ytd b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag1.ytd
new file mode 100644
index 000000000..853c29a15
--- /dev/null
+++ b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag1.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:975322e2df11b457689ab478a89b2d05e5f7429831cab0b424879f853ec0fd55
+size 230303
diff --git a/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag2.ydr b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag2.ydr
new file mode 100644
index 000000000..edf07ec9b
--- /dev/null
+++ b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag2.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4dca46d000d176746e60de821d76c6e66126d313637d6208f0ab7170d662602e
+size 35819
diff --git a/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag2.ytd b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag2.ytd
new file mode 100644
index 000000000..853c29a15
--- /dev/null
+++ b/resources/[EGRP-Weapons]/glock17/stream/w_pi_combatpistol_mag2.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:975322e2df11b457689ab478a89b2d05e5f7429831cab0b424879f853ec0fd55
+size 230303
diff --git a/resources/[EGRP-Weapons]/m4a1/__resource.lua b/resources/[EGRP-Weapons]/m4a1/__resource.lua
new file mode 100644
index 000000000..e69de29bb
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle.ydr b/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle.ydr
new file mode 100644
index 000000000..dd257646b
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7ab63303546a4260772101b5238958e3e975f0fe33efb0a8ae8247e9c8527498
+size 222045
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle.ytd b/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle.ytd
new file mode 100644
index 000000000..862a38157
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:864024882b438d72840f3afd19e9692b401fa20e4d0a6c7402d1fdffe7958237
+size 3472327
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle_hi.ydr b/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle_hi.ydr
new file mode 100644
index 000000000..6eb6f9598
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:603cb95796c554826e2ef4b197eff5cc435b3012573a8bd00bf35f2e34666428
+size 223265
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle_mag1.ydr b/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle_mag1.ydr
new file mode 100644
index 000000000..049cf67a3
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle_mag1.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ced895c1eb8782d1c9215c98a32f202151a289cd3549c126915f77c7b277961d
+size 9476
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle_mag1.ytd b/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle_mag1.ytd
new file mode 100644
index 000000000..851129f22
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_ar_carbinerifle_mag1.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:11f781246bbfa2408511b74f87f2da58e0c6a0f79145584fb6c5aa79c9630f34
+size 472158
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_afgrip.ydr b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_afgrip.ydr
new file mode 100644
index 000000000..faea593de
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_afgrip.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4e7ce84f8d2e40d9af9ad83599e6549cf5908f0ab4f5ef1f91224e0b6ecaa3df
+size 157586
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_afgrip.ytd b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_afgrip.ytd
new file mode 100644
index 000000000..98e24a8c5
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_afgrip.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b249cc6ab11d5b8a0ea75b220866b9f1fd2cb4943a814c4a76709af7b9dc01b1
+size 2815158
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_afgrip_hi.ydr b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_afgrip_hi.ydr
new file mode 100644
index 000000000..e38975b14
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_afgrip_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:44ac639ce3f0189fe0f234974d1a965d5a42b10000f3d17cba79a4771cad2d00
+size 155773
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_supp.ydr b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_supp.ydr
new file mode 100644
index 000000000..a45a992b6
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_supp.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2c98da6ddf47256826b4d2f0217aa050c6dfb070dcd57d3036e3efd8fd52277e
+size 17219
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_supp.ytd b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_supp.ytd
new file mode 100644
index 000000000..17a554d39
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_supp.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7fc73a669c2b3f5f7c06598c63f69107c426a168620658d2fef261645ead81bb
+size 440531
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_supp_hi.ydr b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_supp_hi.ydr
new file mode 100644
index 000000000..a85fb2414
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_at_ar_supp_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:347f249a980f589e4ea05ab249aff10af133796c958ac841439dbfffa6d1c101
+size 14120
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_at_scope_medium.ydr b/resources/[EGRP-Weapons]/m4a1/stream/w_at_scope_medium.ydr
new file mode 100644
index 000000000..982e60572
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_at_scope_medium.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:18e6127e7f1949a08b5c1cf27319cdb546115006b86ee80d579a056b82755cd6
+size 233333
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_at_scope_medium.ytd b/resources/[EGRP-Weapons]/m4a1/stream/w_at_scope_medium.ytd
new file mode 100644
index 000000000..87a7329e4
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_at_scope_medium.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9337427dd092717803a011fbc6b5f5cc54f10a52fd35feec423e3d386c6a42bc
+size 843681
diff --git a/resources/[EGRP-Weapons]/m4a1/stream/w_at_scope_medium_hi.ydr b/resources/[EGRP-Weapons]/m4a1/stream/w_at_scope_medium_hi.ydr
new file mode 100644
index 000000000..af989e834
--- /dev/null
+++ b/resources/[EGRP-Weapons]/m4a1/stream/w_at_scope_medium_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:86487f052a4b053e4d7c882e99d657798ec80d007bdea5ea267832c2e0debdf6
+size 230334
diff --git a/resources/[EGRP-Weapons]/mp5/__resource.lua b/resources/[EGRP-Weapons]/mp5/__resource.lua
new file mode 100644
index 000000000..e69de29bb
diff --git a/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg.ydr b/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg.ydr
new file mode 100644
index 000000000..6b6bbbad0
--- /dev/null
+++ b/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8ed5508340d04ccc5919d11cf906783272c95ab9199d50ddcfdfddb5217350a1
+size 318400
diff --git a/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg.ytd b/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg.ytd
new file mode 100644
index 000000000..99b5edfce
--- /dev/null
+++ b/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8141d2e064775d454a24291ca9d2b349c67e4dbeea9e9b2f39eb836aa17342da
+size 5285887
diff --git a/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg_hi.ydr b/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg_hi.ydr
new file mode 100644
index 000000000..aa038b7c5
--- /dev/null
+++ b/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af7d0b197308d9b880a3440b058f6b645fb7ddbc5776ea860be34b8fb55f8645
+size 322541
diff --git a/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg_mag1.ydr b/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg_mag1.ydr
new file mode 100644
index 000000000..e212a39fc
--- /dev/null
+++ b/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg_mag1.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:28bba97725448180b11914bbd03557be242e5c6dcd65f5fc594e08d07e601a08
+size 28405
diff --git a/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg_mag1.ytd b/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg_mag1.ytd
new file mode 100644
index 000000000..99b5edfce
--- /dev/null
+++ b/resources/[EGRP-Weapons]/mp5/stream/w_sb_smg_mag1.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8141d2e064775d454a24291ca9d2b349c67e4dbeea9e9b2f39eb836aa17342da
+size 5285887
diff --git a/resources/[EGRP-Weapons]/remington870/__resource.lua b/resources/[EGRP-Weapons]/remington870/__resource.lua
new file mode 100644
index 000000000..e69de29bb
diff --git a/resources/[EGRP-Weapons]/remington870/stream/w_sg_pumpshotgun.ydr b/resources/[EGRP-Weapons]/remington870/stream/w_sg_pumpshotgun.ydr
new file mode 100644
index 000000000..1d8c3962c
--- /dev/null
+++ b/resources/[EGRP-Weapons]/remington870/stream/w_sg_pumpshotgun.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:947c6bff83d00915a4c439b46b168debe034e635f9c900c44c457e0fc98aa5b6
+size 442425
diff --git a/resources/[EGRP-Weapons]/remington870/stream/w_sg_pumpshotgun.ytd b/resources/[EGRP-Weapons]/remington870/stream/w_sg_pumpshotgun.ytd
new file mode 100644
index 000000000..25301e4bf
--- /dev/null
+++ b/resources/[EGRP-Weapons]/remington870/stream/w_sg_pumpshotgun.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1c6b101e39136c316b5e053a1360565e67bed90df88b18325835b080d1785f23
+size 7759912
diff --git a/resources/[EGRP-Weapons]/remington870/stream/w_sg_pumpshotgun_hi.ydr b/resources/[EGRP-Weapons]/remington870/stream/w_sg_pumpshotgun_hi.ydr
new file mode 100644
index 000000000..f52d43baa
--- /dev/null
+++ b/resources/[EGRP-Weapons]/remington870/stream/w_sg_pumpshotgun_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1d1f1eac9109b856172221607f23297c4e9de3ac1701e14df986d1411c61f8b4
+size 448428
diff --git a/resources/[EGRP-Weapons]/scar/__resource.lua b/resources/[EGRP-Weapons]/scar/__resource.lua
new file mode 100644
index 000000000..e69de29bb
diff --git a/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine+hi.ytd b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine+hi.ytd
new file mode 100644
index 000000000..4b4e02e74
--- /dev/null
+++ b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine+hi.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:449109f555903b25dd03d8f2e54eef0672387fb63ccd6af903961223e6b76734
+size 7153246
diff --git a/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine.ydr b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine.ydr
new file mode 100644
index 000000000..e75c31f51
--- /dev/null
+++ b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bf2a498b9acffb41f8f26f5951b8d4762b00a74b5de42e0264e0a6fb9a13d87c
+size 276499
diff --git a/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine.ytd b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine.ytd
new file mode 100644
index 000000000..50d54d07c
--- /dev/null
+++ b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ca61d709212f1e9534cd1e9cf78c97b896290195103bda6d2dba1d3aea6e5f58
+size 1136139
diff --git a/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_hi.ydr b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_hi.ydr
new file mode 100644
index 000000000..a7f9667c8
--- /dev/null
+++ b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8b23411beb109ff208736aad3a9eb7d8b5eebd46430268b29641e29ae474d606
+size 276498
diff --git a/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag1.ydr b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag1.ydr
new file mode 100644
index 000000000..9342eec7d
--- /dev/null
+++ b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag1.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cc7a5b16675e74eec1bcfeeab013e2707c112e7722eeb16417f89fb2badceb58
+size 20771
diff --git a/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag1.ytd b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag1.ytd
new file mode 100644
index 000000000..f977c5e50
--- /dev/null
+++ b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag1.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d2832dad0b3d900db2f0cf1b74764a2e9aa170c3c624e6f4ae8d3c8889dfdaf0
+size 1134520
diff --git a/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag2.ydr b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag2.ydr
new file mode 100644
index 000000000..dc005b8b8
--- /dev/null
+++ b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag2.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8d3e5034747599b54db1816bfd5112e4b881941e320c9b171b4ce0554f927408
+size 106874
diff --git a/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag2.ytd b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag2.ytd
new file mode 100644
index 000000000..f7d783127
--- /dev/null
+++ b/resources/[EGRP-Weapons]/scar/stream/w_ar_specialcarbine_mag2.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:37e117fd5596fe4b212b3a2509d014db53d210e4a5465cdebb22fb6a675a5b2a
+size 348625
diff --git a/resources/[EGRP-Weapons]/x26taser/__resource.lua b/resources/[EGRP-Weapons]/x26taser/__resource.lua
new file mode 100644
index 000000000..e69de29bb
diff --git a/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun+hi.ytd b/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun+hi.ytd
new file mode 100644
index 000000000..5dacaec44
--- /dev/null
+++ b/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun+hi.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4985405df0577e7481ceadf1f40c0a583fef472b29cb895808d7ed0bc899978f
+size 1118071
diff --git a/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun.ydr b/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun.ydr
new file mode 100644
index 000000000..7be490d3c
--- /dev/null
+++ b/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e322f23d9fab748b852409f61e8134a3542100f5bae40090d9e2b64a4b028718
+size 194988
diff --git a/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun.ytd b/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun.ytd
new file mode 100644
index 000000000..99e040af8
--- /dev/null
+++ b/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun.ytd
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5ef448bc03198bf787b469602f862847e256fc260f8f7db76b2024c10e7211d1
+size 377077
diff --git a/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun_hi.ydr b/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun_hi.ydr
new file mode 100644
index 000000000..fc2b9d322
--- /dev/null
+++ b/resources/[EGRP-Weapons]/x26taser/stream/w_pi_stungun_hi.ydr
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0d4cb9c9428151db76036f774fe4432eaa657a4d4c68a40dbebcd5425b2cf9d9
+size 220408
diff --git a/resources/[gamemodes]/[maps]/fivem-map-hipster/fxmanifest.lua b/resources/[gamemodes]/[maps]/fivem-map-hipster/fxmanifest.lua
new file mode 100644
index 000000000..a656eb52a
--- /dev/null
+++ b/resources/[gamemodes]/[maps]/fivem-map-hipster/fxmanifest.lua
@@ -0,0 +1,6 @@
+resource_type 'map' { gameTypes = { ['basic-gamemode'] = true } }
+
+map 'map.lua'
+
+fx_version 'adamant'
+game 'gta5'
\ No newline at end of file
diff --git a/resources/[gamemodes]/[maps]/fivem-map-hipster/map.lua b/resources/[gamemodes]/[maps]/fivem-map-hipster/map.lua
new file mode 100644
index 000000000..4084dd15c
--- /dev/null
+++ b/resources/[gamemodes]/[maps]/fivem-map-hipster/map.lua
@@ -0,0 +1,3 @@
+spawnpoint 'a_m_y_skater_01' { x = -875.29, y = -432.37, z = 38.5 }
+
+--
\ No newline at end of file
diff --git a/resources/[gamemodes]/[maps]/fivem-map-skater/fxmanifest.lua b/resources/[gamemodes]/[maps]/fivem-map-skater/fxmanifest.lua
new file mode 100644
index 000000000..a656eb52a
--- /dev/null
+++ b/resources/[gamemodes]/[maps]/fivem-map-skater/fxmanifest.lua
@@ -0,0 +1,6 @@
+resource_type 'map' { gameTypes = { ['basic-gamemode'] = true } }
+
+map 'map.lua'
+
+fx_version 'adamant'
+game 'gta5'
\ No newline at end of file
diff --git a/resources/[gamemodes]/[maps]/fivem-map-skater/map.lua b/resources/[gamemodes]/[maps]/fivem-map-skater/map.lua
new file mode 100644
index 000000000..4084dd15c
--- /dev/null
+++ b/resources/[gamemodes]/[maps]/fivem-map-skater/map.lua
@@ -0,0 +1,3 @@
+spawnpoint 'a_m_y_skater_01' { x = -875.29, y = -432.37, z = 38.5 }
+
+--
\ No newline at end of file
diff --git a/resources/[gamemodes]/[maps]/redm-map-one/fxmanifest.lua b/resources/[gamemodes]/[maps]/redm-map-one/fxmanifest.lua
new file mode 100644
index 000000000..0ec5657ef
--- /dev/null
+++ b/resources/[gamemodes]/[maps]/redm-map-one/fxmanifest.lua
@@ -0,0 +1,8 @@
+resource_type 'map' { gameTypes = { ['basic-gamemode'] = true } }
+
+map 'map.lua'
+
+fx_version 'adamant'
+game 'rdr3'
+
+rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
\ No newline at end of file
diff --git a/resources/[gamemodes]/[maps]/redm-map-one/map.lua b/resources/[gamemodes]/[maps]/redm-map-one/map.lua
new file mode 100644
index 000000000..d010aed3f
--- /dev/null
+++ b/resources/[gamemodes]/[maps]/redm-map-one/map.lua
@@ -0,0 +1,2 @@
+spawnpoint 'player_three' { x = -262.849, y = 793.404, z = 118.087 }
+spawnpoint 'player_zero' { x = -262.849, y = 793.404, z = 118.087 }
diff --git a/resources/[gamemodes]/basic-gamemode/basic_client.lua b/resources/[gamemodes]/basic-gamemode/basic_client.lua
new file mode 100644
index 000000000..5631d485c
--- /dev/null
+++ b/resources/[gamemodes]/basic-gamemode/basic_client.lua
@@ -0,0 +1,4 @@
+AddEventHandler('onClientMapStart', function()
+ exports.spawnmanager:setAutoSpawn(true)
+ exports.spawnmanager:forceRespawn()
+end)
diff --git a/resources/[gamemodes]/basic-gamemode/fxmanifest.lua b/resources/[gamemodes]/basic-gamemode/fxmanifest.lua
new file mode 100644
index 000000000..c18c3b9aa
--- /dev/null
+++ b/resources/[gamemodes]/basic-gamemode/fxmanifest.lua
@@ -0,0 +1,6 @@
+resource_type 'gametype' { name = 'Roleplay' }
+
+client_script 'basic_client.lua'
+
+game 'common'
+fx_version 'adamant'
\ No newline at end of file
diff --git a/resources/[gameplay]/chat-theme-gtao/fxmanifest.lua b/resources/[gameplay]/chat-theme-gtao/fxmanifest.lua
new file mode 100644
index 000000000..0b42a9741
--- /dev/null
+++ b/resources/[gameplay]/chat-theme-gtao/fxmanifest.lua
@@ -0,0 +1,13 @@
+file 'style.css'
+file 'shadow.js'
+
+chat_theme 'gtao' {
+ styleSheet = 'style.css',
+ script = 'shadow.js',
+ msgTemplates = {
+ default = '{0}{1}'
+ }
+}
+
+game 'common'
+fx_version 'adamant'
\ No newline at end of file
diff --git a/resources/[gameplay]/chat-theme-gtao/shadow.js b/resources/[gameplay]/chat-theme-gtao/shadow.js
new file mode 100644
index 000000000..55d31761c
--- /dev/null
+++ b/resources/[gameplay]/chat-theme-gtao/shadow.js
@@ -0,0 +1,74 @@
+(function() {
+var Filters = {}
+
+var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
+svg.setAttribute("style", "display:block;width:0px;height:0px");
+var defs = document.createElementNS("http://www.w3.org/2000/svg", "defs");
+
+var blurFilter = document.createElementNS("http://www.w3.org/2000/svg", "filter");
+blurFilter.setAttribute("id", "svgBlurFilter");
+var feGaussianFilter = document.createElementNS("http://www.w3.org/2000/svg", "feGaussianBlur");
+feGaussianFilter.setAttribute("stdDeviation", "0 0");
+blurFilter.appendChild(feGaussianFilter);
+defs.appendChild(blurFilter);
+Filters._svgBlurFilter = feGaussianFilter;
+
+// Drop Shadow Filter
+var dropShadowFilter = document.createElementNS("http://www.w3.org/2000/svg", "filter");
+dropShadowFilter.setAttribute("id", "svgDropShadowFilter");
+var feGaussianFilter = document.createElementNS("http://www.w3.org/2000/svg", "feGaussianBlur");
+feGaussianFilter.setAttribute("in", "SourceAlpha");
+feGaussianFilter.setAttribute("stdDeviation", "3");
+dropShadowFilter.appendChild(feGaussianFilter);
+Filters._svgDropshadowFilterBlur = feGaussianFilter;
+
+var feOffset = document.createElementNS("http://www.w3.org/2000/svg", "feOffset");
+feOffset.setAttribute("dx", "0");
+feOffset.setAttribute("dy", "0");
+feOffset.setAttribute("result", "offsetblur");
+dropShadowFilter.appendChild(feOffset);
+Filters._svgDropshadowFilterOffset = feOffset;
+
+var feFlood = document.createElementNS("http://www.w3.org/2000/svg", "feFlood");
+feFlood.setAttribute("flood-color", "rgba(0,0,0,1)");
+dropShadowFilter.appendChild(feFlood);
+Filters._svgDropshadowFilterFlood = feFlood;
+
+var feComposite = document.createElementNS("http://www.w3.org/2000/svg", "feComposite");
+feComposite.setAttribute("in2", "offsetblur");
+feComposite.setAttribute("operator", "in");
+dropShadowFilter.appendChild(feComposite);
+var feComposite = document.createElementNS("http://www.w3.org/2000/svg", "feComposite");
+feComposite.setAttribute("in2", "SourceAlpha");
+feComposite.setAttribute("operator", "out");
+feComposite.setAttribute("result", "outer");
+dropShadowFilter.appendChild(feComposite);
+
+var feMerge = document.createElementNS("http://www.w3.org/2000/svg", "feMerge");
+var feMergeNode = document.createElementNS("http://www.w3.org/2000/svg", "feMergeNode");
+feMerge.appendChild(feMergeNode);
+var feMergeNode = document.createElementNS("http://www.w3.org/2000/svg", "feMergeNode");
+feMerge.appendChild(feMergeNode);
+Filters._svgDropshadowMergeNode = feMergeNode;
+dropShadowFilter.appendChild(feMerge);
+defs.appendChild(dropShadowFilter);
+svg.appendChild(defs);
+document.documentElement.appendChild(svg);
+
+const blurScale = 1;
+const scale = (document.body.clientWidth / 1280);
+
+Filters._svgDropshadowFilterBlur.setAttribute("stdDeviation",
+ 1 * blurScale + " " +
+ 1 * blurScale
+);
+Filters._svgDropshadowFilterOffset.setAttribute("dx",
+ String(Math.cos(45 * Math.PI / 180) * 1 * scale));
+Filters._svgDropshadowFilterOffset.setAttribute("dy",
+ String(Math.sin(45 * Math.PI / 180) * 1 * scale));
+Filters._svgDropshadowFilterFlood.setAttribute("flood-color",
+ 'rgba(0, 0, 0, 1)');
+Filters._svgDropshadowMergeNode.setAttribute("in",
+ "SourceGraphic");
+
+})();
\ No newline at end of file
diff --git a/resources/[gameplay]/chat-theme-gtao/style.css b/resources/[gameplay]/chat-theme-gtao/style.css
new file mode 100644
index 000000000..c2c0fa33c
--- /dev/null
+++ b/resources/[gameplay]/chat-theme-gtao/style.css
@@ -0,0 +1,128 @@
+* {
+ font-family: inherit;
+}
+
+.chat-window {
+ --size: calc(((2.7vh * 1.2)) * 6);
+
+ position: absolute;
+ right: calc(2.77vh);
+ top: calc(50% - (var(--size) / 2));
+ height: var(--size) !important;
+
+ background: inherit !important;
+
+ text-align: right;
+
+ left: auto;
+
+ user-select: none;
+}
+
+@font-face {
+ font-family: 'Font2';
+ src: url(https://runtime.fivem.net/temp/ChaletLondonNineteenSixty.otf?a);
+}
+
+@font-face {
+ font-family: 'Font2_cond';
+ src: url(https://runtime.fivem.net/temp/chaletcomprime-colognesixty-webfont.ttf?a);
+}
+
+.msg {
+ font-family: Font2, sans-serif;
+ color: #fff;
+
+ font-size: calc(1.8vh); /* 13px in 720p, calc'd by width */
+ filter: url(#svgDropShadowFilter);
+
+ line-height: calc(2.7vh * 1.2);
+
+ margin-bottom: 0;
+}
+
+.chat-messages {
+ margin: 0;
+ height: 100%;
+}
+
+.msg > span > span > b {
+ font-family: Font2_cond, sans-serif;
+ font-weight: normal;
+
+ vertical-align: baseline;
+ padding-right: 11px;
+
+ line-height: 1;
+
+ font-size: calc(2.7vh);
+}
+
+.msg > span > span > span {
+ vertical-align: baseline;
+}
+
+.msg i:first-of-type {
+ font-style: normal;
+ color: #c0c0c0;
+}
+
+.chat-input {
+ position: absolute;
+ right: calc(2.77vh);
+ bottom: calc(2.77vh);
+
+ background: inherit !important;
+
+ text-align: right;
+
+ top: auto;
+ left: auto;
+
+ height: auto;
+
+ font-family: Font2, sans-serif;
+}
+
+.chat-input > div {
+ background-color: rgba(0, 0, 0, .6);
+ padding: calc(0.28vh / 2);
+}
+
+.chat-input .prefix {
+ margin: 0;
+ margin-left: 0.7%;
+ margin-top: -0.1%;
+}
+
+.chat-input > div + div {
+ position: absolute;
+ bottom: calc(1.65vh + 0.28vh + 0.28vh + 0.28vh + (0.28vh / 2));
+ width: 99.6%;
+
+ text-align: left;
+}
+
+.suggestions {
+ border: calc(0.28vh / 2) solid rgba(180, 180, 180, .6);
+ background: transparent;
+}
+
+textarea {
+ background: transparent;
+ border: calc(0.28vh / 2) solid rgba(180, 180, 180, .6);
+ padding: calc(0.28vh / 2);
+ padding-left: calc(3.5% + (0.28vh / 2));
+}
+
+@media screen and (min-aspect-ratio: 21/9) {
+ .chat-window, .chat-input {
+ right: calc(12.8vw);
+ }
+}
+
+@media screen and (min-aspect-ratio: 32/9) {
+ .chat-window, .chat-input {
+ right: calc(25vw);
+ }
+}
diff --git a/resources/[gameplay]/chat/README.md b/resources/[gameplay]/chat/README.md
new file mode 100644
index 000000000..279df4ad7
--- /dev/null
+++ b/resources/[gameplay]/chat/README.md
@@ -0,0 +1 @@
+# Chat
diff --git a/resources/[gameplay]/chat/cl_chat.lua b/resources/[gameplay]/chat/cl_chat.lua
new file mode 100644
index 000000000..21d92da7c
--- /dev/null
+++ b/resources/[gameplay]/chat/cl_chat.lua
@@ -0,0 +1,234 @@
+local isRDR = not TerraingridActivate and true or false
+
+local chatInputActive = false
+local chatInputActivating = false
+local chatHidden = true
+local chatLoaded = false
+
+RegisterNetEvent('chatMessage')
+RegisterNetEvent('chat:addTemplate')
+RegisterNetEvent('chat:addMessage')
+RegisterNetEvent('chat:addSuggestion')
+RegisterNetEvent('chat:addSuggestions')
+RegisterNetEvent('chat:removeSuggestion')
+RegisterNetEvent('chat:clear')
+
+-- internal events
+RegisterNetEvent('__cfx_internal:serverPrint')
+
+RegisterNetEvent('_chat:messageEntered')
+
+--deprecated, use chat:addMessage
+AddEventHandler('chatMessage', function(author, color, text)
+ local args = { text }
+ if author ~= "" then
+ table.insert(args, 1, author)
+ end
+ SendNUIMessage({
+ type = 'ON_MESSAGE',
+ message = {
+ color = color,
+ multiline = true,
+ args = args
+ }
+ })
+end)
+
+AddEventHandler('__cfx_internal:serverPrint', function(msg)
+ print(msg)
+
+ SendNUIMessage({
+ type = 'ON_MESSAGE',
+ message = {
+ templateId = 'print',
+ multiline = true,
+ args = { msg }
+ }
+ })
+end)
+
+AddEventHandler('chat:addMessage', function(message)
+ SendNUIMessage({
+ type = 'ON_MESSAGE',
+ message = message
+ })
+end)
+
+AddEventHandler('chat:addSuggestion', function(name, help, params)
+ SendNUIMessage({
+ type = 'ON_SUGGESTION_ADD',
+ suggestion = {
+ name = name,
+ help = help,
+ params = params or nil
+ }
+ })
+end)
+
+AddEventHandler('chat:addSuggestions', function(suggestions)
+ for _, suggestion in ipairs(suggestions) do
+ SendNUIMessage({
+ type = 'ON_SUGGESTION_ADD',
+ suggestion = suggestion
+ })
+ end
+end)
+
+AddEventHandler('chat:removeSuggestion', function(name)
+ SendNUIMessage({
+ type = 'ON_SUGGESTION_REMOVE',
+ name = name
+ })
+end)
+
+AddEventHandler('chat:addTemplate', function(id, html)
+ SendNUIMessage({
+ type = 'ON_TEMPLATE_ADD',
+ template = {
+ id = id,
+ html = html
+ }
+ })
+end)
+
+AddEventHandler('chat:clear', function(name)
+ SendNUIMessage({
+ type = 'ON_CLEAR'
+ })
+end)
+
+RegisterNUICallback('chatResult', function(data, cb)
+ chatInputActive = false
+ SetNuiFocus(false)
+
+ if not data.canceled then
+ local id = PlayerId()
+
+ --deprecated
+ local r, g, b = 0, 0x99, 255
+
+ if data.message:sub(1, 1) == '/' then
+ ExecuteCommand(data.message:sub(2))
+ else
+ TriggerServerEvent('_chat:messageEntered', GetPlayerName(id), { r, g, b }, data.message)
+ end
+ end
+
+ cb('ok')
+end)
+
+local function refreshCommands()
+ if GetRegisteredCommands then
+ local registeredCommands = GetRegisteredCommands()
+
+ local suggestions = {}
+
+ for _, command in ipairs(registeredCommands) do
+ if IsAceAllowed(('command.%s'):format(command.name)) then
+ table.insert(suggestions, {
+ name = '/' .. command.name,
+ help = ''
+ })
+ end
+ end
+
+ TriggerEvent('chat:addSuggestions', suggestions)
+ end
+end
+
+local function refreshThemes()
+ local themes = {}
+
+ for resIdx = 0, GetNumResources() - 1 do
+ local resource = GetResourceByFindIndex(resIdx)
+
+ if GetResourceState(resource) == 'started' then
+ local numThemes = GetNumResourceMetadata(resource, 'chat_theme')
+
+ if numThemes > 0 then
+ local themeName = GetResourceMetadata(resource, 'chat_theme')
+ local themeData = json.decode(GetResourceMetadata(resource, 'chat_theme_extra') or 'null')
+
+ if themeName and themeData then
+ themeData.baseUrl = 'nui://' .. resource .. '/'
+ themes[themeName] = themeData
+ end
+ end
+ end
+ end
+
+ SendNUIMessage({
+ type = 'ON_UPDATE_THEMES',
+ themes = themes
+ })
+end
+
+AddEventHandler('onClientResourceStart', function(resName)
+ Wait(500)
+
+ refreshCommands()
+ refreshThemes()
+end)
+
+AddEventHandler('onClientResourceStop', function(resName)
+ Wait(500)
+
+ refreshCommands()
+ refreshThemes()
+end)
+
+RegisterNUICallback('loaded', function(data, cb)
+ TriggerServerEvent('chat:init');
+
+ refreshCommands()
+ refreshThemes()
+
+ chatLoaded = true
+
+ cb('ok')
+end)
+
+Citizen.CreateThread(function()
+ SetTextChatEnabled(false)
+ SetNuiFocus(false)
+
+ while true do
+ Wait(0)
+
+ if not chatInputActive then
+ if IsControlPressed(0, isRDR and `INPUT_MP_TEXT_CHAT_ALL` or 245) --[[ INPUT_MP_TEXT_CHAT_ALL ]] then
+ chatInputActive = true
+ chatInputActivating = true
+
+ SendNUIMessage({
+ type = 'ON_OPEN'
+ })
+ end
+ end
+
+ if chatInputActivating then
+ if not IsControlPressed(0, isRDR and `INPUT_MP_TEXT_CHAT_ALL` or 245) then
+ SetNuiFocus(true)
+
+ chatInputActivating = false
+ end
+ end
+
+ if chatLoaded then
+ local shouldBeHidden = false
+
+ if IsScreenFadedOut() or IsPauseMenuActive() then
+ shouldBeHidden = true
+ end
+
+ if (shouldBeHidden and not chatHidden) or (not shouldBeHidden and chatHidden) then
+ chatHidden = shouldBeHidden
+
+ SendNUIMessage({
+ type = 'ON_SCREEN_STATE_CHANGE',
+ shouldHide = shouldBeHidden
+ })
+ end
+ end
+ end
+end)
diff --git a/resources/[gameplay]/chat/fxmanifest.lua b/resources/[gameplay]/chat/fxmanifest.lua
new file mode 100644
index 000000000..14c61bdff
--- /dev/null
+++ b/resources/[gameplay]/chat/fxmanifest.lua
@@ -0,0 +1,30 @@
+description 'chat management stuff'
+
+ui_page 'html/index.html'
+
+client_script 'cl_chat.lua'
+server_script 'sv_chat.lua'
+
+files {
+ 'html/index.html',
+ 'html/index.css',
+ 'html/config.default.js',
+ 'html/config.js',
+ 'html/App.js',
+ 'html/Message.js',
+ 'html/Suggestions.js',
+ 'html/vendor/vue.2.3.3.min.js',
+ 'html/vendor/flexboxgrid.6.3.1.min.css',
+ 'html/vendor/animate.3.5.2.min.css',
+ 'html/vendor/latofonts.css',
+ 'html/vendor/fonts/LatoRegular.woff2',
+ 'html/vendor/fonts/LatoRegular2.woff2',
+ 'html/vendor/fonts/LatoLight2.woff2',
+ 'html/vendor/fonts/LatoLight.woff2',
+ 'html/vendor/fonts/LatoBold.woff2',
+ 'html/vendor/fonts/LatoBold2.woff2',
+ }
+
+fx_version 'adamant'
+games { 'rdr3', 'gta5' }
+rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
\ No newline at end of file
diff --git a/resources/[gameplay]/chat/html/App.js b/resources/[gameplay]/chat/html/App.js
new file mode 100644
index 000000000..6e54d2fa9
--- /dev/null
+++ b/resources/[gameplay]/chat/html/App.js
@@ -0,0 +1,255 @@
+window.APP = {
+ template: '#app_template',
+ name: 'app',
+ data() {
+ return {
+ style: CONFIG.style,
+ showInput: false,
+ showWindow: false,
+ shouldHide: true,
+ backingSuggestions: [],
+ removedSuggestions: [],
+ templates: CONFIG.templates,
+ message: '',
+ messages: [],
+ oldMessages: [],
+ oldMessagesIndex: -1,
+ tplBackups: [],
+ msgTplBackups: []
+ };
+ },
+ destroyed() {
+ clearInterval(this.focusTimer);
+ window.removeEventListener('message', this.listener);
+ },
+ mounted() {
+ post('http://chat/loaded', JSON.stringify({}));
+ this.listener = window.addEventListener('message', (event) => {
+ const item = event.data || event.detail; //'detail' is for debuging via browsers
+ if (this[item.type]) {
+ this[item.type](item);
+ }
+ });
+ },
+ watch: {
+ messages() {
+ if (this.showWindowTimer) {
+ clearTimeout(this.showWindowTimer);
+ }
+ this.showWindow = true;
+ this.resetShowWindowTimer();
+
+ const messagesObj = this.$refs.messages;
+ this.$nextTick(() => {
+ messagesObj.scrollTop = messagesObj.scrollHeight;
+ });
+ },
+ },
+ computed: {
+ suggestions() {
+ return this.backingSuggestions.filter((el) => this.removedSuggestions.indexOf(el.name) <= -1);
+ },
+ },
+ methods: {
+ ON_SCREEN_STATE_CHANGE({ shouldHide }) {
+ this.shouldHide = shouldHide;
+ },
+ ON_OPEN() {
+ this.showInput = true;
+ this.showWindow = true;
+ if (this.showWindowTimer) {
+ clearTimeout(this.showWindowTimer);
+ }
+ this.focusTimer = setInterval(() => {
+ if (this.$refs.input) {
+ this.$refs.input.focus();
+ } else {
+ clearInterval(this.focusTimer);
+ }
+ }, 100);
+ },
+ ON_MESSAGE({ message }) {
+ this.messages.push(message);
+ },
+ ON_CLEAR() {
+ this.messages = [];
+ this.oldMessages = [];
+ this.oldMessagesIndex = -1;
+ },
+ ON_SUGGESTION_ADD({ suggestion }) {
+ const duplicateSuggestion = this.backingSuggestions.find(a => a.name == suggestion.name);
+ if (duplicateSuggestion) {
+ if(suggestion.help || suggestion.params) {
+ duplicateSuggestion.help = suggestion.help || "";
+ duplicateSuggestion.params = suggestion.params || [];
+ }
+ return;
+ }
+ if (!suggestion.params) {
+ suggestion.params = []; //TODO Move somewhere else
+ }
+ this.backingSuggestions.push(suggestion);
+ },
+ ON_SUGGESTION_REMOVE({ name }) {
+ if(this.removedSuggestions.indexOf(name) <= -1) {
+ this.removedSuggestions.push(name);
+ }
+ },
+ ON_TEMPLATE_ADD({ template }) {
+ if (this.templates[template.id]) {
+ this.warn(`Tried to add duplicate template '${template.id}'`)
+ } else {
+ this.templates[template.id] = template.html;
+ }
+ },
+ ON_UPDATE_THEMES({ themes }) {
+ this.removeThemes();
+
+ this.setThemes(themes);
+ },
+ removeThemes() {
+ for (let i = 0; i < document.styleSheets.length; i++) {
+ const styleSheet = document.styleSheets[i];
+ const node = styleSheet.ownerNode;
+
+ if (node.getAttribute('data-theme')) {
+ node.parentNode.removeChild(node);
+ }
+ }
+
+ this.tplBackups.reverse();
+
+ for (const [ elem, oldData ] of this.tplBackups) {
+ elem.innerText = oldData;
+ }
+
+ this.tplBackups = [];
+
+ this.msgTplBackups.reverse();
+
+ for (const [ id, oldData ] of this.msgTplBackups) {
+ this.templates[id] = oldData;
+ }
+
+ this.msgTplBackups = [];
+ },
+ setThemes(themes) {
+ for (const [ id, data ] of Object.entries(themes)) {
+ if (data.style) {
+ const style = document.createElement('style');
+ style.type = 'text/css';
+ style.setAttribute('data-theme', id);
+ style.appendChild(document.createTextNode(data.style));
+
+ document.head.appendChild(style);
+ }
+
+ if (data.styleSheet) {
+ const link = document.createElement('link');
+ link.rel = 'stylesheet';
+ link.type = 'text/css';
+ link.href = data.baseUrl + data.styleSheet;
+ link.setAttribute('data-theme', id);
+
+ document.head.appendChild(link);
+ }
+
+ if (data.templates) {
+ for (const [ tplId, tpl ] of Object.entries(data.templates)) {
+ const elem = document.getElementById(tplId);
+
+ if (elem) {
+ this.tplBackups.push([ elem, elem.innerText ]);
+ elem.innerText = tpl;
+ }
+ }
+ }
+
+ if (data.script) {
+ const script = document.createElement('script');
+ script.type = 'text/javascript';
+ script.src = data.baseUrl + data.script;
+
+ document.head.appendChild(script);
+ }
+
+ if (data.msgTemplates) {
+ for (const [ tplId, tpl ] of Object.entries(data.msgTemplates)) {
+ this.msgTplBackups.push([ tplId, this.templates[tplId] ]);
+ this.templates[tplId] = tpl;
+ }
+ }
+ }
+ },
+ warn(msg) {
+ this.messages.push({
+ args: [msg],
+ template: '^3CHAT-WARN: ^0{0}',
+ });
+ },
+ clearShowWindowTimer() {
+ clearTimeout(this.showWindowTimer);
+ },
+ resetShowWindowTimer() {
+ this.clearShowWindowTimer();
+ this.showWindowTimer = setTimeout(() => {
+ if (!this.showInput) {
+ this.showWindow = false;
+ }
+ }, CONFIG.fadeTimeout);
+ },
+ keyUp() {
+ this.resize();
+ },
+ keyDown(e) {
+ if (e.which === 38 || e.which === 40) {
+ e.preventDefault();
+ this.moveOldMessageIndex(e.which === 38);
+ } else if (e.which == 33) {
+ var buf = document.getElementsByClassName('chat-messages')[0];
+ buf.scrollTop = buf.scrollTop - 100;
+ } else if (e.which == 34) {
+ var buf = document.getElementsByClassName('chat-messages')[0];
+ buf.scrollTop = buf.scrollTop + 100;
+ }
+ },
+ moveOldMessageIndex(up) {
+ if (up && this.oldMessages.length > this.oldMessagesIndex + 1) {
+ this.oldMessagesIndex += 1;
+ this.message = this.oldMessages[this.oldMessagesIndex];
+ } else if (!up && this.oldMessagesIndex - 1 >= 0) {
+ this.oldMessagesIndex -= 1;
+ this.message = this.oldMessages[this.oldMessagesIndex];
+ } else if (!up && this.oldMessagesIndex - 1 === -1) {
+ this.oldMessagesIndex = -1;
+ this.message = '';
+ }
+ },
+ resize() {
+ const input = this.$refs.input;
+ input.style.height = '5px';
+ input.style.height = `${input.scrollHeight + 2}px`;
+ },
+ send(e) {
+ if(this.message !== '') {
+ post('http://chat/chatResult', JSON.stringify({
+ message: this.message,
+ }));
+ this.oldMessages.unshift(this.message);
+ this.oldMessagesIndex = -1;
+ this.hideInput();
+ } else {
+ this.hideInput(true);
+ }
+ },
+ hideInput(canceled = false) {
+ if (canceled) {
+ post('http://chat/chatResult', JSON.stringify({ canceled }));
+ }
+ this.message = '';
+ this.showInput = false;
+ clearInterval(this.focusTimer);
+ this.resetShowWindowTimer();
+ },
+ },
+};
diff --git a/resources/[gameplay]/chat/html/Message.js b/resources/[gameplay]/chat/html/Message.js
new file mode 100644
index 000000000..067d8428f
--- /dev/null
+++ b/resources/[gameplay]/chat/html/Message.js
@@ -0,0 +1,86 @@
+Vue.component('message', {
+ template: '#message_template',
+ data() {
+ return {};
+ },
+ computed: {
+ textEscaped() {
+ let s = this.template ? this.template : this.templates[this.templateId];
+
+ if (this.template) {
+ //We disable templateId since we are using a direct raw template
+ this.templateId = -1;
+ }
+
+ //This hack is required to preserve backwards compatability
+ if (this.templateId == CONFIG.defaultTemplateId
+ && this.args.length == 1) {
+ s = this.templates[CONFIG.defaultAltTemplateId] //Swap out default template :/
+ }
+
+ s = s.replace(/{(\d+)}/g, (match, number) => {
+ const argEscaped = this.args[number] != undefined ? this.escape(this.args[number]) : match
+ if (number == 0 && this.color) {
+ //color is deprecated, use templates or ^1 etc.
+ return this.colorizeOld(argEscaped);
+ }
+ return argEscaped;
+ });
+ return this.colorize(s);
+ },
+ },
+ methods: {
+ colorizeOld(str) {
+ return `${str}`
+ },
+ colorize(str) {
+ let s = "" + (str.replace(/\^([0-9])/g, (str, color) => ``)) + "";
+
+ const styleDict = {
+ '*': 'font-weight: bold;',
+ '_': 'text-decoration: underline;',
+ '~': 'text-decoration: line-through;',
+ '=': 'text-decoration: underline line-through;',
+ 'r': 'text-decoration: none;font-weight: normal;',
+ };
+
+ const styleRegex = /\^(\_|\*|\=|\~|\/|r)(.*?)(?=$|\^r|<\/em>)/;
+ while (s.match(styleRegex)) { //Any better solution would be appreciated :P
+ s = s.replace(styleRegex, (str, style, inner) => `${inner}`)
+ }
+ return s.replace(/]*><\/span[^>]*>/g, '');
+ },
+ escape(unsafe) {
+ return String(unsafe)
+ .replace(/&/g, '&')
+ .replace(//g, '>')
+ .replace(/"/g, '"')
+ .replace(/'/g, ''');
+ },
+ },
+ props: {
+ templates: {
+ type: Object,
+ },
+ args: {
+ type: Array,
+ },
+ template: {
+ type: String,
+ default: null,
+ },
+ templateId: {
+ type: String,
+ default: CONFIG.defaultTemplateId,
+ },
+ multiline: {
+ type: Boolean,
+ default: false,
+ },
+ color: { //deprecated
+ type: Array,
+ default: false,
+ },
+ },
+});
diff --git a/resources/[gameplay]/chat/html/Suggestions.js b/resources/[gameplay]/chat/html/Suggestions.js
new file mode 100644
index 000000000..07c4688ab
--- /dev/null
+++ b/resources/[gameplay]/chat/html/Suggestions.js
@@ -0,0 +1,44 @@
+Vue.component('suggestions', {
+ template: '#suggestions_template',
+ props: ['message', 'suggestions'],
+ data() {
+ return {};
+ },
+ computed: {
+ currentSuggestions() {
+ if (this.message === '') {
+ return [];
+ }
+ const currentSuggestions = this.suggestions.filter((s) => {
+ if (!s.name.startsWith(this.message)) {
+ const suggestionSplitted = s.name.split(' ');
+ const messageSplitted = this.message.split(' ');
+ for (let i = 0; i < messageSplitted.length; i += 1) {
+ if (i >= suggestionSplitted.length) {
+ return i < suggestionSplitted.length + s.params.length;
+ }
+ if (suggestionSplitted[i] !== messageSplitted[i]) {
+ return false;
+ }
+ }
+ }
+ return true;
+ }).slice(0, CONFIG.suggestionLimit);
+
+ currentSuggestions.forEach((s) => {
+ // eslint-disable-next-line no-param-reassign
+ s.disabled = !s.name.startsWith(this.message);
+
+ s.params.forEach((p, index) => {
+ const wType = (index === s.params.length - 1) ? '.' : '\\S';
+ const regex = new RegExp(`${s.name} (?:\\w+ ){${index}}(?:${wType}*)$`, 'g');
+
+ // eslint-disable-next-line no-param-reassign
+ p.disabled = this.message.match(regex) == null;
+ });
+ });
+ return currentSuggestions;
+ },
+ },
+ methods: {},
+});
diff --git a/resources/[gameplay]/chat/html/config.default.js b/resources/[gameplay]/chat/html/config.default.js
new file mode 100644
index 000000000..d2600ebe7
--- /dev/null
+++ b/resources/[gameplay]/chat/html/config.default.js
@@ -0,0 +1,19 @@
+// DO NOT EDIT THIS FILE
+// Copy it to `config.js` and edit it
+window.CONFIG = {
+ defaultTemplateId: 'default', //This is the default template for 2 args1
+ defaultAltTemplateId: 'defaultAlt', //This one for 1 arg
+ templates: { //You can add static templates here
+ 'default': '{0}: {1}',
+ 'defaultAlt': '{0}',
+ 'print': '