diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/.fxap b/resources/[Developer]/[Anna]/brutal_ambulancejob/.fxap deleted file mode 100644 index 996e6c532..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/.fxap and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/README.md b/resources/[Developer]/[Anna]/brutal_ambulancejob/README.md deleted file mode 100644 index cecf3b394..000000000 --- a/resources/[Developer]/[Anna]/brutal_ambulancejob/README.md +++ /dev/null @@ -1 +0,0 @@ -Please follow the instructions: https://docs.brutalscripts.com \ No newline at end of file diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/cl_utils.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/cl_utils.lua deleted file mode 100644 index de8e4e1c1..000000000 --- a/resources/[Developer]/[Anna]/brutal_ambulancejob/cl_utils.lua +++ /dev/null @@ -1,279 +0,0 @@ -ESX = Core -QBCore = Core - --- Buy here: (4€+VAT) https://store.brutalscripts.com -function notification(title, text, time, type) - if Config.BrutalNotify then - exports['brutal_notify']:SendAlert(title, text, time, type) - else - -- Put here your own notify and set the Config.BrutalNotify to false - SetNotificationTextEntry("STRING") - AddTextComponentString(text) - DrawNotification(0,1) - - -- Default ESX Notify: - --TriggerEvent('esx:showNotification', text) - - -- Default QB Notify: - --TriggerEvent('QBCore:Notify', text, 'info', 5000) - - -- OKOK Notify: - -- exports['okokNotify']:Alert(title, text, time, type, false) - - end -end - -function TextUIFunction(type, text) - if type == 'open' then - if Config.TextUI:lower() == 'ox_lib' then - lib.showTextUI(text) - elseif Config.TextUI:lower() == 'okoktextui' then - exports['okokTextUI']:Open(text, 'darkblue', 'right') - elseif Config.TextUI:lower() == 'esxtextui' then - ESX.TextUI(text) - elseif Config.TextUI:lower() == 'qbdrawtext' then - exports['qb-core']:DrawText(text,'left') - elseif Config.TextUI:lower() == 'brutal_textui' then - exports['brutal_textui']:Open(text, "blue") - end - elseif type == 'hide' then - if Config.TextUI:lower() == 'ox_lib' then - lib.hideTextUI() - elseif Config.TextUI:lower() == 'okoktextui' then - exports['okokTextUI']:Close() - elseif Config.TextUI:lower() == 'esxtextui' then - ESX.HideUI() - elseif Config.TextUI:lower() == 'qbdrawtext' then - exports['qb-core']:HideText() - elseif Config.TextUI:lower() == 'brutal_textui' then - exports['brutal_textui']:Close() - end - end -end - -function InventoryOpenFunction(type, data) - if type == 'society' then - local job = data - local label = job:sub(1, 1):upper() .. job:sub(2):lower().." Stash" - - if Config.Inventory:lower() == 'ox_inventory' then - exports.ox_inventory:openInventory('stash', {id = "stash_"..job}) - elseif Config.Inventory:lower() == 'qb_inventory' then - if GetResourceState('qb-inventory') == "started" then - TriggerServerEvent("brutal_ambulancejob:qb-inventory:server:OpenInventory", "stash_"..job, {label = label, maxweight = 100000, slots = 100}) - else - TriggerServerEvent("inventory:server:OpenInventory", "stash", "stash_"..job, {label = label, maxweight = 100000, slots = 100}) - TriggerEvent("inventory:client:SetCurrentStash", "stash_"..job) - end - elseif Config.Inventory:lower() == 'quasar_inventory' then - TriggerServerEvent("inventory:server:OpenInventory", "stash", "stash_"..job, {label = label, maxweight = 100000, slots = 100}) - TriggerEvent("inventory:client:SetCurrentStash", "stash_"..job) - elseif Config.Inventory:lower() == 'chezza_inventory' then - TriggerEvent("inventory:openInventory", {type = "stash", id = "stash_"..job, title = label, weight = 100000, delay = 100, save = true}) - elseif Config.Inventory:lower() == 'core_inventory' then - TriggerServerEvent("core_inventory:server:openInventory", "stash_"..job, "big_storage") - elseif Config.Inventory:lower() == 'codem_inventory' then - TriggerServerEvent("inventory:server:OpenInventory", "stash", "stash_"..job, {label = label, maxweight = 100000, slots = 100}) - elseif Config.Inventory:lower() == 'origen_inventory' then - exports.origen_inventory:openInventory("stash", "stash_"..job, {label = label, maxweight = 100000, slots = 100}) - elseif Config.Inventory:lower() == 'ps-inventory' then - if GetResourceState('ps-inventory') == "started" then - TriggerServerEvent("ps-inventory:server:OpenInventory", "stash_"..job, {label = label, maxweight = 100000, slots = 100}) - TriggerEvent("ps-inventory:client:SetCurrentStash", "stash_"..job) - else - TriggerServerEvent("inventory:server:OpenInventory", "stash", "stash_"..job, {label = label, maxweight = 100000, slots = 100}) - TriggerEvent("inventory:client:SetCurrentStash", "stash_"..job) - end - end - end -end - -function ProgressBarFunction(time, text) - if Config.ProgressBar:lower() == 'progressbars' then -- LINK: https://github.com/EthanPeacock/progressBars/releases/tag/1.0 - exports['progressBars']:startUI(time, text) - elseif Config.ProgressBar:lower() == 'mythic_progbar' then -- LINK: https://github.com/HarryElSuzio/mythic_progbar - TriggerEvent("mythic_progbar:client:progress", {name = "policejobduty", duration = time, label = text, useWhileDead = false, canCancel = false}) - elseif Config.ProgressBar:lower() == 'pogressbar' then -- LINK: https://github.com/SWRP-PUBLIC/pogressBar - exports['pogressBar']:drawBar(time, text) - end -end - -function BossMenuFunction(job) - if Config['Core']:upper() == 'ESX' then - TriggerEvent('esx_society:openBossMenu', job, function(data) end, { wash = false }) - elseif Config['Core']:upper() == 'QBCORE' then - TriggerEvent('qb-bossmenu:client:OpenMenu') - end -end - -AddEventHandler('brutal_ambulancejob:client:onPlayerDeath', function() - -- this event run when the player died. - - --exports['qs-smartphone']:canUsePhone(false) - --exports["lb-phone"]:ToggleDisabled(true) -end) - -AddEventHandler('brutal_ambulancejob:revive', function() - -- this event run when the player revived. - - --exports['qs-smartphone']:canUsePhone(true) - --exports["lb-phone"]:ToggleDisabled(false) - - if Config['Core']:upper() == 'ESX' then - TriggerEvent('esx_basicneeds:resetStatus') - elseif Config['Core']:upper() == 'QBCORE' then - TriggerServerEvent("hospital:server:resetHungerThirst") - end -end) - -AddEventHandler('brutal_ambulancejob:server:heal', function() - -- this event run when the player healed. - - if Config['Core']:upper() == 'ESX' then - TriggerEvent('esx_basicneeds:resetStatus') - elseif Config['Core']:upper() == 'QBCORE' then - TriggerServerEvent("hospital:server:resetHungerThirst") - end -end) - -RegisterNetEvent('txcl:heal', function() - TriggerEvent('brutal_ambulancejob:revive') -end) - -RegisterNetEvent('brutal_ambulancejob:client:ReviveKeyPressed') -AddEventHandler('brutal_ambulancejob:client:ReviveKeyPressed', function() - -- this event runs when the player presses the get help button on the death screen - -end) - -function CustomMDT() - -- You can open another MDT here -end - -function OpenCloakroomMenuEvent() - TriggerEvent('qb-clothing:client:openOutfitMenu') -end - -function CitizenWear() - if Config['Core']:upper() == 'ESX' then - Core.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin) - TriggerEvent('skinchanger:loadSkin', skin) - end) - elseif Config['Core']:upper() == 'QBCORE' then - TriggerServerEvent('qb-clothes:loadPlayerSkin') - end -end - -function setUniform(uniformTable) - if Config['Core']:upper() == 'ESX' then - TriggerEvent('skinchanger:getSkin', function(skin) - local uniform - if skin.sex == 0 then - uniform = uniformTable.male - else - uniform = uniformTable.female - end - - local table = {} - - for k,v in pairs(uniform) do - if k == 't-shirt' then - table.tshirt_1 = uniform['t-shirt'].item - table.tshirt_2 = uniform['t-shirt'].texture - elseif k == 'torso2' then - table.torso_1 = uniform['torso2'].item - table.torso_2 = uniform['torso2'].texture - elseif k == 'decals' then - table.decals_1 = uniform['decals'].item - table.decals_2 = uniform['decals'].texture - elseif k == 'arms' then - table.arms = uniform['arms'].item - elseif k == 'pants' then - table.pants_1 = uniform['pants'].item - table.pants_2 = uniform['pants'].texture - elseif k == 'shoes' then - table.shoes_1 = uniform['shoes'].item - table.shoes_2 = uniform['shoes'].texture - elseif k == 'hat' then - table.helmet_1 = uniform['hat'].item - table.helmet_2 = uniform['hat'].texture - elseif k == 'accessory' then - table.chain_1 = uniform['accessory'].item - table.chain_2 = uniform['accessory'].texture - elseif k == 'ear' then - table.ears_1 = uniform['ear'].item - table.ears_2 = uniform['ear'].texture - elseif k == 'mask' then - table.mask_1 = uniform['mask'].item - table.mask_2 = uniform['mask'].texture - end - end - - TriggerEvent('skinchanger:loadClothes', skin, table) - end) - elseif Config['Core']:upper() == 'QBCORE' then - local table = {} - local gender = QBCore.Functions.GetPlayerData().charinfo.gender - if gender == 0 then - table.outfitData = uniformTable.male - else - table.outfitData = uniformTable.female - end - - TriggerEvent('qb-clothing:client:loadOutfit', table) - end -end - -function DisableMinimap() - DisplayRadar(false) -end - -function EnableMinimap() - DisplayRadar(true) -end - -function OpenMenuUtil() - InMenu = true - SetNuiFocus(true, true) - - Citizen.CreateThread(function() - while InMenu do - N_0xf4f2c0d4ee209e20() -- it's disable the AFK camera zoom - Citizen.Wait(15000) - end - end) - - DisplayRadar(false) -end - -function CloseMenuUtil() - Citizen.CreateThread(function() - Citizen.Wait(1000) - InMenu = false - end) - - SetNuiFocus(false, false) - - DisplayRadar(true) -end - -function GenerateAmbulancePlace() - return string.sub(PlayerData.job.label, 1, 4)..''..math.random(0001, 9999) -end - ------------------------| UTILS TRIGGERS |----------------------- - -RegisterNetEvent('brutal_ambulancejob:client:utils:CreateVehicle') -AddEventHandler('brutal_ambulancejob:client:utils:CreateVehicle', function(Vehicle) - SetVehicleFuelLevel(Vehicle, 100.0) - DecorSetFloat(Vehicle, "_FUEL_LEVEL", GetVehicleFuelLevel(Vehicle)) - - if Config['Core']:upper() == 'QBCORE' then - TriggerEvent("vehiclekeys:client:SetOwner", QBCore.Functions.GetPlate(Vehicle)) - end -end) - -RegisterNetEvent('brutal_ambulancejob:client:utils:DeleteVehicle') -AddEventHandler('brutal_ambulancejob:client:utils:DeleteVehicle', function(Vehicle) - -end) \ No newline at end of file diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/client/client.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/client/client.lua deleted file mode 100644 index 858361fa2..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/client/client.lua and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/client/commands.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/client/commands.lua deleted file mode 100644 index a7a93b388..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/client/commands.lua and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/client/desktop.ini b/resources/[Developer]/[Anna]/brutal_ambulancejob/client/desktop.ini deleted file mode 100644 index 03fd910e6..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/client/desktop.ini and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/client/errors.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/client/errors.lua deleted file mode 100644 index 1d2bb2614..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/client/errors.lua and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/client/nui.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/client/nui.lua deleted file mode 100644 index be38b8bd8..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/client/nui.lua and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/config.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/config.lua deleted file mode 100644 index 9de7aec0c..000000000 --- a/resources/[Developer]/[Anna]/brutal_ambulancejob/config.lua +++ /dev/null @@ -1,539 +0,0 @@ ----------------------------------------------------------------------------------------------- -----------------------------------| BRUTAL AMBULANCE JOB :) |--------------------------------- ----------------------------------------------------------------------------------------------- - ---[[ -Hi, thank you for buying our script, We are very grateful! - -For help join our Discord server: https://discord.gg/85u2u5c8q9 -More informations about the script: https://docs.brutalscripts.com ---]] - -Config = { - Core = 'QBCORE', -- 'ESX' / 'QBCORE' | Other core setting on the 'core' folder. - Inventory = 'qb_inventory', -- 'ox_inventory' / 'qb_inventory' / 'quasar_inventory' / 'chezza_inventory' / 'codem_inventory' / 'core_inventory' / 'origen_inventory' / 'ps-inventory' // Custom can be add in the cl_utils.lua!!! - Billing = 'okokBilling', -- 'brutal_billing' / 'okokBilling' / 'esx_billing' / 'jaksam_billing' / 'codem_billing' / 'quasar_billing' | false = immediate deduction from the player's bank account - TextUI = 'ox_lib', -- false / 'brutal_textui' / 'ox_lib' / 'okokTextUI' / 'ESXTextUI' / 'QBDrawText' // Custom can be add in the cl_utils.lua!!! - Target = 'qb-target', -- 'oxtarget' / 'qb-target' // if the TextUI is set to false target will step its place. | The Target cannot be false. - ProgressBar = '', -- 'progressBars' / 'pogressBar' / 'mythic_progbar' // Custom can be add in the cl_utils.lua!!! - BrutalNotify = true, -- Buy here: (4€+VAT) https://store.brutalscripts.com | Or set up your own notify >> cl_utils.lua - BrutalPaintball = false, -- If you use the Brutal Paintball, set it to true. - SteamName = false, -- true = Steam name | false = character name - DateFormat = '%d/%m/%Y', -- Date format - CustomOutfitMenu = false, -- If it's true, it will open a custom outfit menu, what you can edit in the cl_utils.lua line 103. - - Bleeding = true, - BleedNotify = true, - InjuredWalk = true, - - UseDeathScreen = true, - AutoRespawn = true, -- You can trun it off the auto respawn - DeathTime = 300, -- time til respawn is available - WaitTime = 60, -- time til the player bleeds out - ReviveKey = 55, - SaveDeathStatus = true, - PlayerMedikitUsage = false, -- If you want to allow to the players to revive each other set it to true. - DeathAnimation = {use = true, animDictionary = 'dead', animName = 'dead_a'}, - ReviveReward = 100, -- set to 0 if you don't want to use it. | This amount will be removed from the revived person - ClearInventory = false, -- true / false | Function editable: sv_utils.lua - DisableControls = {170,168,24,257,25,263,32,34,31,30,45,22,44,37,23,288,289,170,167,73,199,59,71,72,36,47,264,257,140,141,142,143,75,249}, - ReviveCoords = { - -- GABZ Hospital Coords - vector4(313.1343, -583.4428, 43.2841, 332.1013), - vector4(1839.4497, 3673.3372, 34.2767, 210.1900), - - -- QBCore Hospital Coords - --vector4(349.5245, -591.6425, 43.3151, 344.9672), - }, - - MedicerItems = { - Head = 'head_bandage', - Arms = 'arm_wrap', - Legs = 'leg_plaster', - Body = 'body_bandage', - Bandage = 'bandage', - Medikit = 'medikit', - }, - - HealItems = { - -- item = item name, value = heal points to add to the player's current health, anim use = true / false, animDictionary = anim dictionary, animName = anim name - {item = 'small_heal', value = 20, anim = {use = false, animDictionary = 'anim@heists@narcotics@funding@gang_idle', animName = 'gang_chatting_idle01'}}, - {item = 'big_heal', value = 50, anim = {use = true, animDictionary = 'anim@heists@narcotics@funding@gang_idle', animName = 'gang_chatting_idle01'}}, - -- You can add more... - }, - - Elevators = { - {firstCoords = vector4(327.2784, -603.2939, 43.2841, 340.3185), secondCoords = vector4(339.2096, -583.8710, 74.1617, 256.0121)}, - {firstCoords = vector4(339.2096, -583.8710, 74.1617, 256.0121), secondCoords = vector4(327.2784, -603.2939, 43.2841, 340.3185)}, - {firstCoords = vector4(332.1774, -595.6858, 43.2841, 74.3505), secondCoords = vector4(339.9041, -584.7014, 28.7968, 71.1949)}, - {firstCoords = vector4(339.9041, -584.7014, 28.7968, 71.1949), secondCoords = vector4(332.1774, -595.6858, 43.2841, 74.3505)}, - }, - - NPCMenidersCount = 0, -- The NPC medic only usable If fewer (or equal) paramedics are available than this value. - NPCMedicers = { - -- GABZ Hospital Coords - {job = 'ambulance', price = 100, time = 30, coords = vector3(318.8537, -585.8278, 43.2841), bedcoords = vector3(317.671, -585.368, 42.842), bedheading = 338.0}, - - -- QBCore Hospital Coords - -- {price = 100, time = 30, coords = vector3(355.2057, -593.0265, 43.3150), bedcoords = vector3(354.23, -592.67, 42.88), bedheading = 338.0}, - - -- Sandy Shores Hospital Coords - {job = 'ambulance2', price = 100, time = 30, coords = vector3(1825.8538, 3675.4375, 34.2711), bedcoords = vector3(1826.425, 3676.826, 33.835), bedheading = 205.0}, - }, - - MedicItems = { - ['ecg'] = {prop = 'prop_ld_purse_01', pos = {0.10, 0.0, 0.0, 0.0, 280.0, 53.0}}, - ['bag'] = {prop = 'prop_ld_bomb', pos = {0.39, 0.0, 0.0, 0.0, 266.0, 60.0}}, - }, - - WheelchairVehicle = 'iak_wheelchair', -- DOWNLOAD FROM THE DOCS: https://docs.brutalscripts.com/ - Stretcher = { - Vehicles = { - {model = 'ambulance', xPos = 0.0, yPos = -3.0, zPos = 0.32, xRot = 0.0, yRot = 0.0, zRot = 90.0, offsetY = -6.0 }, - {model = 'fdnyambo', xPos = 0.0, yPos = -3.0, zPos = 0.7, xRot = 0.0, yRot = 0.0, zRot = 0.0, offsetY = -7.0 }, - {model = 'vdambulance', xPos = 0.0, yPos = -1.8, zPos = 0.3, xRot = 0.0, yRot = 0.0, zRot = 0.0, offsetY = -7.0 }, -- Purchase these vehicles at: https://voodoocustom.tebex.io/package/6390694 - {model = 'vdambulance2', xPos = 0.0, yPos = -1.8, zPos = 0.3, xRot = 0.0, yRot = 0.0, zRot = 0.0, offsetY = -7.0 }, - {model = 'vdambulance3', xPos = 0.0, yPos = -1.8, zPos = 0.3, xRot = 0.0, yRot = 0.0, zRot = 0.0, offsetY = -7.0 }, - {model = 'vdambulance4', xPos = 0.0, yPos = -1.8, zPos = 0.3, xRot = 0.0, yRot = 0.0, zRot = 0.0, offsetY = -7.0 }, - {model = 'vdambulance5', xPos = 0.0, yPos = -1.8, zPos = 0.3, xRot = 0.0, yRot = 0.0, zRot = 0.0, offsetY = -7.0 }, - {model = 'vdambulance6', xPos = 0.0, yPos = -1.8, zPos = 0.3, xRot = 0.0, yRot = 0.0, zRot = 0.0, offsetY = -7.0 }, - {model = 'vdambulance7', xPos = 0.0, yPos = -1.8, zPos = 0.3, xRot = 0.0, yRot = 0.0, zRot = 0.0, offsetY = -7.0 }, - {model = 'vdambulance8', xPos = 0.0, yPos = -1.8, zPos = 0.3, xRot = 0.0, yRot = 0.0, zRot = 0.0, offsetY = -7.0 }, - }, - }, - - AmbulanceJobs = { - ['Pillbox Hospital'] = { - Job = 'ambulance', -- Job name - - Blip = {use = true, coords = vector3(303.8510, -586.7777, 43.2841), color = 2, sprite = 61, size = 0.75}, -- Job blip - Marker = {use = true, type = 20, directions = {0.0,0.0,0.0}, rotations = {0.0,0.0,0.0}, scales = {0.3,0.2,0.2}, rgba = {233,88,69,255}, bobUpAndDown = true, faceCamera = true, rotate = false, textureDict = nil, textureName = false}, - - Duty = vector3(310.7379, -596.7782, 43.2841), -- Duty ON / OFF coords - - DutyBlips = { - use = true, -- With this the medicers can see the other medicers in the map. - updatetime = 5000, -- Represents the time in milliseconds (1 second = 1000 milliseconds) - }, - - Cloakrooms = { - -- GABZ Hospital Coords - vector3(301.5520, -599.3223, 43.2841), - - -- QBCore Hospital Coords - --vector3(309.7783, -602.8839, 43.2918), - - - -- You can add more... - }, - - Armorys = { - -- GABZ Hospital Coords - vector3(306.7001, -601.3186, 43.2841), - - -- QBCore Hospital Coords - --vector3(298.6365, -599.4954, 43.2921), - - - -- You can add more... - }, - - BossMenu = { - grades = {3,4}, - coords = { - -- GABZ Hospital Coords - vector3(341.0698, -589.9628, 43.2841), - - -- QBCore Hospital Coords - -- vector3(310.4246, -599.5806, 43.2918), - - - -- You can add more... - }, - }, - - Garages = { - { - Label = 'Garage I.', -- Garage Label - menu = vector3(318.8354, -581.4986, 28.7969), -- Garage menu open coords - spawn = vector4(323.4314, -581.0833, 28.7969, 339.7418), -- Vehicle spawn coords - deposit = vector3(323.4314, -581.0833, 28.7969), -- Vehicle deposit place - - vehicles = { - --['MODEL'] = { - -- Label = 'VEHICLE-LABEL', - -- minRank = MINIMUM-GRADE - --}, - - ['ambulance'] = { - Label = 'Ambulance Vehicle', - minRank = 1 - }, - } - }, - - { - Label = 'Garage II.', - menu = vector3(296.0435, -614.3528, 43.4332), - spawn = vector4(294.3420, -610.1584, 43.0086, 69.7166), - deposit = vector3(294.3420, -610.1584, 43.0086), - - vehicles = { - ['ambulance'] = { - Label = 'Ambulance Vehicle', - minRank = 1 - }, - } - }, - - { - Label = 'Helicopter Garage', - menu = vector3(348.3348, -596.7404, 74.1617), - spawn = vector4(350.9515, -587.6812, 74.1617, 255.0893), - deposit = vector3(350.9514, -587.6812, 74.1617), - - vehicles = { - ['polmav'] = { - Label = 'Ambulance Helicopter', - minRank = 3 - }, - } - }, - - -- You can add more... - }, - - Shop = { - -- minGrade = The minimum grade to access to buy the item. - {item = 'bandage', label = 'Bandage', price = 500, minGrade = 0}, - {item = 'medikit', label = 'Medikit', price = 500, minGrade = 0}, - {item = 'head_bandage', label = 'Head Bandage', price = 500, minGrade = 0}, - {item = 'arm_wrap', label = 'Arm Wrap', price = 500, minGrade = 0}, - {item = 'leg_plaster', label = 'Leg Plaster', price = 500, minGrade = 0}, - {item = 'body_bandage', label = 'Body Bandage', price = 500, minGrade = 0}, - }, - }, - - ------------- - - ['Sandy Shores Hospital'] = { - Job = 'ambulance2', -- Job name - - Blip = {use = true, coords = vector3(1828.4707, 3685.3674, 34.271), color = 2, sprite = 61, size = 0.75}, -- Job blip - Marker = {use = true, type = 20, directions = {0.0,0.0,0.0}, rotations = {0.0,0.0,0.0}, scales = {0.3,0.2,0.2}, rgba = {233,88,69,255}, bobUpAndDown = true, faceCamera = true, rotate = false, textureDict = nil, textureName = false}, - - Duty = vector3(1828.4707, 3685.3674, 34.2711), -- Duty ON / OFF coords - - DutyBlips = { - use = true, -- With this the medicers can see the other medicers in the map. - updatetime = 5000, -- Represents the time in milliseconds (1 second = 1000 milliseconds) - }, - - Cloakrooms = { - vector3(1834.4899, 3690.6045, 34.2706), - - -- You can add more... - }, - - Armorys = { - vector3(1822.9021, 3666.7390, 34.2710), - - - -- You can add more... - }, - - BossMenu = { - grades = {3,4}, - coords = { - vector3(1823.8932, 3686.7446, 34.2710), - - -- You can add more... - }, - }, - - Garages = { - { - Label = 'Garage I.', -- Garage Label - menu = vector3(1844.7936, 3673.1001, 33.679), -- Garage menu open coords - spawn = vector4(1848.2019, 3671.0818, 33.5076, 210.1191), -- Vehicle spawn coords - deposit = vector3(1847.8590, 3671.6931, 33.7044), -- Vehicle deposit place - - vehicles = { - --['MODEL'] = { - -- Label = 'VEHICLE-LABEL', - -- minRank = MINIMUM-GRADE - --}, - - ['ambulance'] = { - Label = 'Ambulance Vehicle', - minRank = 1 - }, - } - }, - - -- You can add more... - }, - - Shop = { - -- minGrade = The minimum grade to access to buy the item. - {item = 'bandage', label = 'Bandage', price = 500, minGrade = 0}, - {item = 'medikit', label = 'Medikit', price = 500, minGrade = 0}, - {item = 'head_bandage', label = 'Head Bandage', price = 500, minGrade = 0}, - {item = 'arm_wrap', label = 'Arm Wrap', price = 500, minGrade = 0}, - {item = 'leg_plaster', label = 'Leg Plaster', price = 500, minGrade = 0}, - {item = 'body_bandage', label = 'Body Bandage', price = 500, minGrade = 0}, - }, - }, - }, - - Commands = { - Duty = { - Use = true, - Command = 'aduty', - Suggestion = 'Entering/Exiting duty' - }, - - JobMenu = { - Command = 'emsjobmenu', - Control = '', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/ - Suggestion = 'Open Job Menu' - }, - - MedicerMenu = { - Command = 'medicmenu', - Suggestion = 'Open Medicer Menu' - }, - - MDT = { - Use = true, -- if false here you can add your custom MDT >> cl_utils - Command = 'emsmdt', - Control = '', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/ - Suggestion = 'Open MDT Menu' - }, - - MedicCall = { - Command = 'mediccall', - Suggestion = 'To get Medic help', - }, - - Bed = { - Use = true, - Command = 'bed', - Suggestion = 'To use the closest Bed', - Objects = {'v_med_bed2', 'v_med_bed1', 'v_med_emptybed', -1519439119, -289946279} - } - }, - - AdminCommands = { - Revive = {Use = true, Command = 'revive', Suggestion = 'To revive a player', AdminGroups = {'superadmin', 'admin', 'mod', 'god'}}, -- /revive [me / all / PlayerID] - Heal = {Use = false, Command = 'heal', Suggestion = 'To heal a player', AdminGroups = {'superadmin', 'admin', 'mod', 'god'}}, -- /heal [me / PlayerID] - Kill = {Use = false, Command = 'kill', Suggestion = 'To kill a player', AdminGroups = {'superadmin', 'admin', 'mod', 'god'}}, -- /kill [me / PlayerID] - }, - - ----------------------------------------------------------- - -----------------------| TRANSLATE |----------------------- - ----------------------------------------------------------- - - MoneyForm = '$', -- Money form - - Locales = { - CloakRoom = 'Cloak Room', - GarageMenu = 'Garage Menu', - - Animations = 'Animations', - Carry = 'Carry', - Wheelchair = 'Wheelchair', - Ecg = 'Ecg', - Bag = 'Bag', - Stretcher = 'Stretcher', - Spawn = 'Spawn & Delete', - PutOn = 'Put on/down', - Bed = 'Put in/off Bed', - Push = 'Push & Release', - PutIn = 'Put in/out', - MDT = 'MDT', - MedicerMenu = 'Medic Menu', - - Colleague = 'Colleague', - - Hardmeele = 'Killed by hard meele', - Bullet = 'Killed by a bullet', - Knifes = 'Stabed to death', - Bitten = 'Bitten by an animal', - Fall = 'Fall from a high place', - Explosive = 'Die in explosives', - Gas = 'Gas', - Fire = 'Burn in fire', - Drown = 'Drown in water', - Caraccident = 'Died in a car accident', - Unknown = 'The source of death is unknown', - BlipName = 'Call #', - }, - - Progressbar = { - DutyOFF = 'Duty OFF...', - DutyON = 'Duty ON...', - }, - - Texts = { - [1] = {'[E] - To open the dress menu', 38, 'Open the dress menu', 'fa-solid fa-person-half-dress'}, - [2] = {'[E] - To open the armory menu', 38, 'Open the armory menu', 'fa-solid fa-shield-halved'}, - [3] = {'[E] - To open the garage menu', 38, 'Open the garage menu', 'fa-solid fa-warehouse'}, - [4] = {'[E] - To deposit the vehicle', 38, 'Deposit the vehicle', 'fa-solid fa-car'}, - [5] = {'[E] - To open the boss menu', 38, 'Open the boss menu', 'fa-solid fa-users-gear'}, - [6] = {'[E] - To use the Elevator', 38, 'Use the Elevator', 'fa-solid fa-elevator'}, - [7] = {'[E] - To Duty ON', '[E] - To Duty OFF', 38, 'To Duty', 'fa-solid fa-newspaper'}, - [8] = {'[E] - To use the Bed', 38, 'Use the Bed', 'fa-solid fa-bed-pulse'}, - [9] = {'[X] - To leave the Bed', 73, 'Leave the Bed', 'fa-solid fa-person'}, - [10] = {'[E] - To get Medical treatment', 38, 'Medical treatment', 'fa-solid fa-kit-medical'}, - }, - - -- Notify function EDITABLE >> cl_utils.lua - Notify = { - [1] = {"Ambulance Job", "You don't have permission!", 5000, "error"}, - [2] = {"Ambulance Job", "No vehicle available for your rank.", 5000, "error"}, - [3] = {"Ambulance Job", "Something is in the way!", 5000, "error"}, - [4] = {"Ambulance Job", "Invalid ID!", 5000, "error"}, - [5] = {"Ambulance Job", "Duty: ON", 5000, "info"}, - [6] = {"Ambulance Job", "Duty: OFF", 5000, "info"}, - [7] = {"Ambulance Job", "Citizen Call
Street: ", 6000, "info"}, - [8] = {"Ambulance Job", "You have successfully submitted!", 6000, "success"}, - [9] = {"Ambulance Job", "Please DO NOT SPAM!", 8000, "error"}, - [10] = {"Ambulance Job", "You must be on duty!", 8000, "error"}, - [11] = {"Ambulance Job", "You have successfully created a fine!", 6000, "success"}, - [12] = {"Ambulance Job", "You don't have enough money!", 5000, "error"}, - [13] = {"Ambulance Job", "You don't have the item!", 5000, "error"}, - [14] = {"Ambulance Job", "No one is near.", 5000, "error"}, - [15] = {"Ambulance Job", "No bed near you!", 5000, "error"}, - [16] = {"Ambulance Job", "You have successfully used the Heal Item!", 5000, "success"}, - [17] = {"Ambulance Job", "You do not need it!", 5000, "info"}, - [18] = {"Ambulance Job", "Somebody is already pushing the Stretcher!", 5000, "error"}, - [19] = {"Ambulance Job", "You paid for medical treatment:", 5000, "info"}, - [20] = {"Ambulance Job", "There isn't any stretcher near you!", 5000, "error"}, - [21] = {"Ambulance Job", "The vehicle is too far from you!", 5000, "error"}, - [22] = {"Ambulance Job", "The stretcher is in the vehicle!", 5000, "error"}, - [23] = {"Ambulance Job", "There is available medicer(s)!", 5000, "error"}, - [24] = {"Ambulance Job", "Revive Reward:", 5000, "success"}, - [25] = {"Ambulance Job", "This vehicle is not usable.", 5000, "error"}, - [26] = {"Ambulance Job", "The stretcher is not free!", 5000, "error"}, - [27] = {"Ambulance Job", "The bed is not free!", 5000, "error"}, - [28] = {"Ambulance Job", "
You spent:", 5000, "info"}, - [29] = {"Ambulance Job", "You got: ", 5000, "info"}, - [30] = {"Ambulance Job", "You have to wait to heal again!", 5000, "error"}, - [31] = {"Ambulance Job", "You started bleeding! Use a bandage and see a doctor!", 6000, "info"}, - [32] = {"Ambulance Job", "The closest player is alive!", 6000, "error"}, - }, - - Webhooks = { - Use = true, -- Use webhooks? true / false - Locale = { - ['ItemBought'] = 'Item Bought', - ['CallOpen'] = 'Call - Open', - ['CallClose'] = 'Call - Close', - ['InvoiceCreated'] = 'Invoice Created', - ['AdminCommand'] = 'Admin Command', - - ['PlayerName'] = 'Player Name', - ['AdminName'] = 'Admin Name', - ['Identifier'] = 'Identifier', - ['Items'] = 'Items', - ['Text'] = 'Text', - ['Callid'] = 'Call ID', - ['Coords'] = 'Coords', - ['Assistant'] = 'Assistant', - ['CloseReason'] = 'Close Reason', - ['Receiver'] = 'Receiver', - ['Amount'] = 'Amount', - ['Job'] = 'Job', - ['Reason'] = 'Reason', - ['Street'] = 'Street', - ['Coords'] = 'Coords', - ['Command'] = 'Command', - - ['Time'] = 'Time ⏲️' - }, - - -- To change a webhook color you need to set the decimal value of a color, you can use this website to do that - https://www.mathsisfun.com/hexadecimal-decimal-colors.html - Colors = { - ['ItemBought'] = 10155240, - ['CallOpen'] = 3145631, - ['CallClose'] = 16711680, - ['InvoiceCreated'] = 10155240, - ['AdminCommand'] = 10155240, - } - }, - - ----------------------------------------------------------- - -----------------------| UNIFORMS |------------------------ - ----------------------------------------------------------- - - CitizenWear = {label = "Citizen Wear"}, - - Uniforms = { - { - label = 'Ambulance Dress', -- Uniform Label - jobs = { - -- Job = job name, grades = grades - {job = 'ambulance', grades = {0,1,2,3}}, - -- More jobs - }, - male = { - ['t-shirt'] = {item = 15, texture = 0}, - ['torso2'] = {item = 13, texture = 3}, - ['arms'] = {item = 92, texture = 0}, - ['pants'] = {item = 24, texture = 5}, - ['shoes'] = {item = 9, texture = 0}, - ['hat'] = {item = 8, texture = 0}, - ['accessory'] = {item = 0, texture = 0}, - ['ear'] = {item = -1, texture = 0}, - ['decals'] = {item = 0, texture = 0}, - ['mask'] = {item = 0, texture = 0} - }, - female = { - ['t-shirt'] = {item = 75, texture = 3}, - ['torso2'] = {item = 73, texture = 0}, - ['arms'] = {item = 14, texture = 0}, - ['pants'] = {item = 37, texture = 5}, - ['shoes'] = {item = 1, texture = 0}, - ['hat'] = {item = -1, texture = 0}, - ['accessory'] = {item = 0, texture = 0}, - ['ear'] = {item = -1, texture = 0}, - ['decals'] = {item = 0, texture = 0}, - ['mask'] = {item = 0, texture = 0} - }, - }, - - { - label = 'Ambulance Dress', -- Uniform Label - jobs = { - -- Job = job name, grades = grades - {job = 'ambulance2', grades = {0,1,2,3}}, - -- More jobs - }, - male = { - ['t-shirt'] = {item = 15, texture = 0}, - ['torso2'] = {item = 13, texture = 3}, - ['arms'] = {item = 92, texture = 0}, - ['pants'] = {item = 24, texture = 5}, - ['shoes'] = {item = 9, texture = 0}, - ['hat'] = {item = 8, texture = 0}, - ['accessory'] = {item = 0, texture = 0}, - ['ear'] = {item = -1, texture = 0}, - ['decals'] = {item = 0, texture = 0}, - ['mask'] = {item = 0, texture = 0} - }, - female = { - ['t-shirt'] = {item = 75, texture = 3}, - ['torso2'] = {item = 73, texture = 0}, - ['arms'] = {item = 14, texture = 0}, - ['pants'] = {item = 37, texture = 5}, - ['shoes'] = {item = 1, texture = 0}, - ['hat'] = {item = -1, texture = 0}, - ['accessory'] = {item = 0, texture = 0}, - ['ear'] = {item = -1, texture = 0}, - ['decals'] = {item = 0, texture = 0}, - ['mask'] = {item = 0, texture = 0} - }, - }, - }, -} \ No newline at end of file diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/core/client-core.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/core/client-core.lua deleted file mode 100644 index af7446808..000000000 --- a/resources/[Developer]/[Anna]/brutal_ambulancejob/core/client-core.lua +++ /dev/null @@ -1,52 +0,0 @@ -Core = nil - -if Config['Core']:upper() == 'ESX' then - local _esx_ = 'new' -- 'new' / 'old' - - if _esx_ then - Core = exports['es_extended']:getSharedObject() - else - while Core == nil do - TriggerEvent('esx:getSharedObject', function(obj) Core = obj end) - Citizen.Wait(0) - end - end - - LoadedEvent = 'esx:playerLoaded' - ReviveEvent = 'esx_ambulancejob:revive' - JobUpdateEvent = 'esx:setJob' - TSCB = Core.TriggerServerCallback - - function GetPlayerJobDatas() - return Core.GetPlayerData().job - end - - function GetClosestPlayerFunction() - return Core.Game.GetClosestPlayer() - end - - function GetClosestVehicleFunction(coords, modelFilter) - return Core.Game.GetClosestVehicle(coords, modelFilter) - end - -elseif Config['Core']:upper() == 'QBCORE' then - Core = exports['qb-core']:GetCoreObject() - - LoadedEvent = 'QBCore:Client:OnPlayerLoaded' - ReviveEvent = 'hospital:client:Revive' - JobUpdateEvent = 'QBCore:Client:OnJobUpdate' - TSCB = Core.Functions.TriggerCallback - - function GetPlayerJobDatas() - return Core.Functions.GetPlayerData().job - end - - function GetClosestPlayerFunction() - return Core.Functions.GetClosestPlayer() - end - - function GetClosestVehicleFunction(coords, modelFilter) - return Core.Functions.GetClosestVehicle(coords, modelFilter) - end - -end \ No newline at end of file diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/core/desktop.ini b/resources/[Developer]/[Anna]/brutal_ambulancejob/core/desktop.ini deleted file mode 100644 index 03fd910e6..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/core/desktop.ini and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/core/server-core.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/core/server-core.lua deleted file mode 100644 index 70a6d4aec..000000000 --- a/resources/[Developer]/[Anna]/brutal_ambulancejob/core/server-core.lua +++ /dev/null @@ -1,255 +0,0 @@ -Core = nil - -if Config['Core']:upper() == 'ESX' then - local _esx_ = 'new' -- 'new' / 'old' - - if _esx_ == 'new' then - Core = exports['es_extended']:getSharedObject() - else - Core = nil - TriggerEvent('esx:getSharedObject', function(obj) Core = obj end) - while Core == nil do - Citizen.Wait(0) - end - end - - RESCB = Core.RegisterServerCallback - GETPFI = Core.GetPlayerFromId - RUI = Core.RegisterUsableItem - onPlayerDeath = 'esx:onPlayerDeath' - - function GetIdentifier(source) - local xPlayer = GETPFI(source) - while xPlayer == nil do - Citizen.Wait(1000) - xPlayer = GETPFI(source) - end - return xPlayer.identifier - end - - function GetPlayerByIdentifier(identifier) - return Core.GetPlayerFromIdentifier(identifier) - end - - function GetAccountMoney(source,account) - local xPlayer = GETPFI(source) - if account == 'bank' then - return xPlayer.getAccount(account).money - elseif account == 'money' then - return xPlayer.getMoney() - end - end - - function AddMoneyFunction(source, account, amount) - local xPlayer = GETPFI(source) - if account == 'bank' then - xPlayer.addAccountMoney('bank', amount) - elseif account == 'money' then - xPlayer.addMoney(amount) - end - end - - function RemoveAccountMoney(source, account, amount) - local xPlayer = GETPFI(source) - if account == 'bank' then - xPlayer.removeAccountMoney('bank', amount) - elseif account == 'money' then - xPlayer.removeMoney(amount) - end - end - - function GetItemCount(source, item) - local xPlayer = GETPFI(source) - local items = xPlayer.getInventoryItem(item) or (GetResourceState("codem-inventory") == "started" and exports['codem-inventory']:GetItemsByName(source, item)) - - if items ~= nil then - if _esx_ == 'new' then - if GetResourceState("codem-inventory") == "started" then - return exports['codem-inventory']:GetItemsTotalAmount(source, item) - else - return xPlayer.getInventoryItem(item).count - end - else - if string.sub(item, 0, 6):lower() == 'weapon' then - local loadoutNum, weapon = xPlayer.getWeapon(item:upper()) - - if weapon then - return true - else - return false - end - else - return xPlayer.getInventoryItem(item).count - end - end - else - print("^1PROBLEM!^3 The ^7items ^3are not created. Create them from our documentation. https://docs.brutalscripts.com/site/scripts/ambulance-job/installation-guide") - end - end - - function RemoveItem(source, item, amount) - local xPlayer = GETPFI(source) - if _esx_ == 'new' then - xPlayer.removeInventoryItem(item, amount) - else - if string.sub(item, 0, 6):lower() == 'weapon' then - xPlayer.removeWeapon(item) - else - xPlayer.removeInventoryItem(item, amount) - end - end - end - - function AddItem(source, item, count) - local xPlayer = GETPFI(source) - if _esx_ == 'new' then - xPlayer.addInventoryItem(item, count) - else - if string.sub(item, 0, 6):lower() == 'weapon' then - xPlayer.addWeapon(item, 90) - else - xPlayer.addInventoryItem(item, count) - end - end - end - - function GetPlayerNameFunction(source) - local name - if Config.SteamName then - name = GetPlayerName(source) - else - local xPlayer = GETPFI(source) - name = xPlayer.getName() or 'No Data' - end - return name - end - - function GetPlayerSex(source) - local xPlayer = GETPFI(source) - return xPlayer.get("sex") - end - - function GetPlayerJob(source) - local xPlayer = GETPFI(source) - return xPlayer.job.name - end - -elseif Config['Core']:upper() == 'QBCORE' then - - Core = exports['qb-core']:GetCoreObject() - - RESCB = Core.Functions.CreateCallback - GETPFI = Core.Functions.GetPlayer - RUI = Core.Functions.CreateUseableItem - - function GetIdentifier(source) - local xPlayer = GETPFI(source) - while xPlayer == nil do - Citizen.Wait(1000) - xPlayer = GETPFI(source) - end - return xPlayer.PlayerData.citizenid - end - - function GetPlayerByIdentifier(identifier) - return Core.Functions.GetPlayerByCitizenId(identifier) - end - - function GetPlayersFunction() - return Core.Functions.GetPlayers() - end - - function GetAccountMoney(source, account) - local xPlayer = GETPFI(source) - if account == 'bank' then - return xPlayer.PlayerData.money.bank - elseif account == 'money' then - return xPlayer.PlayerData.money.cash - end - end - - function AddMoneyFunction(source, account, amount) - local xPlayer = GETPFI(source) - if account == 'bank' then - xPlayer.Functions.AddMoney('bank', amount) - elseif account == 'money' then - xPlayer.Functions.AddMoney('cash', amount) - end - end - - function RemoveAccountMoney(source, account, amount) - local xPlayer = GETPFI(source) - if account == 'bank' then - xPlayer.Functions.RemoveMoney('bank', amount) - elseif account == 'money' then - xPlayer.Functions.RemoveMoney('cash', amount) - end - end - - function GetItemCount(source, item) - local xPlayer = GETPFI(source) - local items = xPlayer.Functions.GetItemByName(item) or (GetResourceState("qs-inventory") == "started" and exports['qs-inventory']:GetItemTotalAmount(source, item)) or (GetResourceState("codem-inventory") == "started" and exports['codem-inventory']:GetItemsByName(source, item)) - - if items ~= nil then - if GetResourceState("codem-inventory") == "started" then - return exports['codem-inventory']:GetItemsTotalAmount(source, item) - elseif GetResourceState("qs-inventory") == "started" then - return exports['qs-inventory']:GetItemTotalAmount(source, item) - else - return items.amount or 0 - end - else - print("^1PROBLEM!^3 The ^7items ^3are not created. Create them from our documentation. https://docs.brutalscripts.com/site/scripts/ambulance-job/installation-guide") - end - end - - function RemoveItem(source, item, amount) - local xPlayer = GETPFI(source) - xPlayer.Functions.RemoveItem(item, amount) - end - - function AddItem(source, item, count) - local xPlayer = GETPFI(source) - xPlayer.Functions.AddItem(item, count) - end - - function GetPlayerNameFunction(source) - local name - if Config.SteamName then - name = GetPlayerName(source) - else - local xPlayer = GETPFI(source) - name = xPlayer.PlayerData.charinfo.firstname..' '..xPlayer.PlayerData.charinfo.lastname - end - return name - end - - function GetPlayerSex(source) - local xPlayer = GETPFI(source) - local sex = xPlayer.PlayerData.charinfo.gender - - if sex == 0 then - sex = 'm' - else - sex = 'f' - end - - return sex - end - - function GetPlayerJob(source) - local xPlayer = GETPFI(source) - return xPlayer.PlayerData.job.name - end - - function GetPlayerDeathMetaData(source) - local xPlayer = GETPFI(source) - return xPlayer.PlayerData.metadata['isdead'] - end - - function SetPlayerDeathMetaData(source, isDead) - local xPlayer = GETPFI(source) - xPlayer.Functions.SetMetaData("isdead", isDead) - end - -end \ No newline at end of file diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/desktop.ini b/resources/[Developer]/[Anna]/brutal_ambulancejob/desktop.ini deleted file mode 100644 index 03fd910e6..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/desktop.ini and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/fxmanifest.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/fxmanifest.lua deleted file mode 100644 index 6d085050a..000000000 --- a/resources/[Developer]/[Anna]/brutal_ambulancejob/fxmanifest.lua +++ /dev/null @@ -1,77 +0,0 @@ -fx_version 'cerulean' -games { 'gta5' } -lua54 'yes' - -author 'Keres & Dév' -description 'Brutal Ambulance Job - store.brutalscripts.com' -version '1.4.5' - -client_scripts { - 'config.lua', - 'core/client-core.lua', - 'cl_utils.lua', - 'client/*.lua' -} - -server_scripts { - '@mysql-async/lib/MySQL.lua', - 'config.lua', - 'core/server-core.lua', - 'sv_utils.lua', - 'server/*.lua' -} - -shared_script { - '@ox_lib/init.lua' -} - -export 'getAvailableDoctorsCount' -export 'IsDead' - -ui_page "html/index.html" -files { - "html/index.html", - "html/style.css", - "html/script.js", - "html/assets/*.png", -} - -provides { 'esx_ambulancejob', 'qb-ambulancejob' } - -dependencies { - '/server:5181', -- ⚠️PLEASE READ⚠️; Requires at least SERVER build 5181 - '/gameBuild:2189', -- ⚠️PLEASE READ⚠️; Requires at least GAME build 2189. -} - -escrow_ignore { - 'config.lua', - 'sv_utils.lua', - 'cl_utils.lua', - 'core/client-core.lua', - 'core/server-core.lua', -} - ---[[ --- locked -escrow_ignore { - 'config.lua', - 'sv_utils.lua', - 'cl_utils.lua', - 'core/client-core.lua', - 'core/server-core.lua', -} - --- open -escrow_ignore { - 'config.lua', - 'sv_utils.lua', - 'cl_utils.lua', - 'core/client-core.lua', - 'core/server-core.lua', - 'client/client.lua', - 'client/commands.lua', - 'server/server.lua', - 'server/commands.lua', -} ---]] -dependency '/assetpacks' \ No newline at end of file diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/ambulance.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/ambulance.png deleted file mode 100644 index 0866cc23a..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/ambulance.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/arm_wrap.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/arm_wrap.png deleted file mode 100644 index c8f3875b2..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/arm_wrap.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/bandage.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/bandage.png deleted file mode 100644 index f4bd684ab..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/bandage.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/body.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/body.png deleted file mode 100644 index 1c78f70ca..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/body.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/body_bandage.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/body_bandage.png deleted file mode 100644 index 9f2e17023..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/body_bandage.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/body_w.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/body_w.png deleted file mode 100644 index f0cc704b9..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/body_w.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/head.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/head.png deleted file mode 100644 index b8c73b0b7..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/head.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/head_bandage.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/head_bandage.png deleted file mode 100644 index 145251f8a..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/head_bandage.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/head_w.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/head_w.png deleted file mode 100644 index 50aaf00e3..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/head_w.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_arm.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_arm.png deleted file mode 100644 index d8885a2f3..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_arm.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_arm_w.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_arm_w.png deleted file mode 100644 index 193c768d7..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_arm_w.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_leg.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_leg.png deleted file mode 100644 index f259b4b96..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_leg.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_leg_w.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_leg_w.png deleted file mode 100644 index 8e406cfdc..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/left_leg_w.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/leg_plaster.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/leg_plaster.png deleted file mode 100644 index d7bd7bf22..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/leg_plaster.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/main_body.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/main_body.png deleted file mode 100644 index bd294eb47..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/main_body.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/main_body_w.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/main_body_w.png deleted file mode 100644 index 9c03df1c9..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/main_body_w.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/medikit.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/medikit.png deleted file mode 100644 index 5922d6034..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/medikit.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_arm.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_arm.png deleted file mode 100644 index b870c1f75..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_arm.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_arm_w.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_arm_w.png deleted file mode 100644 index 0346c51d1..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_arm_w.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_leg.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_leg.png deleted file mode 100644 index 47c70f336..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_leg.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_leg_w.png b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_leg_w.png deleted file mode 100644 index 60b3278ce..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/assets/right_leg_w.png and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/desktop.ini b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/desktop.ini deleted file mode 100644 index 03fd910e6..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/desktop.ini and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/index.html b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/index.html deleted file mode 100644 index eb274e10a..000000000 --- a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/index.html +++ /dev/null @@ -1,285 +0,0 @@ - - - - - - - - - - - Brutal Ambulance Job - - - - -
-
-
-
-
- -
-
-

