diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/.fxap b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/.fxap new file mode 100644 index 000000000..bbeeadddf Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/.fxap differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/client.lua b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/client.lua new file mode 100644 index 000000000..b4f4b955b Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/client.lua differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/client_custom.lua b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/client_custom.lua new file mode 100644 index 000000000..465bfc66a --- /dev/null +++ b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/client_custom.lua @@ -0,0 +1,70 @@ +ESXFound = false +QBFound = false + +ESX = nil +QBCore = nil +PlayerData = nil + +if GetResourceState("es_extended") == "started" then + ESXFound = true + ESX = exports["es_extended"]:getSharedObject() + print("ESX gefunden!") +end +if GetResourceState("qb-core") == "started" then + QBFound = true + QBCore = exports['qb-core']:GetCoreObject() + print("QB gefunden!") +end + +function GetPlayerData() + if ESXFound == true then + PlayerData = ESX.GetPlayerData() + elseif QBFound == true then + PlayerData = QBCore.Functions.GetPlayerData() + end +end + +function Notification(notif) + if ESXFound == true then + ESX.ShowNotification(notif) + elseif QBFound == true then + QBCore.Functions.Notify(notif) + end +end + +function WhitelistedJob() + if ESXFound == false and QBFound == false then + return true + end + + if #Config.OnlyJobs == 0 then + return true + end + + GetPlayerData() + + for k,v in ipairs(Config.OnlyJobs) do + if v == PlayerData.job.name then + return true + end + end + + return false +end + +function Print3DText(coords, text) + SetTextScale(0.55, 0.55) + SetTextFont(4) + SetTextProportional(1) + SetTextColour(250, 250, 250, 255) -- You can change the text color here + SetTextDropshadow(1, 1, 1, 1, 255) + SetTextEdge(2, 0, 0, 0, 150) + SetTextDropShadow() + SetTextOutline() + SetTextEntry("STRING") + SetTextCentre(1) + AddTextComponentString(text) + SetDrawOrigin(coords.x, coords.y, coords.z, 0) + DrawText(0.0, 0.0) + ClearDrawOrigin() +end \ No newline at end of file diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/config.lua b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/config.lua new file mode 100644 index 000000000..960d4d34d --- /dev/null +++ b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/config.lua @@ -0,0 +1,40 @@ +Config = {} + +Config.ActionKey = 182 +--https://docs.fivem.net/docs/game-references/controls/#controls + +Config.Hash = { + {hash = "friedr8301", detection = 3, doors = {2,5}, left = 0.0, depth = -1.8, height = -0.555, rotate = 0.0}, + {hash = "friedr8302", detection = 3, doors = {2,5}, left = 0.0, depth = -1.8, height = -0.555, rotate = 0.0}, + {hash = "friedr8303", detection = 3, doors = {2,5}, left = 0.0, depth = -1.8, height = -0.555, rotate = 0.0}, + {hash = "friedr8304", detection = 3, doors = {2,5}, left = 0.0, depth = -1.8, height = -0.555, rotate = 0.0}, + {hash = "altst8304", detection = 3, doors = {2,3}, left = 0.0, depth = -1.8, height = -0.555, rotate = 0.0}, + {hash = "christoph38", detection = 3, doors = {}, left = 0.0, depth = 0.0, height = -0.555, rotate = 90.0}, +} + +Config.OnlyJobs = { + --"ambulance", + --"fire" +} + +Config.Language = { + stand_up = 'Drücke ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um aufzustehen', + do_action = 'Drücke ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um mit der Trage zu interagieren', + take_bed = "Drücke ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um die Trage zu nehmen.", + release_bed = "Drücke ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um die Trage abzustellen.", + in_vehicle_bed = "Drücke ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um die Trage in den RTW zu packen.\n\nDrücke ~INPUT_SPRINT~ + ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um die Trage abzustellen.", + stretcher_basket = "Drücke ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um die Trage auf der DLK zu befestigen.\n\nDrücke ~INPUT_SPRINT~ + ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um die Trage abzustellen.", + out_vehicle_bed = "Drücke ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um die Trage rauszuholen\n\nDrücke ~INPUT_SPRINT~ + ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um die Türen zu schließen", + out_vehicle_bed_control = "Drücke ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um mit der Trage zu interagieren\n\nDrücke ~INPUT_SPRINT~ + ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um die Türen zu schließen", + vehicle_open_door = "Drücke ~INPUT_CELLPHONE_CAMERA_FOCUS_LOCK~ um die Türen zu öffnen", +} + +Config.LadderCage = "lenand_ladder_cage" +Config.LaderCageCoords = { + x = 0.9, + y = 0.15, + z = 0.53, + rx = 0.0, + ry = 0.0, + rz = 0.0 +} \ No newline at end of file diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/fxmanifest.lua b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/fxmanifest.lua new file mode 100644 index 000000000..e750d57fe --- /dev/null +++ b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/fxmanifest.lua @@ -0,0 +1,37 @@ +fx_version 'cerulean' + +games { 'gta5' } + +author 'LoveRP Scripts' +description 'Realistic Stretcher' +version '1.1' +lua54 'yes' + +client_scripts { + 'config.lua', + 'client.lua', + 'client_custom.lua' +} + +server_scripts { + 'config.lua', + 'server.lua', + 'server_custom.lua' +} + +ui_page "html/index.html" + +files { + 'html/index.html', + 'html/index.js', + 'html/img/*.png', + 'html/img/**/*.png', +} + +escrow_ignore { + 'config.lua', + 'server_custom.lua', + 'client_custom.lua', + 'html/*' +} +dependency '/assetpacks' \ No newline at end of file diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/corpuls3.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/corpuls3.png new file mode 100644 index 000000000..973e412b6 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/corpuls3.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/corpuls3_sw.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/corpuls3_sw.png new file mode 100644 index 000000000..0f95998ab Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/corpuls3_sw.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_off.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_off.png new file mode 100644 index 000000000..3c32bfd59 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_off.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_off_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_off_hover.png new file mode 100644 index 000000000..efc7159f5 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_off_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_on.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_on.png new file mode 100644 index 000000000..d951703ba Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_on.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_on_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_on_hover.png new file mode 100644 index 000000000..12b2b9e9f Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/corpuls_on_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_angewinkelt.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_angewinkelt.png new file mode 100644 index 000000000..c7b404a94 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_angewinkelt.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_angewinkelt_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_angewinkelt_hover.png new file mode 100644 index 000000000..a46becdac Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_angewinkelt_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_flach.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_flach.png new file mode 100644 index 000000000..a8bf92626 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_flach.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_flach_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_flach_hover.png new file mode 100644 index 000000000..7bddf24f7 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_flach_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_hoch.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_hoch.png new file mode 100644 index 000000000..eefc9ffa9 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_hoch.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_hoch_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_hoch_hover.png new file mode 100644 index 000000000..a33e86111 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/fussteil_hoch_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell.png new file mode 100644 index 000000000..91bef50bc Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell_hover.png new file mode 100644 index 000000000..848bb0fb9 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell_unten.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell_unten.png new file mode 100644 index 000000000..9a920a5eb Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell_unten.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell_unten_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell_unten_hover.png new file mode 100644 index 000000000..a828ba87c Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/grundmodell_unten_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_flach.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_flach.png new file mode 100644 index 000000000..28d9b35b2 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_flach.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_flach_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_flach_hover.png new file mode 100644 index 000000000..f6807bf63 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_flach_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_hoch.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_hoch.png new file mode 100644 index 000000000..f24c7a506 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_hoch.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_hoch_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_hoch_hover.png new file mode 100644 index 000000000..5eba2113f Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/kopfteil_hoch_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_oben.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_oben.png new file mode 100644 index 000000000..9a9c665dd Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_oben.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_oben_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_oben_hover.png new file mode 100644 index 000000000..016602722 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_oben_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_unten.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_unten.png new file mode 100644 index 000000000..60261475d Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_unten.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_unten_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_unten_hover.png new file mode 100644 index 000000000..4a70d841e Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/seitenteil_unten_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/stryker_nehmen.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/stryker_nehmen.png new file mode 100644 index 000000000..e241308a4 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/stryker_nehmen.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/stryker_nehmen_hover.png b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/stryker_nehmen_hover.png new file mode 100644 index 000000000..8ac1b2f3f Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/img/stryker/stryker_nehmen_hover.png differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/index.html b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/index.html new file mode 100644 index 000000000..9d1178a94 --- /dev/null +++ b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/index.html @@ -0,0 +1,94 @@ + +
+ + + + + + + + + + + + + diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/index.js b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/index.js new file mode 100644 index 000000000..7f284363a --- /dev/null +++ b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/html/index.js @@ -0,0 +1,288 @@ + + + function Stryker_Player(elem) + { + $.post("https://power_stretcher/stryker_patient_on", JSON.stringify({ + id: elem.getAttribute("stryker"), + src: elem.getAttribute("src") + })); + } + + +$(function () { + var StrykerID = 0; + + var buttons = document.getElementById("stryker_menu").children; + + document.addEventListener('mousemove', function(e) + { + document.getElementById("stryker_help").style.top = e.clientY + document.getElementById("stryker_help").style.left = e.clientX + document.getElementById("stryker_help").style.transform = "translate(-125px,25px)" + + }) + + for(var a = 0; a < buttons.length; a++) + { + if (buttons[a].getAttribute("help")) + { + buttons[a].addEventListener('mouseenter', function(e) { + document.getElementById("stryker_help").style.display = ""; + document.getElementById("stryker_help").innerHTML = e.target.getAttribute("help") + e.target.src = "img/stryker/" + e.target.getAttribute("normal") + "_hover.png" + }); + buttons[a].addEventListener('mouseleave', function(e) { + document.getElementById("stryker_help").style.display = "none"; + e.target.src = "img/stryker/" + e.target.getAttribute("normal") + ".png" + }); + } + } + + document.onkeyup = function (data) { + if (data.which == 27) { + $("body").fadeOut(); + $.post('https://power_stretcher/focusfalse', JSON.stringify({})); + return + } + }; + window.addEventListener('message', function(event) { + var item = event.data; + + if (item.type === "show_menu") + { + $("body").fadeIn(); + StrykerID = item.id; + } + + if (item.type === "hide_menu") + { + $("body").fadeOut(); + } + + if (item.type === "stryker_player") + { + var insertText = ""; + + insertText += 'NPC
'; + + if (item.list.length > 0) + { + for (var i = 0; i < item.list.length; i++) + { + insertText += '[' + item.list[i].src + '] ' + item.list[i].name + '
'; + } + } + + document.getElementById("stryker_player").innerHTML = insertText; + } + + if (item.type === "stryker_ui") + { + document.getElementById("stryker_player").innerHTML = ""; + + if (item.grundgestell == "oben") + { document.getElementById("stryker_grundgestell_oben").style.display = ""; + document.getElementById("stryker_grundgestell_unten").style.display = "none"; } + else + { document.getElementById("stryker_grundgestell_oben").style.display = "none"; + document.getElementById("stryker_grundgestell_unten").style.display = ""; } + + if (item.seitenteil == "oben") + { document.getElementById("stryker_seitenteil_oben").style.display = ""; + document.getElementById("stryker_seitenteil_unten").style.display = "none"; } + else + { document.getElementById("stryker_seitenteil_oben").style.display = "none"; + document.getElementById("stryker_seitenteil_unten").style.display = ""; } + + if (item.kopfteil == "flach") + { document.getElementById("stryker_kopfteil_flach").style.display = ""; + document.getElementById("stryker_kopfteil_hoch").style.display = "none"; } + else + { document.getElementById("stryker_kopfteil_flach").style.display = "none"; + document.getElementById("stryker_kopfteil_hoch").style.display = ""; } + + if (item.fussteil == "flach") + { document.getElementById("stryker_fussteil_flach").style.display = ""; + document.getElementById("stryker_fussteil_hoch").style.display = "none"; + document.getElementById("stryker_fussteil_angewinkelt").style.display = "none"; } + else if (item.fussteil == "hoch") + { document.getElementById("stryker_fussteil_flach").style.display = "none"; + document.getElementById("stryker_fussteil_hoch").style.display = ""; + document.getElementById("stryker_fussteil_angewinkelt").style.display = "none"; } + else + { document.getElementById("stryker_fussteil_flach").style.display = "none"; + document.getElementById("stryker_fussteil_hoch").style.display = "none"; + document.getElementById("stryker_fussteil_angewinkelt").style.display = ""; } + + if (item.corpuls == "off") + { document.getElementById("corpuls_on").style.display = ""; + document.getElementById("corpuls_off").style.display = "none"; } + else + { document.getElementById("corpuls_on").style.display = "none"; + document.getElementById("corpuls_off").style.display = ""; } + } + }); + + $("#stryker_kopfteil_flach").click(function (e) { + e.preventDefault(); // Prevent form from submitting + + $.post("https://power_stretcher/stryker_einstellen", JSON.stringify({ + id: StrykerID, + part: "Kopfteil", + stellung: "hoch" + })); + return + }) + + $("#corpuls_on").click(function (e) { + e.preventDefault(); // Prevent form from submitting + + $.post("https://power_stretcher/stryker_einstellen", JSON.stringify({ + id: StrykerID, + part: "Corpuls" + })); + return + }) + + $("#corpuls_off").click(function (e) { + e.preventDefault(); // Prevent form from submitting + + $.post("https://power_stretcher/stryker_einstellen", JSON.stringify({ + id: StrykerID, + part: "Corpuls" + })); + return + }) + + $("#stryker_kopfteil_hoch").click(function (e) { + e.preventDefault(); // Prevent form from submitting + + $.post("https://power_stretcher/stryker_einstellen", JSON.stringify({ + id: StrykerID, + part: "Kopfteil", + stellung: "flach" + })); + return + }) + + $("#stryker_seitenteil_oben").click(function (e) { + e.preventDefault(); // Prevent form from submitting + + $.post("https://power_stretcher/stryker_einstellen", JSON.stringify({ + id: StrykerID, + part: "Seitenteil", + stellung: "unten" + })); + return + }) + + $("#stryker_seitenteil_unten").click(function (e) { + e.preventDefault(); // Prevent form from submitting + + $.post("https://power_stretcher/stryker_einstellen", JSON.stringify({ + id: StrykerID, + part: "Seitenteil", + stellung: "oben" + })); + return + }) + + $("#stryker_grundgestell_oben").click(function (e) { + e.preventDefault(); // Prevent form from submitting + + $.post("https://power_stretcher/stryker_einstellen", JSON.stringify({ + id: StrykerID, + part: "Grundgestell", + stellung: "unten" + })); + return + }) + + $("#stryker_grundgestell_unten").click(function (e) { + e.preventDefault(); // Prevent form from submitting + + $.post("https://power_stretcher/stryker_einstellen", JSON.stringify({ + id: StrykerID, + part: "Grundgestell", + stellung: "oben" + })); + return + }) + + $("#stryker_fussteil_flach").mousedown(function (e) { + e.preventDefault(); // Prevent form from submitting + + var stellung = "hoch"; + + if (e.which == 3) + { stellung = "angewinkelt"; } + + $.post("https://power_stretcher/stryker_einstellen", JSON.stringify({ + id: StrykerID, + part: "Fussteil", + stellung: stellung + })); + return + }) + + $("#stryker_fussteil_hoch").mousedown(function (e) { + e.preventDefault(); // Prevent form from submitting + + var stellung = "flach"; + + if (e.which == 3) + { stellung = "angewinkelt"; } + + $.post("https://power_stretcher/stryker_einstellen", JSON.stringify({ + id: StrykerID, + part: "Fussteil", + stellung: stellung + })); + return + }) + + $("#stryker_fussteil_angewinkelt").mousedown(function (e) { + e.preventDefault(); // Prevent form from submitting + + var stellung = "flach"; + + if (e.which == 3) + { stellung = "hoch"; } + + $.post("https://power_stretcher/stryker_einstellen", JSON.stringify({ + id: StrykerID, + part: "Fussteil", + stellung: stellung + })); + return + }) + + $("#stryker_nehmen").click(function (e) { + e.preventDefault(); // Prevent form from submitting + + $.post("https://power_stretcher/stryker_nehmen", JSON.stringify({ + id: StrykerID + })); + return + }) + + + $("#stryker_liegen").click(function (e) { + e.preventDefault(); // Prevent form from submitting + + $.post("https://power_stretcher/stryker_liegen", JSON.stringify({ + id: StrykerID, + anim: 1 + })); + return + }) + + $("#stryker_patient_off").click(function (e) { + e.preventDefault(); // Prevent form from submitting + + $.post("https://power_stretcher/stryker_patient_off", JSON.stringify({ + id: StrykerID + })); + return + }) +}) \ No newline at end of file diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/server.lua b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/server.lua new file mode 100644 index 000000000..38992f8cc Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/server.lua differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/server_custom.lua b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/server_custom.lua new file mode 100644 index 000000000..7fcafd2b0 --- /dev/null +++ b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher/server_custom.lua @@ -0,0 +1,17 @@ +ESXFound = false +QBFound = false + +ESX = nil +QBCore = nil +PlayerData = nil + +if GetResourceState("es_extended") == "started" then + ESXFound = true + ESX = exports["es_extended"]:getSharedObject() + print("ESX gefunden!") +end +if GetResourceState("qb-core") == "started" then + QBFound = true + QBCore = exports['qb-core']:GetCoreObject() + print("QB gefunden!") +end \ No newline at end of file diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher_props/.fxap b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher_props/.fxap new file mode 100644 index 000000000..246015467 Binary files /dev/null and b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher_props/.fxap differ diff --git a/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher_props/carvariations.meta b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher_props/carvariations.meta new file mode 100644 index 000000000..d43b43be0 --- /dev/null +++ b/resources/[Developer]/[Nordi]/[POWER_STRETCHER]-20250610T185804Z-1-001/[POWER_STRETCHER]/power_stretcher_props/carvariations.meta @@ -0,0 +1,37 @@ + +