Interactions

-
-
-
-
-
-
-
-
-
- -
- -

SHOP

-
-
-
-
-

TOTAL: 0$

- -
-
-
-
-
-
-
-
-
- -
- -
-
-
- -
-
-
- -
-
- -
-
-
-
-
-
-
-
-
-
-
date 213 23
-
-
-
- -
-
-
-
-
Medicers
-
0
-
-
-
-
-
-
Rank
-
-
-
-
-
-
-
Salary
-
100$
-
-
-
- -
Welcome,
Name
-
-
-
- -
- - - - - - - - -
-
-
-
-
-
- -

MEDIC SYSTEM

- -

YOU

- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
-
-
-
-
- -
-
-
-
- -
-
-
-
- -
-

STATUS

-
NORMAL
-
- -
-

BPM 80

-
- -
This is why he is dead
-
Cause of death
-
- -
- - - - - - - - -
- -

MEDIC SYSTEM

- -

YOU

- -
-
- -
-
- -
-

STATUS

-
NORMAL
-
- -
-

BPM 80

-
-
- -
-
-
You can change the livery with the ⬅️ and ➡️
-
- -
-
-

YOU WILL DIE

-

REMAINED TIME

-
-

00:00

-
-
-

PRESS SPACE TO GET HELP

-

PRESS SPACE TO GET REVIVED

-
- -
-
Medic Call -
-
-
- -
- -
- - - - - - - - - \ No newline at end of file diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/script.js b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/script.js deleted file mode 100644 index d7bb0561c..000000000 --- a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/script.js +++ /dev/null @@ -1,1417 +0,0 @@ -ChoosedButton = 0 -InSubMenu = false -OpenedMDT = false -DeathTimer = false - -window.addEventListener('message', function(event) { - let data = event.data - - if (data.action === "OpenJobMenu"){ - InteractionsTable = data.interactionstable - CreateJobMenu() - } - else if (data.action === "OpenMDTMenu"){ - OpenedMDT = true - Job = data.job - Medicers = data.medicers - Street = data.street - PlayerName = data.name - MoneyForm = data.moneyform - document.getElementById("MDT").style.animation = "Show_panel 0.5s ease"; - $(".MDT").css("display","block") - $(".logo_img").attr('src', "assets/"+Job.job+".png") - InsertHomeData() - RefreshTime() - } - else if(data.action === "MDTGetCalls"){ - CitizenCalls = data.table - PlayerId = data.myid - CreateCitizenCalls() - } - else if(data.action === "MDTGetInvoiceTypes"){ - Invoices = data.table - TargetName = data.targetname - CreateInvoices() - TypeAhead() - } - else if(data.action === "OpenMedicerMenu"){ - Damages = data.damagestable - MedicerItems = data.items - Mediceryou = data.you - DeathStatus = data.deathstatus - Bpm = data.bpm - Gender = data.gender - DeathReason = data.deathreason - document.getElementById("medic_panel").style.animation = "Show_panel 0.5s ease"; - document.getElementById("medic_panel_me").style.animation = "Show_panel 0.5s ease"; - if (Mediceryou){ - $("#medic_panel_me").css("display","block") - } - else{ - $("#medic_panel").css("display","block") - } - CreateMedicerMenu() - } - else if (data.action === "OpenInteractionMenu"){ - InteractionTable = {"Type" : data.type, "Label" : data.label, "Table" : data.table} - CreateInteractionMenu() - } - else if (data.action === "OpenArmory"){ - CreateArmoryMenu() - } - else if (data.action === "OpenShopMenu"){ - ShopItems = data.items - MoneyForm = data.moneyform - Card = data.card - CreateShop(Card) - } - else if(data.action === "LiveryMenu"){ - document.getElementById("vehicle_livery").style.animation = "Appear_Menu 0.5s ease"; - $(".vehicle_livery").css("display", "block") - $("#livery").html("Livery: "+data.livery) - } - else if(data.action === "HideLiveryMenu"){ - document.getElementById("vehicle_livery").style.animation = "Hide_panel 0.5s ease"; - setTimeout(function(){ - $(".vehicle_livery").css("display","none") - }, 400) - } - else if(data.action === "CitizenCallMenu"){ - document.getElementById("create_citizen_call").style.animation = "Appear_Menu 0.5s ease"; - $("#create_citizen_call").css("display", "block") - } - else if (data.action === "DeathScreen"){ - $(".death_screen").css("display","block") - let AllTime = data.time - let Time = data.time - let DeathCall = data.call - let Request = data.request - let WaitTime = data.waittime - let AllWaitTime = data.waittime - DeathTimer = true - - function CountbackDeath(){ - if (Time > 0){ - $(`.death_screen .time_con .time`).html(fancyTimeFormat(Time)) - $(`.death_screen .time_con .time_line`).css("width", (Time/AllTime*100)+"%") - } - else{ - $(`.death_screen .time_con .time`).html(fancyTimeFormat(WaitTime)) - $(`.death_screen .time_con .time_line`).css("width", (WaitTime/AllWaitTime*100)+"%") - } - setTimeout(function(){ - if ((Time > 0 || WaitTime > 0) && DeathTimer){ - if (Time > 0){ - Time = Time - 1 - } - else{ - WaitTime = WaitTime - 1 - if(DeathCall){ - document.getElementById("d_info2").style.animation = "none"; - document.getElementById("hbtn_press2").style.animation = "none"; - $("#d_info2").css("display","block") - } - else{ - document.getElementById("d_info").style.animation = "htext_anim 2s ease-in-out"; - document.getElementById("hbtn_press").style.animation = "hbtn_anim 2s ease-in-out"; - setTimeout(function(){ - $("#d_info").css("display","none") - document.getElementById("d_info2").style.animation = "none"; - document.getElementById("hbtn_press2").style.animation = "none"; - $("#d_info2").css("display","block") - }, 2000) - } - } - CountbackDeath() - } - },1000) - } - - if(Request){ - document.getElementById("d_info2").style.animation = "htext_anim 2s ease-in-out"; - document.getElementById("hbtn_press2").style.animation = "hbtn_anim 2s ease-in-out"; - setTimeout(function(){ - $("#d_info2").css("display","none") - }, 2000) - } - - if (DeathCall){ - document.getElementById("d_info").style.animation = "htext_anim 2s ease-in-out"; - document.getElementById("hbtn_press").style.animation = "hbtn_anim 2s ease-in-out"; - setTimeout(function(){ - $("#d_info").css("display","none") - }, 2000) - } - else{ - document.getElementById("d_info2").style.animation = "none"; - document.getElementById("d_info").style.animation = "none"; - document.getElementById("hbtn_press").style.animation = "none"; - document.getElementById("hbtn_press2").style.animation = "none"; - $("#d_info").css("display","block") - $("#d_info2").css("display","none") - CountbackDeath() - } - } - else if (data.action === "DeathScreenHide"){ - DeathTimer = false - $(`.death_screen`).css("display", "none") - } - else if (data.action === "ControlReleased"){ - Control = data.control - if(Control === "up" || Control === "down" ){ - ChangeFocus(Control) - } - else if(Control === "enter"){ - document.getElementById("circle_"+ChoosedButton).click() - } - else if(Control === "backspace"){ - if(InSubMenu){ - BackJobMenu() - } - else{ - Close() - } - } - } - else if (data.action === "close"){ - Close() - } -}) - -document.onkeydown = function(data) { - if (event.key == 'Escape') { - Close() - } -} - -function Close(){ - CloseMDT() - CloseShop() - CloseCitizenCall() - HideJobMenu() - CloseMedicPanel() - HideInteractionMenu() - setTimeout(function(){ - $('.modal').modal('hide') - },500) - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"close"})) -} - -///////////////////////////////////////////////////////////////////// | _ \ __ ) \ | ____| \ | | | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -///////////////////////////////////////////////////////////////////// | | | __ \ |\/ | __| \ | | | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -///////////////////////////////////////////////////////////////////// \ | | | | | | | | |\ | | | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -///////////////////////////////////////////////////////////////////// \___/ \___/ ____/ _| _| _____|_| \_|\___/ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ - -function ChangeFocus(direction){ - if(direction === "up"){ - if(InSubMenu === false){ - if(InteractionsTable.length >= ChoosedButton +2){ - ChoosedButton++ - } - else if(InteractionsTable.length === ChoosedButton +1){ - ChoosedButton = 0 - } - } - else{ - if(InteractionsTable[SubNumber].table.length > ChoosedButton + 1){ - ChoosedButton++ - } - else if(InteractionsTable[SubNumber].table.length === ChoosedButton +1){ - ChoosedButton = 0 - } - } - } - else{ - if(InSubMenu === false){ - if(ChoosedButton === 0){ - ChoosedButton = InteractionsTable.length -1 - } - else{ - ChoosedButton = ChoosedButton -1 - } - } - else{ - if(ChoosedButton === 0){ - ChoosedButton = InteractionsTable[SubNumber].table.length -1 - } - else{ - ChoosedButton = ChoosedButton -1 - } - } - } - - if(InSubMenu){ - for(let i=0; i${InteractionsTable[i].icon} - `) - } - else{ - $(".circle_container").append(` - - `) - } - - $(".job_menu #circle_"+i).css("transform", "rotate("+Rot+"deg) translate(150px) rotate("+Rot*(-1)+"deg)") - Rot = Rot - Angle - } - document.getElementById("circle_"+ChoosedButton).classList.add("hovered_circle") - $(".circles_label").html(InteractionsTable[0].label) -} - -function HideJobMenu(){ - document.getElementById("job_menu").style.animation = "HideJobMenu 1s ease"; - setTimeout(function(){ - $(".job_menu").css("display","none") - },900) -} - -function ChangeJobButtons(id){ - InSubMenu = true - document.getElementById("job_menu").style.animation = "ChangeJobMenu 0.8s ease"; - - SubNumber = id.split('_').pop(); - let Num_elements = InteractionsTable[SubNumber].table.length - let Angle = 144/(Num_elements-1) - let Rot = -108 - - setTimeout(function(){ - $(".circle_container").html("") - for(let i=0; i${InteractionsTable[SubNumber].table[i].icon} - `) - $(".job_menu #circle_"+i).css("transform", "rotate("+Rot+"deg) translate(150px) rotate("+Rot*(-1)+"deg)") - Rot = Rot - Angle - } - ChoosedButton = 0 - document.getElementById("circle_"+ChoosedButton).classList.add("hovered_circle") - $(".circles_label").html(InteractionsTable[SubNumber].table[0].label) - },400) - - if (SubNumber == 2){ - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"JobMenuObject"})) - } -} - -function BackJobMenu(){ - InSubMenu = false - let Num_elements = InteractionsTable.length - let Angle = 144/(Num_elements-1) - let Rot = -108 - - document.getElementById("job_menu").style.animation = "BackJobMenu 0.8s ease"; - - setTimeout(function(){ - $(".circle_container").html("") - for(let i=0; i${InteractionsTable[i].icon} - `) - } - else{ - $(".circle_container").append(` - - `) - } - $(".job_menu #circle_"+i).css("transform", "rotate("+Rot+"deg) translate(150px) rotate("+Rot*(-1)+"deg)") - Rot = Rot - Angle - } - ChoosedButton = 0 - document.getElementById("circle_"+ChoosedButton).classList.add("hovered_circle") - $(".circles_label").html(InteractionsTable[0].label) - },400) -} - -function SendBackIntButton(id, value){ - let idnumber = id.split('_').pop() - - if (value == true){ - for(let i=0; i -
- -
- - `) - if (InteractionTable.Table[i].label.length > 17){ - $("#"+InteractionTable.Table[i].id).css("font-size", "15px") - } - } - document.getElementById("interactions").style.animation = "ShowIneractionMenu 0.7s ease"; - $(".interactions").css("display","block") -} - -function SetDress(id){ - Close() - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"interactionmenu", id, table:InteractionTable})) -} - -function CreateArmoryMenu(){ - $(".interactions h2").html("Storage") - - $(".int_con_sec").html("") - $(".int_con_sec").html(` -
-
- -
-
-
-
- -
-
- `) - - document.getElementById("interactions").style.animation = "ShowIneractionMenu 0.7s ease"; - $(".interactions").css("display","block") -} - -function Armory(){ - Close() - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"armory"})) -} - -function Buy(){ - HideInteractionMenu() - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"armory-shop"})) -} - -function HideInteractionMenu(){ - document.getElementById("interactions").style.animation = "HideInteractionMenu 0.7s ease"; - setTimeout(function(){ - $(".interactions").css("display","none") - },680) -} - -///////////////////////////////////////////////////////////////// SHOP MENU \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ - -function CreateShop(value){ - $(".shop").css("display", "block") - setTimeout(function(){ - $(".shop").css("scale", "1") - }, 50) - - if (value == true){ - $(".slider_btn").css("display", "block") - $("#shop_back").css("display", "block") - } - else{ - $(".slider_btn").css("display", "none") - $("#shop_back").css("display", "none") - } - - $(".shop_elements_container").html("") - for(let i=0; i -
-
-
${ShopItems[i].price+MoneyForm}
- -

${ShopItems[i].label}

-
-
- -
-
-
-
- - `) - } -} - -function BuyInShop(){ - BuyItems = [] - for (let i = 0; i < ShopItems.length; i++) { - if (document.getElementById(ShopItems[i].item).value > 0){ - BuyItems.push([ShopItems[i].item, document.getElementById(ShopItems[i].item).value, ShopItems[i].price, ShopItems[i].label]) - } - } - - if (BuyItems.length > 0){ - let Element = document.getElementById("slider_shop") - let Left = Element.offsetLeft - if (Left == 0){ - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"BuyInShop", BuyItems, paytype:"money"})) - } - else{ - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"BuyInShop", BuyItems, paytype:"bank"})) - } - } - - setTimeout(function(){ - for (let i = 0; i < ShopItems.length; i++) { - document.getElementById(ShopItems[i].item).value = 0 - } - changemoney() - }, 200) -} - -function changemoney(){ - let AllMoney = 0 - for (let i = 0; i < ShopItems.length; i++) { - AllMoney += ShopItems[i].price * document.getElementById(ShopItems[i].item).value - } - $('.checkout_container h3').html('TOTAL: '+AllMoney+''+MoneyForm+'') -} - -function ChangeSliderbtn(id){ - if (id == "shop_slider"){ - let Element = document.getElementById("slider_shop") - let Left = Element.offsetLeft - if (Left == 0){ - Element.style.left = "50%" - } - else{ - Element.style.left = "0%" - } - } - else if (id == "MDT_slider"){ - let Element = document.getElementById("slider_MDT") - let Left = Element.offsetLeft - if (Left == 0){ - Element.style.left = "50%" - ChangeSearch("vehicles") - } - else{ - Element.style.left = "0%" - ChangeSearch("people") - } - } -} - -function CloseShop(){ - $(".shop").css("scale", "0") - setTimeout(function(){ - $(".shop").css("display", "none") - }, 600) -} - -///////////////////////////////////////////////////////////////////// \ | __ \ __ __| \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -///////////////////////////////////////////////////////////////////// |\/ | | | | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -///////////////////////////////////////////////////////////////////// | | | | | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -///////////////////////////////////////////////////////////////////// _| _| ____/ _| \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ - -function CloseMDT(){ - document.getElementById("MDT").style.animation = "Hide_panel 0.5s ease"; - setTimeout(function(){ - $(".MDT").css("display","none") - if (OpenedMDT){ - SwitchPage("home") - } - OpenedMDT = false - }, 400) -} - -function SwitchPage(id){ - - if (id == "home"){ - MoveBackLogo() - $(".page_data_container").html(` -
-
-
-
-
-
date 213 23
-
-
-
- -
-
-
-
-
Medicers
-
0
-
-
-
-
-
-
Rank
-
-
-
-
-
-
-
Salary
-
100$
-
-
-
- -
Welcome,
Name
- - `) - InsertHomeData() - } - else if (id == "invoices"){ - MoveLogo() - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"MDTInvoices", type:"get"})) - $(".page_data_container").html(` -
-
-

Create an invoice

-
- -
-
- -
- -

Give an invoice

-
- -
-
-
-
-

-

-

0$

-
- -
-
-

Invoices

-
-
- -
-
-
- `) - } - else if (id == "sos_alert"){ - MoveLogo() - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"MDTCitizenCall", type:"getcalls"})) - $(".page_data_container").html(`InsertHomeData -
-
-
-
- -
-
- `) - } -} - -function InsertHomeData(){ - $("#available_medicers").html(Medicers) - $("#player_rang").html(Job.label) - $("#salary").html(Job.salary+MoneyForm) - $("#job_name").html(Job.name+" - Database") - $("#street").html(` `+Street[0]+",
"+Street[1]) - $(".welcome_text .hand_written").html(PlayerName) - - if (Job.label.length > 6){ - $(".home_stat_con .small").css("font-size", "30px") - } -} - -function RefreshTime(){ - if (OpenedMDT){ - setTimeout(function(){ - RefreshTime() - },100) - } - - var date=new Date(); - var day=date.getDate(); - var month=date.getMonth()+1; - var year=date.getFullYear(); - $("#home_date").html(day+"/"+month+"/"+year+"
"+date.toLocaleTimeString()); -} - -function MoveLogo(){ - $(".logo_img").css({ - "height": "80px", - "left": "15.2px", - }) -} - -function MoveBackLogo(){ - $(".logo_img").css({ - "height": "200px", - "left": "870px", - }) -} - -function CreateCitizenCalls(){ - $(".alert_container_out").html(` -
- `) - let IsRealCall = false - if (CitizenCalls.length > 0){ - for (let i = 0; i < CitizenCalls.length; i++) { - if (CitizenCalls[i].closed == false){ - IsRealCall = true - if (CitizenCalls[i].medicers.length > 0){ - $(".alert_container").append(` -
-
-
-
-

Citizen call

-
${CitizenCalls[i].medicers.length}
-
-
${CitizenCalls[i].text}
-
-
- -
-
-
${CitizenCalls[i].street}
-
-
-
-
- `) - } - else{ - $(".alert_container").append(` -
-
-
-
-

Citizen call

-
${CitizenCalls[i].medicers.length}
-
-
${CitizenCalls[i].text}
-
-
- -
-
-
${CitizenCalls[i].street}
-
-
-
-
- `) - } - } - - if (CitizenCalls[i].medicers.length > 0){ - $("#alert_element_"+i).css("background-image", "linear-gradient(var(--main_color_darker), var(--main_color))") - $("#alert_element_"+i+" .main_text").css("background-image", "linear-gradient(rgba(119, 45, 35, 0.548), rgba(175, 67, 53, 0.548))") - } - } - } - else{ - $(".alert_container_out").html(` -

There isn't any call

- `) - } - - if (IsRealCall == false){ - $(".alert_container_out").html(` -

There isn't any call

- `) - } -} - -function CreateInvoices(){ - document.getElementById("target_player").innerHTML = TargetName - $(".invoices_container").html(`
`) - for (let i = 0; i < Invoices.length; i++) { - $(".invoices_container").append(` -
-
-
-
-

${Invoices[i].label}

-
-
-

${Invoices[i].amount+MoneyForm}

-
-
-
Delete
-
-
-
- `) - } -} - -function RefreshCallModul(id){ - CallNumber = id.split('_')[1] - let Accepted = false - - $(".involved_container").html("") - for (let i = 0; i < CitizenCalls[CallNumber].medicers.length; i++) { - if (CitizenCalls[CallNumber].medicers[i].id == PlayerId){ - Accepted = true - } - $(".involved_container").append(` -
- ${CitizenCalls[CallNumber].medicers[i].name} -
- `) - if (i +1 < CitizenCalls[CallNumber].medicers.length){ - $(".involved_container").append(` -
- `) - } - } - - if (CitizenCalls[CallNumber].closed == false){ - if (Accepted == true){ - $(".call_actions_container").html(` -
- -
- - `) - } - } - else{ - $(".call_actions_container").html(` -

Reason to close

-
- -
- `) - } -} - -function AcceptCall(){ - $(".call_actions_container").html(` -
- -
- - `) - - let tableid = +CallNumber + +1 - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"MDTCitizenCall", type:"accept", tableid})) - - setTimeout(function(){ - $(".involved_container").html("") - for (let i = 0; i < CitizenCalls[CallNumber].medicers.length; i++) { - $(".involved_container").append(` -
- ${CitizenCalls[CallNumber].medicers[i].name} -
- `) - if (i +1 < CitizenCalls[CallNumber].medicers.length){ - $(".involved_container").append(` -
- `) - } - } - },700) -} - -function CloseCall(){ - let tableid = +CallNumber + +1 - let text = document.getElementById("in_call_reason").value - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"MDTCitizenCall", type:"close", tableid, text})) - - document.getElementById("in_call_reason").value = "" -} - -function SendPinOnMap(){ - Close() - let tableid = +CallNumber + +1 - let coords = CitizenCalls[CallNumber].coords - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"MDTCitizenCall", type:"blip", coords, tableid})) -} - -function RefreshCloseCallBTN(){ - let reason = document.getElementById("in_call_reason").value - - if (reason.length > 0){ - document.getElementById("close_call").disabled = false - } - else{ - document.getElementById("close_call").disabled = true - } -} - -function ShowDeleteBTN(id){ - if (window.getComputedStyle(document.getElementById("invoice_row_"+id)).width == "680px"){ - $("#invoice_row_"+id).css("width", "550px") - $("#invoice_row_"+id+" .name").css("font-size", "25px") - } - else{ - $("#invoice_row_"+id).css("width", "680px") - $("#invoice_row_"+id+" .name").css("font-size", "32px") - } -} - -function RefreshCreateInvoiceBTN(){ - let name = document.getElementById("invoice_name").value - let value = document.getElementById("invoice_value").value - - if (name.length > 0 && value.length > 0){ - document.getElementById("create_invoice_btn").disabled = false - } - else{ - document.getElementById("create_invoice_btn").disabled = true - } -} - -function CreateInvoice(){ - let label = document.getElementById("invoice_name").value - let amount = document.getElementById("invoice_value").value - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"MDTInvoices", type:"create", label, amount})) - document.getElementById("invoice_name").value = "" - document.getElementById("invoice_value").value = "" - setTimeout(function(){ - SwitchPage("invoices") - }, 200) -} - -function DeleteInvoice(id){ - number = Invoices[(id.split('_')[1])].id - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"MDTInvoices", type:"delete", number})) - setTimeout(function(){ - SwitchPage("invoices") - }, 200) -} - -function RefreshGiveInvoiceBTN(){ - let name = document.getElementById("in_give_invoice").value - let found = false - for(let i = 0; i < Invoices.length; i++){ - if (name === Invoices[i].label){ - document.getElementById("invoice_price").innerHTML = Invoices[i].amount + MoneyForm - found = true - } - } - - if (found){ - if (TargetName != "-"){ - document.getElementById("give_invoice_btn").disabled = false - } - } - else{ - document.getElementById("give_invoice_btn").disabled = true - document.getElementById("invoice_price").innerHTML = "0"+MoneyForm - } -} - -function GiveInvoice(){ - let label = document.getElementById("in_give_invoice").value - let amount - for(let i = 0; i < Invoices.length; i++){ - if (label === Invoices[i].label){ - amount = Invoices[i].amount - } - } - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"MDTInvoices", type:"give", label, amount})) - document.getElementById("in_give_invoice").value = "" - document.getElementById("invoice_price").innerHTML = "0"+MoneyForm -} - -function TypeAhead(){ - TypeAheadList = [] - for(let i = 0; i < Invoices.length; i++){ - TypeAheadList.push(Invoices[i].label) - } - - var $input = $(".typeahead"); - $input.typeahead({ - autocomplete: true, - source: TypeAheadList, - });CreateMedicerMenu - - $input.change(function() { - var current = $input.typeahead("getActive"); - matches = []; - - if (current) { - if (current.name == $input.val()) { - matches.push(current.name); - } - } - }); -} - -function RefreshCreateCallBTN(){ - let in_citizen_call_reason = document.getElementById("in_citizen_call_reason").value - - if (in_citizen_call_reason.length > 0){ - document.getElementById("create_call_btn").disabled = false - } - else{ - document.getElementById("create_call_btn").disabled = true - } -} - -function CreateCall(){ - let text = document.getElementById("in_citizen_call_reason").value - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"MDTCitizenCall", type:"create", text})) - Close() - document.getElementById("in_citizen_call_reason").value = "" -} - -function CloseCitizenCall(){ - document.getElementById("create_citizen_call").style.animation = "Hide_panel 0.5s ease"; - setTimeout(function(){ - $("#create_citizen_call").css("display","none") - }, 400) -} - -///////////////////////////////////////////////////////////// MEDIC PANEL \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ - -function CreateMedicerMenu(){ - if (Gender == 0){ - $(".main_body").attr('src', "assets/main_body_w.png") - $("#head").attr('src', "assets/head_w.png") - $("#body").attr('src', "assets/body_w.png") - $("#right_arm").attr('src', "assets/right_arm_w.png") - $("#left_arm").attr('src', "assets/left_arm_w.png") - $("#right_leg").attr('src', "assets/right_leg_w.png") - $("#left_leg").attr('src', "assets/left_leg_w.png") - } - else{ - $(".main_body").attr('src', "assets/main_body.png") - $("#head").attr('src', "assets/head.png") - $("#body").attr('src', "assets/body.png") - $("#right_arm").attr('src', "assets/right_arm.png") - $("#left_arm").attr('src', "assets/left_arm.png") - $("#right_leg").attr('src', "assets/right_leg.png") - $("#left_leg").attr('src', "assets/left_leg.png") - } - - DisplayOrNot(Damages.head, "head") - DisplayOrNot(Damages.body, "body") - DisplayOrNot(Damages.larm, "left_arm") - DisplayOrNot(Damages.rarm, "right_arm") - DisplayOrNot(Damages.lleg, "left_leg") - DisplayOrNot(Damages.rleg, "right_leg") - - if (DeathStatus){ - $(".status_con .box").css("color", "rgb(223, 62, 62)") - $(".status_con .box").html("COMATOSE") - $(".cause_of_death").css("display", "block") - $(".des").css("display", "block") - $(".cause_of_death").html(DeathReason) - } - else{ - $(".cause_of_death").css("display", "none") - $(".des").css("display", "none") - if (Damages.bleeding){ - $(".status_con .box").css("color", "rgb(223, 62, 62)") - $(".status_con .box").html("BLEEDING") - } - else{ - $(".status_con .box").css("color", "rgba(127, 255, 212, 0.87)") - $(".status_con .box").html("NORMAL") - } - } - - - if (Mediceryou){ - $(".patient").html("YOU") - - dragMedicElement(document.getElementById("blood_me"), "blood") - DisplayMedicerItem(MedicerItems.Bandage, "blood_me") - } - else{ - $(".patient").html("PLAYER") - - dragMedicElement(document.getElementById("head_heal"),"head_heal") - dragMedicElement(document.getElementById("body_heal"), "body_heal") - dragMedicElement(document.getElementById("arm_heal"), "arm_heal") - dragMedicElement(document.getElementById("leg_heal"), "leg_heal") - dragMedicElement(document.getElementById("blood"), "blood") - dragMedicElement(document.getElementById("revive"), "revive") - - DisplayMedicerItem(MedicerItems.Head, "head_heal") - DisplayMedicerItem(MedicerItems.Body, "body_heal") - DisplayMedicerItem(MedicerItems.Arms, "arm_heal") - DisplayMedicerItem(MedicerItems.Legs, "leg_heal") - DisplayMedicerItem(MedicerItems.Bandage, "blood") - DisplayMedicerItem(MedicerItems.Medikit, "revive") - } - - $(".bpm_con .box").html(Bpm) -} - -function DisplayMedicerItem(value, id){ - if (value != false){ - $("#"+id).css("display", "block") - document.getElementById(id).src = "assets/"+value+".png" - } - else{ - $("#"+id).css("display", "none") - } -} - -function DisplayOrNot(value, id){ - if (value){ - $("#"+id).css("display", "block") - $("#"+id+"2").css("display", "block") - } - else{ - $("#"+id).css("display", "none") - $("#"+id+"2").css("display", "none") - } -} - -function CloseMedicPanel(){ - document.getElementById("medic_panel").style.animation = "Hide_panel 0.5s ease"; - document.getElementById("medic_panel_me").style.animation = "Hide_panel 0.5s ease"; - setTimeout(function(){ - $(".medic_panel").css("display","none") - }, 400) -} - -OGPos = {"head_heal": {x: null, y:null}, "body_heal": {x: null, y:null}, "arm_heal": {x: null, y:null}, "leg_heal": {x: null, y:null},"blood": {x: 12, y: 12},"revive": {x: null, y:null}} - -function dragMedicElement(elmnt, item) { - var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; - - if (OGPos[item].x == null){ - OGPos[item].x = elmnt.offsetLeft - OGPos[item].y = elmnt.offsetTop - } - - elmnt.onmousedown = dragMouseDown - - function dragMouseDown(e) { - e = e || window.event; - e.preventDefault(); - - pos3 = e.clientX; - pos4 = e.clientY; - document.onmouseup = closeDragElement; - document.onmousemove = elementDrag; - } - - function elementDrag(e) { - e = e || window.event - e.preventDefault() - - pos1 = pos3 - e.clientX - pos2 = pos4 - e.clientY - pos3 = e.clientX - pos4 = e.clientY - - elmnt.style.opacity = "0.8" - - elmnt.style.top = (elmnt.offsetTop - pos2) + "px" - elmnt.style.left = (elmnt.offsetLeft - pos1) + "px" - - if (Mediceryou){ - if (elementsOverlap(elmnt, document.getElementById("medic_panel_me")) == false){ - closeDragElement() - } - } - else{ - if (elementsOverlap(elmnt, document.getElementById("medic_panel")) == false){ - closeDragElement() - } - } - - } - - function closeDragElement() { - UseMedicItem(elmnt, item) - elmnt.style.opacity = "1" - document.onmouseup = null; - document.onmousemove = null; - } -} - -function UseMedicItem(elmnt, item){ - let elm = elmnt - if (Damages.bleeding == false && DeathStatus == false){ - if (item == "head_heal"){ - if (elementsOverlap(elm, document.getElementById("head_box")) && Damages.head){ - ItemAnim(elm, item) - } - else if(elementsOverlap(elm, document.getElementById("head_box")) && Damages.head == false){ - WrongItemAnim(elm, item) - } - else{ - elm.style.top = OGPos[item].y + "px" - elm.style.left = OGPos[item].x + "px" - } - } - else if (item == "body_heal"){ - if (elementsOverlap(elm, document.getElementById("body_box")) && Damages.body){ - ItemAnim(elm, item) - } - else if(elementsOverlap(elm, document.getElementById("body_box")) && Damages.body == false){ - WrongItemAnim(elm, item) - } - else{ - elm.style.top = OGPos[item].y + "px" - elm.style.left = OGPos[item].x + "px" - } - } - else if (item == "arm_heal"){ - if (elementsOverlap(elm, document.getElementById("right_arm_box")) && Damages.rarm){ - ItemAnim(elm, item, "right") - } - else if(elementsOverlap(elm, document.getElementById("right_arm_box")) && Damages.rarm == false){ - WrongItemAnim(elm, item) - } - else if (elementsOverlap(elm, document.getElementById("left_arm_box")) && Damages.larm){ - ItemAnim(elm, item, "left") - } - else if(elementsOverlap(elm, document.getElementById("left_arm_box")) && Damages.larm == false){ - WrongItemAnim(elm, item) - } - else{ - elm.style.top = OGPos[item].y + "px" - elm.style.left = OGPos[item].x + "px" - } - } - else if (item == "leg_heal"){ - if (elementsOverlap(elm, document.getElementById("right_leg_box")) && Damages.rleg){ - ItemAnim(elm, item, "right") - } - else if(elementsOverlap(elm, document.getElementById("right_leg_box")) && Damages.rleg == false){ - WrongItemAnim(elm, item) - } - else if (elementsOverlap(elm, document.getElementById("left_leg_box")) && Damages.lleg){ - ItemAnim(elm, item, "left") - } - else if(elementsOverlap(elm, document.getElementById("left_leg_box")) && Damages.lleg == false){ - WrongItemAnim(elm, item) - } - else{ - elm.style.top = OGPos[item].y + "px" - elm.style.left = OGPos[item].x + "px" - } - } - else if (item == "blood"){ - if (elementsOverlap(elm, document.getElementById("body_box")) || elementsOverlap(elm, document.getElementById("body_box2")) || elementsOverlap(elm, document.getElementById("right_leg_box")) || elementsOverlap(elm, document.getElementById("left_leg_box")) || elementsOverlap(elm, document.getElementById("right_arm_box")) || elementsOverlap(elm, document.getElementById("left_arm_box")) || elementsOverlap(elm, document.getElementById("head_box"))){ - WrongItemAnim(elm, item) - } - else{ - elm.style.top = OGPos[item].y + "px" - elm.style.left = OGPos[item].x + "px" - } - } - else if (item == "revive"){ - if (elementsOverlap(elm, document.getElementById("body_box"))){ - WrongItemAnim(elm, item) - } - else{ - elm.style.top = OGPos[item].y + "px" - elm.style.left = OGPos[item].x + "px" - } - } - } - else if(DeathStatus){ - if (item == "revive"){ - if (elementsOverlap(elm, document.getElementById("body_box"))){ - ItemAnim(elm, item) - } - else{ - elm.style.top = OGPos[item].y + "px" - elm.style.left = OGPos[item].x + "px" - } - } - else{ - elm.style.top = OGPos[item].y + "px" - elm.style.left = OGPos[item].x + "px" - } - } - else{ - if (item == "blood"){ - if (elementsOverlap(elm, document.getElementById("body_box")) || elementsOverlap(elm, document.getElementById("body_box2")) || elementsOverlap(elm, document.getElementById("right_leg_box")) || elementsOverlap(elm, document.getElementById("left_leg_box")) || elementsOverlap(elm, document.getElementById("right_arm_box")) || elementsOverlap(elm, document.getElementById("left_arm_box")) || elementsOverlap(elm, document.getElementById("head_box")) && Damages.bleeding){ - ItemAnim(elm, item) - } - else if (elementsOverlap(elm, document.getElementById("body_box")) || elementsOverlap(elm, document.getElementById("body_box2")) || elementsOverlap(elm, document.getElementById("right_leg_box")) || elementsOverlap(elm, document.getElementById("left_leg_box")) || elementsOverlap(elm, document.getElementById("right_arm_box")) || elementsOverlap(elm, document.getElementById("left_arm_box")) || elementsOverlap(elm, document.getElementById("head_box")) && Damages.bleeding == false){ - WrongItemAnim(elm, item) - } - else{ - elm.style.top = OGPos[item].y + "px" - elm.style.left = OGPos[item].x + "px" - } - } - else{ - WrongItemAnim(elm, item) - } - } -} - -function ItemAnim(elm, item, part){ - elm.style.animation = 'none'; - elm.offsetHeight; - elm.style.animation = "itemuseanim 1.2s"; - setTimeout(function(){ - elm.style.top = OGPos[item].y + "px" - elm.style.left = OGPos[item].x + "px" - elm.style.animation = 'none'; - Close() - },1200) - - $.post('https://'+GetParentResourceName()+'/UseButton', JSON.stringify({action:"MedicerMenu", type:"useitem", item, you:Mediceryou, part})) -} - -function WrongItemAnim(elm, item){ - elm.style.animation = 'none'; - elm.offsetHeight; - elm.style.animation = "itemnotuseanim 0.8s"; - setTimeout(function(){ - elm.style.top = OGPos[item].y + "px" - elm.style.left = OGPos[item].x + "px" - elm.style.animation = 'none'; - },800) -} - -/////////////////////////////////////////////////////////////// BASIC FUNCTIONS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ - - -function isNumber(evt) { - evt = (evt) ? evt : window.event - var charCode = (evt.which) ? evt.which : evt.keyCode - if (charCode > 31 && (charCode < 48 || charCode > 57)) { - return false - } - return true -} - -function setlenght(id) { - if (document.getElementById(id).value.length === 2 && document.getElementById(id).value[0] == 0){ - document.getElementById(id).value = document.getElementById(id).value.substring(1) - } - if (document.getElementById(id).value.length === 4){ - document.getElementById(id).value = document.getElementById(id).value.substring(1) - } - if (document.getElementById(id).value.length === 0){ - document.getElementById(id).value = 0 - } - changemoney() - return true -} - -function dragElement(elmnt) { - var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; - - elmnt.onmousedown = dragMouseDown; - - function dragMouseDown(e) { - e = e || window.event; - e.preventDefault(); - - pos3 = e.clientX; - pos4 = e.clientY; - document.onmouseup = closeDragElement; - document.onmousemove = elementDrag; - } - - function elementDrag(e) { - e = e || window.event; - e.preventDefault(); - - pos1 = pos3 - e.clientX; - pos2 = pos4 - e.clientY; - pos3 = e.clientX; - pos4 = e.clientY; - - elmnt.style.opacity = "0.8" - - elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; - elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; - } - - function closeDragElement() { - elmnt.style.opacity = "1" - document.onmouseup = null; - document.onmousemove = null; - } -} - -function elementsOverlap(el1, el2) { - const domRect1 = el1.getBoundingClientRect(); - const domRect2 = el2.getBoundingClientRect(); - - return !( - domRect1.top+50 > domRect2.bottom || - domRect1.right-50 < domRect2.left || - domRect1.bottom-50 < domRect2.top || - domRect1.left+50 > domRect2.right - ); -} - -function GetTime(createdtime){ - let time = Math.round(Date.now() / (1000 * 60)) - createdtime - return time -} - -function fancyTimeFormat(duration) -{ - var hrs = ~~(duration / 3600); - var mins = ~~((duration % 3600) / 60); - var secs = ~~duration % 60; - - var ret = ""; - - if (hrs > 0) { - ret += "" + hrs + ":" + (mins < 10 ? "0" : ""); - } - - ret += "" + mins + ":" + (secs < 10 ? "0" : ""); - ret += "" + secs; - return ret; -} diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/style.css b/resources/[Developer]/[Anna]/brutal_ambulancejob/html/style.css deleted file mode 100644 index edbaec67d..000000000 --- a/resources/[Developer]/[Anna]/brutal_ambulancejob/html/style.css +++ /dev/null @@ -1,1636 +0,0 @@ -@import url('https://fonts.cdnfonts.com/css/stringline'); -@import url('https://fonts.cdnfonts.com/css/montserrat'); -@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap'); - -body{ - font-family: 'Montserrat', sans-serif; - user-select: none; - background: none; -} - -:root{ - --main_color: rgb(233, 69, 69); - --main_color_darker: rgb(170, 67, 54); - --background_color: rgb(34, 34, 39); - --secondary_color: rgb(43, 43, 49); - --text_color: white; - --secondarytext_color: rgb(187, 187, 187); -} - -button{ - outline: none; - border: none; - cursor: pointer; - transition: all 0.2s; -} - -button:disabled{ - opacity: 0.6; - cursor: none; -} - -button:hover{ - filter: brightness(120%); -} - -button:disabled:hover{ - filter: none; -} - -button:active{ - transition: all 0.1s; - filter: brightness(90%); -} - -button:disabled:active{ - filter: none; -} - -::-webkit-scrollbar { - display: none; -} - -.input-group input{ - background-color: rgb(61, 61, 61); - color: rgb(226, 226, 226); - border: none; - outline: none; - text-align: center; - font-weight: 700; -} - -.input-group input::placeholder{ - color: rgba(212, 212, 212, 0.671); -} - -.input-group input:focus{ - background-color: rgb(61, 61, 61); - color: white; - box-shadow: 0px 0px 0px 3px var(--main_color); -} - -.input-group textarea{ - background-color: rgb(72, 72, 72); - color: white; - border: none; - outline: none; -} - -.input-group textarea::placeholder{ - color: rgb(192, 192, 192); -} - -.input-group textarea:disabled{ - background-color: rgb(64, 64, 64); -} - -.input-group textarea:focus{ - background-color: rgb(65, 65, 65); - color: white; - box-shadow: 0px 0px 0px 3px var(--main_color); -} - -.range::-webkit-slider-thumb{ - -webkit-appearance: none; - appearance: none; - height: 20px; - width: 20px; - border-radius: 100%; - background: rgb(54, 72, 94); - cursor: pointer; - box-shadow: none; - outline: none; - transition: 0.3s; -} - -.range::-webkit-slider-thumb:active{ - height: 25px; - width: 25px; - background: var(--main_color); -} - -.range{ - -webkit-appearance: none; - width: 75%; - height: 13px; - border-radius: 10px; - outline: none; - background-color: rgb(51, 49, 70); -} - -.typeahead + .dropdown-menu{ - margin-top: 10px; - background-color: var(--background_color); - color: var(--text_color); - border: solid 2px var(--main_color); -} - -.typeahead + .dropdown-menu a{ - background-color: var(--background_color); - color: var(--text_color); -} - -.typeahead + .dropdown-menu .active > a:hover { - background-color: var(--secondary_color); -} - -/*////////////////////////////////////////////////////////////// JOB MENU \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/ - -.job_menu{ - position: absolute; - background-image: radial-gradient(rgba(0, 0, 0, 0.438), transparent 60%); - border-radius: 50%; - height: 300px; - width: 300px; - top: 30%; - right: -150px; - display: none; - animation: ShowJobMenu 1s ease; - border-left: solid 4px var(--main_color) ; -} - -@keyframes ShowJobMenu{ - 0%{ - transform: rotate(180deg); - scale: 0; - } - 50%{ - transform: rotate(180deg); - scale: 1; - } - 100%{ - transform: rotate(0deg); - } -} - -@keyframes HideJobMenu{ - 50%{ - transform: rotate(180deg); - scale: 1; - } - 100%{ - transform: rotate(180deg); - scale: 0; - } -} - -@keyframes ChangeJobMenu{ - 0%{ - transform: rotate(0deg); - } - 50%{ - transform: rotate(-180deg); - } - 100%{ - transform: rotate(-360deg); - } -} - -@keyframes BackJobMenu{ - 0%{ - transform: rotate(-360deg); - } - 50%{ - transform: rotate(-180deg); - } - 100%{ - transform: rotate(0deg); - } -} - -.job_menu .circle_element{ - height: 70px; - width: 70px; - background-color: var(--main_color); - box-shadow: inset 0px -18px 40px -20px black, inset 0px 5px 6px -4px rgba(255, 255, 255, 0.794), 0px 0px 10px 0px rgba(0, 0, 0, 0.658); - border-radius: 50%; - position: absolute; - top: 50%; - left: 50%; - margin: -35px; - transition: scale 0.2s; - font-size: 30px; - color: white; -} - -.hovered_circle{ - border: solid 2px white; - scale: 1.1; -} - -.hovered_circle.circle_element{ - box-shadow: inset 0px -10px 20px -10px rgba(0, 0, 0, 0.609) inset 0px 5px 6px -4px rgba(255, 255, 255, 0), 0px 0px 7px 0px rgba(0, 0, 0, 0.387); -} - -.job_menu .circles_label{ - width: 70px; - position: absolute; - top: 50%; - left: 50%; - margin: -90px; - margin-top: -15px; - color: white; - font-size: 15px; - font-weight: 600; - text-align: center; -} - -/*////////////////////////////////////////////////////////////// INTERACTIONS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/ - -.interactions{ - position: absolute; - top: 10%; - right: 5%; - min-height: 300px; - max-height: 700px; - width: 350px; - background-image: linear-gradient(rgba(0, 0, 0, 0.408)70%, rgba(0, 0, 0, 0)); - border-radius: 20px; - color: white; - text-align: center; - animation: ShowIneractionMenu 0.7s ease; - display: none; - overflow-y: scroll; -} - -.interactions .label{ - position: relative; - height: 50px; - width: 90%; - border-radius: 13px; - background: rgb(56, 56, 56); - color: rgb(255, 255, 255); - font-size: 27px; - text-align: center; - padding: 4px; - box-shadow: inset 0px 2px 5px -3px rgba(184, 184, 184, 0.75), 0px 2px 5px -3px rgba(0, 0, 0, 0.531); - overflow: hidden; -} - -.interactions .label .background_effect{ - position: absolute; - left: -10%; - margin-top: -50px; - height: 60px; - width: 55%; - background-image: linear-gradient(10deg, transparent 50%, rgba(255, 255, 255, 0.154)); - transform: skew(-40deg); - z-index: 0; -} - -@keyframes ShowIneractionMenu{ - 0%{ - transform: translateX(200px); - opacity: 0; - } - 100%{ - opacity: 1; - transform: translateX(0px); - } -} - -@keyframes HideInteractionMenu{ - 0%{ - transform: translateX(0px); - } - 100%{ - opacity: 0; - transform: translateX(200px); - } -} - -.int_con_sec{ - animation: ShowIneractionCon 0.7s ease; -} - -@keyframes ShowIneractionCon{ - 0%{ - scale: 0; - } - 100%{ - scale: 1; - } -} - -.long_btn{ - height: 50px; - width: 250px; - background-color: var(--main_color); - box-shadow: inset 0px -30px 50px -35px rgba(0,0,0,0.75); - border-radius: 9px; - color: white; - font-size: 25px; - font-weight: 700; -} - -.control_btn_container{ - position: absolute; - top: 12.5px; - left: 12.5px; - height: 675px; - width: 85px; - background-color: rgb(44, 44, 44); - border-radius: 15px; - overflow: hidden; - animation: PopOutSideMenu 0.7s ease; - box-shadow: 0 15px 25px -4px rgba(0, 0, 0, 0.705); -} - -@keyframes PopOutSideMenu { - 0%{ - transform: translateX(-80%); - scale: 0.9; - } - 25%{ - scale: 0.9; - } - 45%{ - transform: translateX(0%); - } - 100%{ - scale: 1; - } -} - -@keyframes Appear_Menu{ - 0%{ - scale: 0; - opacity: 0; - } - 50%{ - scale: 1.05; - } - 65%{ - scale: 0.95; - opacity: 1; - } - 100%{ - scale: 1; - } -} - -.control_btn{ - position: relative; - height: 70px; - width: 70px; - background-color: rgb(60, 60, 60); - border-radius: 15px; - color: white; - font-size: 26px; - box-shadow: 0px 2px 5px -2px rgba(0, 0, 0, 0.692), inset 0px 2px 5px -3px rgba(184, 184, 184, 0.564); - transition: none; - transition: all 0.5s; - overflow: hidden; -} - -.control_btn:hover{ - filter: none; - background-color: var(--main_color); - background-image: linear-gradient(var(--main_color_darker), var(--main_color)); -} - -.control_btn .background_effect{ - position: absolute; - top: 0px; - left: -17%; - height: 50px; - width: 57%; - background-image: linear-gradient(8deg, transparent 55%, rgba(255, 255, 255, 0.123)); - transform: skew(-40deg); - z-index: 0; - transition: all 0.6s ease; -} - -.submenu_btn{ - height: 50px; - width: 80%; - background-color: var(--main_color); - box-shadow: inset 0px -50px 109px -65px rgba(0,0,0,0.75); - border-radius: 9px; - color: white; - font-size: 30px; -} - -/*////////////////////////////////////////////////////////////// MDT \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/ - -.MDT{ - position: absolute; - left: 50%; - top: 50%; - height: 700px; - width: 1100px; - transform: translate(-50%,-50%); - background-color: rgb(30, 32, 40); - border-radius: 20px; - display: none; - animation: Show_panel 0.5s ease; -} - -@keyframes Show_panel{ - 0%{ - opacity: 0; - } - 100%{ - opacity: 1; - } -} - -@keyframes Hide_panel{ - 0%{ - opacity: 1; - } - 80%{ - opacity: 0; - } - 100%{ - transform: translate(-50%, -100%); - } -} - -.background_blur_color{ - position: absolute; - top: 25%; - left: 55%; - transform: translate(-50%, -50%); - height: 300px; - width: 800px; - background-image: radial-gradient(rgb(107, 114, 139), transparent); - filter: blur(50px); - animation: Show_panel 3s ease; -} - -.MDT .table_container{ - height: 500px; - width: 90%; - margin-left: 5%; - overflow-y: scroll; -} - -.MDT table{ - color: white; - text-align: center; -} - -.MDT table .cell{ - width: 25%; -} - -.not_found_con{ - height: 60px; - width: 100%; - border-radius: 3vh; - color: rgb(210, 210, 210); - font-size: 32px; - background-image: linear-gradient(90deg,transparent 10%, var(--main_color_darker), transparent 90%); -} - -.home_label{ - position: relative; - height: 60px; - width: 100%; - border-radius: 2vh; - color: rgb(210, 210, 210); - font-size: 32px; - background-image: linear-gradient(90deg,transparent 10%, var(--main_color_darker) , transparent 90%); - box-shadow: inset 0px 1px 3px -2px rgba(255, 255, 255, 0.664), 0 10px 18px -4px rgba(0, 0, 0, 0.575); -} - -.home_label .background_effect{ - position: absolute; - top: 0px; - left: 1%; - height: 40px; - width: 55%; - background-image: linear-gradient(8deg, transparent 55%, rgba(255, 255, 255, 0.103)); - transform: skew(-40deg); - z-index: 0; -} - -.home_label #job_name{ - font-size: 28px; -} - -.home_label #home_date{ - text-align: center; - font-size: 18px; -} - -.home_label #street{ - font-size: 18px; -} - -.home_stat_con{ - position: relative; - height: 180px; - width: 290px; - background-image: linear-gradient(var(--main_color_darker), var(--main_color)); - border-radius: 15px; - animation: Appear_Menu 0.7s ease; - box-shadow: 0 10px 18px -4px rgba(0, 0, 0, 0.575), inset 0px 3px 5px -3px rgba(184, 184, 184, 0.692); - overflow: hidden; -} - -.home_stat_con .background_effect{ - position: absolute; - top: 0px; - left: -17%; - height: 140px; - width: 55%; - background-image: linear-gradient(8deg, transparent 55%, rgba(255, 255, 255, 0.123)); - transform: skew(-40deg); - z-index: 0; - animation: showbgeffect 2s ease; -} - -@keyframes showbgeffect { - 0%{ - left: -34%; - height: 50px; - } - 100%{ - left: -17%; - height: 140px; - } -} - -.logo_img{ - position: absolute; - bottom: 20px; - left: 870px; - height: 200px; - opacity: 0.3; - transition: 0.6s ease-in-out; - z-index: 11; -} - -.home_stat_con .label{ - margin: 10px; - font-size: 30px; - font-weight: 600; - color: rgb(211, 211, 211); -} - -.home_stat_con .main{ - margin-left: 40px; - font-size: 70px; - font-weight: 700; - color: rgb(211, 211, 211); -} - -.home_stat_con .small{ - font-size: 55px; -} - -.welcome_text{ - margin-left: 40px; - font-size: 90px; - font-weight: 700; - text-align: left; - font-style: italic; - color: var(--main_color_darker); -} - -.welcome_text .hand_written{ - font-family: 'Stringline', sans-serif; - margin-top: -30px; - font-size: 70px; - color: rgb(175, 175, 175); -} - -.page_data_container{ - max-height: 700px; -} - -.alert_container_out{ - max-height: 650px; - overflow-y: auto; -} - -.alert_element{ - position: relative; - height: 240px; - width: 420px; - border-radius: 10px; - background-image: linear-gradient(rgb(53, 53, 53), rgb(80, 80, 80)); - box-shadow: inset 0px 2px 5px -3px rgba(184, 184, 184, 0.564), 0px 4px 6px -4px rgba(0, 0, 0, 0.531); - margin-bottom: 40px; - overflow: hidden; - color: white; - animation: Appear_Menu 0.7s ease; -} - -.alert_element .background_effect{ - position: absolute; - left: -10%; - height: 100px; - width: 55%; - background-image: linear-gradient(8deg, transparent 55%, rgba(255, 255, 255, 0.158)); - transform: skew(-40deg); - z-index: 0; -} - -.alert_element h2{ - margin: 10px; -} - -.alert_element .police_on{ - float: inline-end; - margin: 10px; - font-size: 23px; -} - -.alert_element .main_text{ - height: 50%; - width: 80%; - margin-left: 10px; - border-radius: 10px; - font-size: 20px; - padding: 10px; - background-image: linear-gradient(rgba(117, 117, 117, 0.548), rgba(173, 173, 173, 0.548)); - box-shadow: inset 0px 0px 5px -3px rgba(7, 7, 7, 0.75); -} - -.alert_element .street{ - float: inline-end; - margin-top: 20px; - font-size: 15px; - padding-right: 5px; -} - -.alert_element .time{ - float: inline-end; - margin-right: 10px; - margin-top: 20px; - margin-left: 5px; - font-size: 15px; -} - -.call_actions_container{ - color: white; -} - -.call_reason_con textarea{ - max-height: 200px; -} - -.involved_container{ - max-height: 250px; - width: 400px; - color: white; - border: solid 2px rgb(73, 73, 73); - background-color: rgb(43, 43, 43); - border-radius: 10px; -} - -.involved_container .involved_element{ - height: 50px; - font-size: 30px; - text-align: center; -} - -.involved_container hr{ - width: 90%; - margin: 0px; - margin-left: 5%; -} - -.table_header{ - background-image: linear-gradient(135deg, var(--main_color_darker) 40%, transparent); - border-radius: 10px; - margin-bottom: 20px; - width: 90%; - height: 60px; - margin-left: 5%; - font-size: 27px; -} - -.table_element{ - position: relative; - background-color: rgba(57, 57, 57, 0.596); - border-radius: 10px; - animation: Appear_Menu 0.7s ease; - font-size: 20px; - font-weight: 400; - box-shadow: inset 0px 2px 5px -3px rgba(184, 184, 184, 0.564), 0px 2px 5px -3px rgba(0, 0, 0, 0.531); -} - -.table_element .background_effect{ - position: absolute; - left: -10%; - height: 60px; - width: 55%; - background-image: linear-gradient(8deg, transparent 55%, rgba(255, 255, 255, 0.079)); - transform: skew(-40deg); - z-index: 0; -} - -.table_element table{ - height: 50px; -} - -.close{ - height: 70px; - width: 70px; - color: white; - background-color: transparent; - font-size: 35px; -} - -.details_btn{ - position: relative; - height: 43px; - background-color: var(--main_color); - color: white; - font-size: 18px; - border-radius: 10px; - box-shadow: inset 0px -15px 25px -15px rgba(0, 0, 0, 0.5); - font-weight: 700; - z-index: 10; -} - -.page_label{ - color: rgb(230, 230, 230); - font-size: 45px; -} - -.sub_label{ - color: rgb(210, 217, 223); - font-size: 30px; - text-align: center; -} - -.invoices_container{ - position: relative; - margin-right: 10px; - height: 550px; - width: 550px; - background-color: rgb(43, 43, 43); - box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.35); - border-radius: 10px; - padding-top: 10px; - overflow-x: hidden; -} - -.invoices_container .background_blur_color{ - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - height: 300px; - width: 500px; - background-image: radial-gradient(rgb(74, 78, 95), transparent); - filter: blur(50px); - animation: Show_panel 3s ease; -} - -.invoices_container .invoice_element{ - position: relative; - height: 60px; - width: 95%; - margin-left: 2.5%; - margin-top: 10px; - border-radius: 10px; - background-image: linear-gradient(rgb(43, 43, 43), rgb(63, 63, 63)); - box-shadow: 0px 2px 5px -2px rgba(0, 0, 0, 0.692), inset 0px 2px 5px -2px rgba(184, 184, 184, 0.719); - color: rgb(230, 230, 230); - text-align: center; - transition: all 0.6s ease; - overflow: hidden; - animation: ListElementAppear 0.5s ease; -} - -@keyframes ListElementAppear { - 0%{ - opacity: 0; - height: 80px; - margin-top: 50px; - } - 50%{ - opacity: 1; - } - 100%{ - height: 60px; - margin-top: 10px; - } - -} - -.invoices_container .invoice_element .invoice_row{ - width: 680px; - transition: all 0.5s ease; -} - -.invoices_container .invoice_element .invoice_row .name{ - font-size: 32px; -} - -.invoices_container .invoice_element:hover{ - background-color: var(--main_color); - background-image: linear-gradient(var(--main_color_darker), var(--main_color)); -} - -.invoices_container .invoice_element:hover .background_effect{ - height: 70px; - transform: skew(-50deg); -} - -.invoices_container .invoice_element .background_effect{ - position: absolute; - left: -5%; - height: 50px; - width: 55%; - background-image: linear-gradient(8deg, transparent 55%, rgba(255, 255, 255, 0.123)); - transform: skew(-40deg); - z-index: 0; - transition: all 0.6s ease; -} - -.invoices_container .invoice_element .delete_con{ - height: 60px; - width: 120px; - background-image: linear-gradient(rgb(197, 47, 47), rgb(238, 57, 57)); - box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.35); - overflow: hidden; -} - -.invoices_container .invoice_element .delete_con:hover{ - filter: brightness(110%); -} - -.invoices_container .invoice_element .delete_con .txt{ - color: rgb(219, 219, 219); - width: 100px; - font-size: 23px; - height: 60px; - line-height: 60px; - margin-left: -10px; -} - -.give_invoiceto_con{ - position: relative; - padding-top: 10px; - padding-bottom: 5px; - margin-left: 10%; - width: 80%; - background-image: linear-gradient(rgb(43, 43, 43), rgb(63, 63, 63)); - border-radius: 10px; - box-shadow: 0 10px 18px -4px rgba(0, 0, 0, 0.39), inset 0px 2px 5px -2px rgba(184, 184, 184, 0.719); - color: rgb(216, 216, 216); - overflow: hidden; -} - -.give_invoiceto_con .background_effect{ - position: absolute; - top: 0px; - left: -15%; - height: 100px; - width: 55%; - background-image: linear-gradient(8deg, transparent 55%, rgba(255, 255, 255, 0.123)); - transform: skew(-40deg); - z-index: 0; - transition: all 0.6s ease; -} - -.shop{ - position: absolute; - top: 10%; - left: 5%; - height: 756px; - width: 576px; - background-color: rgba(0, 0, 0, 0.35); - border-radius: 15px; - border: none; - transition: all 0.4s ease-in-out; - display: none; - scale: 0; - transition: all 0.6s ease; -} - -.shop .checkout_container{ - position: absolute; - bottom: 2%; - right: 2%; - height: 25%; - width: 60%; -} - -.shop .checkout_container hr{ - width: 90%; - height: 2px; - background-color: white; - margin-left: 5%; -} - -.shop .checkout_container h3{ - position: absolute; - top: 28%; - left: 50%; - transform: translate(-50%,-50%); - font-weight: 800; - font-size: 38px; - color: rgb(241, 241, 241); - width: 100%; - text-align: center; -} - -.shop h2{ - position: absolute; - transform: translate(-50%, 0%); - left: 50%; - margin-top: -30px; - color: white; - font-weight: 900; - font-size: 56px; - text-shadow: inset 3px 3px 13px rgba(0, 0, 0, 0.262); -} - -.shop .shop_elements_container{ - position: absolute; - top: 15.5%; - left: 50%; - transform: translate(-50%, 0%); - height: 59.5%; - width: 90%; - overflow-y: auto; - scroll-behavior: smooth; -} - -.shop .shop_elements_container .shop_element{ - height: 195px; - width: 140px; - left: 50%; - border-radius: 10px; - background: linear-gradient(135deg, rgba(226, 226, 226, 0.664), rgba(226, 226, 226, 0)); - margin-top: 15px; - margin-bottom: 15px; - transition: all 0.4s; -} - -.shop .shop_elements_container .shop_element:hover{ - box-shadow: inset 20px 20px 50px -10px rgba(226, 226, 226, 0.664); -} - -.shop .shop_elements_container .shop_element:hover img{ - scale: 1.1; - transform: translateY(-10%); -} - -.shop .shop_elements_container .shop_element .price{ - color: rgb(219, 219, 219); - margin-left: 8px; - margin-bottom: -30px; - font-size: 20px; - font-weight: 700; -} - -.shop .shop_elements_container .shop_element img{ - margin-top: 5%; - height: 60%; - border-radius: 8px; - transition: all 0.4s; -} - -.shop .shop_elements_container .shop_element h4{ - top: 70%; - font-weight: 400; - font-size: 18px; - color: rgb(241, 241, 241); - text-align: center; -} - -.shop .shop_elements_container .shop_element .arrow{ - color: white; - font-size: 23px; -} - -.shop .shop_elements_container .shop_element .left{ - top: 80%; - left: 75%; -} - -.shop .shop_elements_container .shop_element .right{ - top: 80%; - left: 95%; -} - -.shop .shop_elements_container .shop_element .num{ - margin-top: -8px; - left: 50%; - width: 80%; - transform: translate(-50%, 0%); - font-weight: 600; - color: rgb(241, 241, 241); -} - -.shop .shop_elements_container .shop_element .num input{ - font-size: 25px; - padding-top: 3px; - padding-bottom: 3px; -} - -.shop .slider_btn{ - position: absolute; - top: 83%; - left: 10%; - height: 65px; - width: 160px; - background-color: rgb(59, 59, 59); - border-radius: 15px; -} - -.slider_btn .slider{ - position: absolute; - left: 0; - top: -5%; - border-radius: 15px; - height: 110%; - width: 50%; - background-color: var(--main_color); - z-index: 1; - transition: all 0.3s ease; - box-shadow: inset 0px -20px 60px 0px rgba(0, 0, 0, 0.486); -} - -.slider_btn .button_container{ - position: absolute; - left: 0; - height: 100%; - width: 100%; - color: white; - z-index: 10; - font-size: 38px; - text-align: center; - align-items: center; - margin: 0; -} - -.buy_btn{ - height: 75px; - min-width: 150px; - background-color: var(--main_color); - color: white; - font-size: 38px; - border-radius: 10px; - box-shadow: inset 0px -35px 80px 0px rgba(0, 0, 0, 0.574); - font-weight: 700; - padding: 10px; - position: absolute; - bottom: 5%; - left: 50%; - transform: translate(-50%, 0%); -} - -.basic_container{ - position: absolute; - top: 50%; - left: 3%; - transform: translate(0%, -50%); - height: 320px; - width: 280px; - background-color: rgb(44, 44, 44); - border-radius: 20px; - animation: Appear_Menu 0.3s ease; - color: rgb(218, 218, 218); - text-align: center; - display: none; -} - -.basic_container .label{ - position: relative; - margin-top: 10px; - margin-left: 10px; - height: 50px; - width: 260px; - border-radius: 13px; - background: rgb(73, 73, 73); - color: rgb(255, 255, 255); - font-size: 27px; - text-align: center; - padding: 3px; - box-shadow: inset 0px 2px 5px -3px rgba(184, 184, 184, 0.75); - overflow: hidden; -} - -.basic_container .label .background_effect{ - position: absolute; - left: -10%; - top: 0px; - height: 60px; - width: 55%; - background-image: linear-gradient(10deg, transparent 50%, rgba(255, 255, 255, 0.154)); - transform: skew(-40deg); - z-index: 0; -} - -.basic_container textarea{ - resize: none; - background-color: rgb(61, 61, 61); -} - -.basic_container .item_con{ - max-width: 90%; - padding: 10px; - border-radius: 13px; - background-color: rgb(55, 55, 55); -} - -.basic_container .range_number{ - font-size: 16px; - margin-bottom: -2px; - margin-top: 6px; - color: rgb(181, 181, 181); -} - -#give_invoice{ - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - height: auto; -} - -.vehicle_livery{ - position: absolute; - top: 3%; - left: 50%; - transform: translate(-50%, 0%); - height: 110px; - width: 300px; - background-color: rgb(44, 44, 44); - border-radius: 15px; - animation: Appear_Menu 0.3s ease; - color: rgb(194, 194, 194); - text-align: center; - box-shadow: 2px 3px 7px rgba(43, 43, 43, 0.702); - display: none; -} - -.vehicle_livery .val_con{ - margin-top: 10px; - height: 45px; - width: fit-content; - background-color: rgb(30, 49, 176); - border-radius: 10px; - text-align: center; - color: rgb(255, 255, 255); - font-size: 26px; - font-weight: 600; - box-shadow: inset 0px 2px 5px -3px rgb(200, 200, 200), inset 0px -4px 8px -5px rgba(31, 31, 31, 0.766); -} - -.modal_header{ - position: relative; - height: 55px; - width: 100%; - border-radius: 13px; - background: rgb(62, 62, 62); - color: rgb(255, 255, 255); - font-size: 27px; - text-align: center; - padding: 3px; - box-shadow: inset 0px 2px 5px -3px rgba(184, 184, 184, 0.75), 0px 2px 5px -3px rgba(0, 0, 0, 0.531); - overflow: hidden; -} - -.modal_header .background_effect{ - position: absolute; - left: -10%; - margin-top: -3px; - height: 60px; - width: 55%; - background-image: linear-gradient(10deg, transparent 50%, rgba(255, 255, 255, 0.154)); - transform: skew(-40deg); - z-index: 0; -} - -.modal .item_con{ - max-width: 90%; - padding: 10px; - border-radius: 13px; - background-color: rgb(55, 55, 55); -} - -.death_screen{ - font-family: 'Oswald', sans-serif; - height: 100%; - width: 100%; - display: none; -} - -.death_screen .bg{ - position: absolute; - height: 100%; - width: 100%; - background-image: linear-gradient(45deg, rgba(126, 14, 14, 0.7), rgba(7, 12, 19, 0.836), rgba(126, 14, 14, 0.7)); -} - -.death_screen .die{ - position: absolute; - top: 30%; - left: 50%; - transform: translate(-50%, -50%); - font-size: 80px; - font-weight: 800; - text-align: center; - color: rgb(230, 230, 230); - text-shadow: 0px 0px 4px white; -} - -.death_screen .remained{ - position: absolute; - top: 45%; - left: 50%; - transform: translate(-50%, -50%); - font-size: 20px; - font-weight: 400; - text-align: center; - color: rgb(158, 158, 158); -} - -.death_screen .time_con{ - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - height: 70px; - width: 300px; - border-radius: 5px; - background-color: rgba(77, 0, 0, 0.5); - border:solid 2px rgb(109, 0, 0); -} - -.death_screen .time_con .time{ - position: relative; - font-size: 50px; - font-weight: 800; - text-align: center; - color: rgb(216, 216, 216); - text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5); - z-index: 10; -} - -.death_screen .time_con .time_line{ - position: absolute; - top: -2px; - left: -2px; - height: 70px; - width: 70%; - background-image: linear-gradient(90deg, transparent, rgb(223, 62, 62) 80%); - border: solid 2px rgb(223, 62, 62); - box-shadow: 0px 0px 7px rgba(223, 62, 62, 0.836); - border-radius: 5px; - z-index: 1; - transition: all 0.2s ease; -} - -.death_screen .info{ - position: absolute; - top: 57%; - left: 50%; - transform: translate(-50%, -50%); - font-size: 28px; - font-weight: 400; - text-align: center; - color: rgb(216, 216, 216); -} - -.death_screen .info .hbtn_press{ - font-size: 25px; - font-weight: 400; - border: solid 2px rgb(223, 62, 62); - color: rgb(223, 62, 62); - border-radius: 5px; -} - -@keyframes htext_anim { - 80%{ - opacity: 1; - } - 100%{ - opacity: 0; - } -} - -@keyframes hbtn_anim { - 0%{ - box-shadow: 0px 0px 800px 100px rgba(223, 62, 62, 0); - } - 80%{ - color: rgb(216, 216, 216); - background-color: rgb(223, 62, 62); - box-shadow: 0px 0px 0px 0px rgb(223, 62, 62); - opacity: 1; - } - 100%{ - opacity: 0; - color: rgb(216, 216, 216); - background-color: rgb(223, 62, 62); - box-shadow: 0px 0px 800px 150px rgb(223, 62, 62); - } -} - -.medic_panel{ - position: absolute; - top: 50%; - left: 50%; - height: 720px; - width: 600px; - transform: translate(-50%,-50%); - background-color: rgba(30, 32, 40, 0.733); - border-radius: 20px; - display: none; - animation: Show_panel 0.5s ease; -} - -.medic_panel#medic_panel_me{ - width: 400px; -} - -.medic_panel .label{ - margin-top: 10px; - font-size: 50px; - font-weight: 700; - color: rgb(230, 230, 230); - text-align: center; - text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.568); -} - -.medic_panel .patient{ - position: absolute; - top: 9.3%; - left: 30.5%; - transform: translate(-50%,0%); - font-size: 22px; - font-weight: 400; - color: aquamarine; - text-align: center; -} - -.medic_panel#medic_panel_me .patient{ - left: 50%; -} - -.medic_panel .main_body{ - position: absolute; - top: 54%; - left: 40px; - height: 600px; - transform: translate(0%,-50%); -} - -.medic_panel .body_part{ - position: absolute; - top: 54%; - left: 40px; - height: 600px; - transform: translate(0%,-50%); - display: none; - animation: bodypartshow 2s ease; -} - -.medic_panel#medic_panel_me .main_body{ - position: absolute; - top: 12%; - left: 50%; - height: 450px; - transform: translate(-50%,0%); -} - -.medic_panel#medic_panel_me .body_part{ - position: absolute; - top: 12%; - left: 50%; - height: 450px; - transform: translate(-50%,0%); - display: none; - animation: bodypartshow 2s ease; -} - -@keyframes bodypartshow { - 0%{ - opacity: 0; - } - 40%{ - opacity: 0.8; - } - 60%{ - opacity: 0.6; - } - 100%{ - opacity: 1; - } -} - -.medic_panel #right_arm_box{ - position: absolute; - top: 178px; - left: 74px; - height: 250px; - width: 70px; -} - -.medic_panel #left_arm_box{ - position: absolute; - top: 178px; - left: 220px; - height: 250px; - width: 70px; -} - -.medic_panel #right_leg_box{ - position: absolute; - top: 380px; - left: 120px; - height: 270px; - width: 70px; -} - -.medic_panel #left_leg_box{ - position: absolute; - top: 380px; - left: 180px; - height: 270px; - width: 70px; -} - -.medic_panel #body_box{ - z-index: 10; - position: absolute; - top: 178px; - left: 135px; - height: 220px; - width: 100px; -} - -.medic_panel #body_box2{ - z-index: 10; - position: absolute; - top: 100px; - left: 110px; - height: 430px; - width: 180px; -} - -.medic_panel #head_box{ - position: absolute; - top: 100px; - left: 145px; - height: 90px; - width: 70px; -} - -.medic_panel .vertical_con{ - position: absolute; - top: 42%; - left: 330px; - transform: translate(0%,-50%); -} - -.medic_panel#medic_panel_me .vertical_con{ - position: absolute; - top: 65%; - left: 280px; - transform: translate(0%,-50%); -} - -.medic_panel .vertical_con#second{ - left: 430px; -} - -.medic_panel .vertical_con .items_container{ - margin: 10px; - height: 74px; - width: 74px; - border: solid 2px aquamarine; - border-radius: 10px; - background-color: rgba(114, 114, 114, 0.568); -} - -.medic_panel .vertical_con .items_container .medic_item{ - position: absolute; - height: 74px; - width: 74px; - border-radius: 10px; - transition: scale 0.7s ease; -} - - -@keyframes itemuseanim { - 0%{ - scale: 1; - } - 40%{ - transform: rotate(10deg); - } - 80%{ - transform: rotate(-10deg); - scale: 1.1; - border-radius: 50%; - box-shadow: 0px 0px 0px aquamarine; - background-color: rgba(127, 255, 212, 0); - } - 100%{ - scale: 0.0; - border-radius: 50%; - background-color: aquamarine; - box-shadow: 0px 0px 200px aquamarine; - } -} - -@keyframes itemnotuseanim { - 20%{ - transform: rotate(10deg); - } - 40%{ - transform: rotate(-10deg); - } - 60%{ - transform: rotate(10deg); - } - 80%{ - transform: rotate(-10deg); - } - 100%{ - background-color: rgba(223, 62, 62, 0.795); - box-shadow: 0px 0px 100px rgba(223, 62, 62, 0.795); - } -} - -.medic_panel .status_con{ - position: absolute; - bottom: 110px; - right: 50px; - width: 250px; -} - -.medic_panel#medic_panel_me .status_con{ - bottom: 80px; - left: 50%; - transform: translate(-50%, 0%); -} - -.medic_panel .status_con h2{ - margin-bottom: 5px; - font-size: 25px; - font-weight: 400; - color: rgba(127, 255, 212, 0.87); - text-align: center; -} - -.medic_panel .status_con .box{ - height: 60px; - width: 250px; - border: solid 2px rgb(114, 114, 114); - border-radius: 10px; - background-color: rgba(114, 114, 114, 0.568); - color: rgba(127, 255, 212, 0.87); - font-size: 37px; - font-weight: 800; - text-align: center; -} - -.medic_panel .bpm_con{ - position: absolute; - bottom: 50px; - right: 50px; - width: 250px; -} - -.medic_panel#medic_panel_me .bpm_con{ - bottom: 20px; - left: 50%; - transform: translate(-50%, 0%); -} - -.medic_panel .bpm_con h2{ - font-size: 37px; - font-weight: 400; - color: rgba(127, 255, 212, 0.87); - text-align: center; -} - -.medic_panel .bpm_con .box{ - font-weight: 800; - color: rgb(223, 62, 62); -} - -.medic_panel .cause_of_death{ - position: absolute; - bottom: 22px; - left: 50%; - transform: translate(-50%, 0%); - font-size: 22px; - font-weight: 800; - color: rgb(223, 62, 62); - width: 100%; - text-align: center; -} - -.medic_panel .des{ - position: absolute; - bottom: 9px; - left: 50%; - transform: translate(-50%, 0%); - font-size: 12px; - font-weight: 400; - color: rgba(207, 207, 207, 0.801); -} \ No newline at end of file diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/server/commands.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/server/commands.lua deleted file mode 100644 index 57c16d106..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/server/commands.lua and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/server/desktop.ini b/resources/[Developer]/[Anna]/brutal_ambulancejob/server/desktop.ini deleted file mode 100644 index 03fd910e6..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/server/desktop.ini and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/server/errors.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/server/errors.lua deleted file mode 100644 index 96f68082b..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/server/errors.lua and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/server/server.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/server/server.lua deleted file mode 100644 index 7e834084d..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/server/server.lua and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/desktop.ini b/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/desktop.ini deleted file mode 100644 index 03fd910e6..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/desktop.ini and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/prop_ld_binbag_01.ydr b/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/prop_ld_binbag_01.ydr deleted file mode 100644 index ec48b4432..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/prop_ld_binbag_01.ydr and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/prop_ld_bomb.ydr b/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/prop_ld_bomb.ydr deleted file mode 100644 index 9706a0fd8..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/prop_ld_bomb.ydr and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/prop_ld_purse_01.ydr b/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/prop_ld_purse_01.ydr deleted file mode 100644 index e55aa7feb..000000000 Binary files a/resources/[Developer]/[Anna]/brutal_ambulancejob/stream/prop_ld_purse_01.ydr and /dev/null differ diff --git a/resources/[Developer]/[Anna]/brutal_ambulancejob/sv_utils.lua b/resources/[Developer]/[Anna]/brutal_ambulancejob/sv_utils.lua deleted file mode 100644 index 2b6fce16a..000000000 --- a/resources/[Developer]/[Anna]/brutal_ambulancejob/sv_utils.lua +++ /dev/null @@ -1,98 +0,0 @@ -local YourWebhook = 'webhook-here' -- help: https://docs.brutalscripts.com/site/others/discord-webhook - -function GetWebhook() - return YourWebhook -end - --- Buy here: (4€+VAT) https://store.brutalscripts.com -function notification(source, title, text, time, type) - if Config.BrutalNotify then - TriggerClientEvent('brutal_notify:SendAlert', source, title, text, time, type) - else - TriggerClientEvent('brutal_ambulancejob:client:DefaultNotify', text) - end -end - -function ClearPlayerInventory(source) - if Config.Inventory:lower() == 'ox_inventory' then - exports.ox_inventory:ClearInventory(source) - elseif Config.Inventory:lower() == 'quasar_inventory' then - local saveItems = { - 'id_card', -- Add here the items that you do NOT want to be deleted - 'phone', - } - exports['qs-inventory']:ClearInventory(source, saveItems) - local weapons = exports['qs-inventory']:GetWeaponList() - for k,v in pairs(weapons) do - RemoveItem(source, v.name, 1) - end - elseif Config.Inventory:lower() == 'chezza_inventory' then - local xPlayer = GETPFI(source) - exports.inventory:clearInventory(xPlayer, true) - elseif Config.Inventory:lower() == 'codem_inventory' then - exports['codem-inventory']:ClearInventory(source) - elseif Config.Inventory:lower() == 'qb_inventory' then - exports['qb-inventory']:ClearInventory(source) - elseif Config['Core']:upper() == 'ESX' then - local ESX = Core - local xPlayer = ESX.GetPlayerFromId(source) - for i=1, #xPlayer.inventory, 1 do - if xPlayer.inventory[i].count > 0 then - xPlayer.setInventoryItem(xPlayer.inventory[i].name, 0) - end - end - end -end - -function SocietyAddMoney(job, price) - if Config['Core']:upper() == 'ESX' then - local society = exports['esx_society']:GetSociety(job) - TriggerEvent('esx_addonaccount:getSharedAccount', society.account, function(account) - account.addMoney(price) - end) - else - exports['qb-management']:AddMoney(job, price) - end -end - -ESX = Core -QBCore = Core - -if Config.Core:upper() == 'QBCORE' then - RegisterNetEvent('hospital:server:resetHungerThirst', function() - local Player = QBCore.Functions.GetPlayer(source) - - if not Player then return end - - Player.Functions.SetMetaData('hunger', 100) - Player.Functions.SetMetaData('thirst', 100) - - TriggerClientEvent('hud:client:UpdateNeeds', source, 100, 100) - end) -end - -function StaffCheck(source, AdminGroups) - local staff = false - - if Config.Core:upper() == 'ESX'then - local player = Core.GetPlayerFromId(source) - local playerGroup = player.getGroup() - - for i, Group in ipairs(AdminGroups) do - if playerGroup == Group then - staff = true - break - end - end - elseif Config.Core:upper() == 'QBCORE' then - - for i, Group in ipairs(AdminGroups) do - if Core.Functions.HasPermission(source, Group) or IsPlayerAceAllowed(source, Group) or IsPlayerAceAllowed(source, 'command') then - staff = true - break - end - end - end - - return staff -end \ No newline at end of file