From d603067c77ba27f91d32fec533f0ff61b547d342 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sat, 28 Jun 2025 20:04:50 +0100 Subject: [PATCH] Remove files i was testing with (forgot) --- dev_modules/pedGenerator.lua | 6 -- dev_modules/targetCreator.lua | 6 -- fxmanifest.lua | 1 - ui_modules/pedGenerator.lua | 101 ---------------------------------- ui_modules/targetCreator.lua | 6 -- 5 files changed, 120 deletions(-) delete mode 100644 dev_modules/pedGenerator.lua delete mode 100644 dev_modules/targetCreator.lua delete mode 100644 ui_modules/pedGenerator.lua delete mode 100644 ui_modules/targetCreator.lua diff --git a/dev_modules/pedGenerator.lua b/dev_modules/pedGenerator.lua deleted file mode 100644 index 410ad43..0000000 --- a/dev_modules/pedGenerator.lua +++ /dev/null @@ -1,6 +0,0 @@ -pedGenerator = {} - -pedGenerator.Start = function() - - -end \ No newline at end of file diff --git a/dev_modules/targetCreator.lua b/dev_modules/targetCreator.lua deleted file mode 100644 index 17ccd42..0000000 --- a/dev_modules/targetCreator.lua +++ /dev/null @@ -1,6 +0,0 @@ -targetCreator = {} - -targetCreator.Start = function() - - -end \ No newline at end of file diff --git a/fxmanifest.lua b/fxmanifest.lua index 1b71221..de992e7 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -24,5 +24,4 @@ server_scripts { client_scripts { 'clientFrameworkCache.lua', 'ui_modules/*.lua', - 'dev_modules/*.lua', } \ No newline at end of file diff --git a/ui_modules/pedGenerator.lua b/ui_modules/pedGenerator.lua deleted file mode 100644 index 2132e05..0000000 --- a/ui_modules/pedGenerator.lua +++ /dev/null @@ -1,101 +0,0 @@ -PedGenerator = { - Helpers = {} -} -local debug = true -local debugPrint = function(...) - if debug then - print("^5PedGen^7:^2", ..., "^7") - end -end -local currentPed = nil -local pedPreview = nil -debugPrint("Module loaded") -PedGenerator.Start = function() - currentPed = PedGenerator.Helpers.pedHandler("mp_m_freemode_01") -end - -PedGenerator.Helpers.pedHandler = function(model, properties) - if currentPed then - PedGenerator.Helpers.removeHandlerPed(currentPed) - end - --- - local hash = type(model) == 'string' and GetHashKey(model) or model - debugPrint("Requesting Model", "^7"..hash) - RequestModel(hash) - - debugPrint("Loading Model...") - while not HasModelLoaded(hash) do Wait(1) end - - debugPrint("Creating new ped") - local tempPed = CreatePed(4, hash, 0.0, 0.0, 0.0, 0.0, false, false) - - debugPrint("Forcing ped invisiblity") - SetEntityCollision(tempPed, false, true) - SetEntityInvincible(tempPed, true) - NetworkSetEntityInvisibleToNetwork(tempPed, true) - SetEntityCanBeDamaged(tempPed, false) - SetBlockingOfNonTemporaryEvents(tempPed, true) - FreezeEntityPosition(tempPed, true) - SetEntityAlpha(tempPed, 255, false) - SetEntityVisible(tempPed, true, false) - - if properties then - debugPrint("Properties found, starting changes") - - end - - PedGenerator.Helpers.sendPedToFrontend(tempPed) - - return tempPed -end - -PedGenerator.Helpers.sendPedToFrontend = function(ped) - if pedPreview then - debugPrint("ped exists, triggering removePedFromFrontend") - PedGenerator.Helpers.removePedFromFrontend(pedPreview) - Wait(500) - end - - debugPrint("Cloning created ped", ped) - pedPreview = ClonePed(ped, false, true, false) - - debugPrint("Activating frontend") - SetFrontendActive(true) - ActivateFrontendMenu(`FE_MENU_VERSION_EMPTY_NO_BACKGROUND`, true, -1) - Wait(100) - SetMouseCursorVisible(false) - - local x, y, z = table.unpack(GetEntityCoords(ped)) - - SetEntityCoords(pedPreview, x, y, z - 10) - FreezeEntityPosition(pedPreview, true) - SetEntityVisible(pedPreview, false, false) - --NetworkSetEntityInvisibleToNetwork(pedPreview, false) - SetPedAsNoLongerNeeded(pedPreview) - - debugPrint("Sending Ped to Pausemenu") - GivePedToPauseMenu(pedPreview, 2) - SetPauseMenuPedLighting(true) - SetPauseMenuPedSleepState(true) -end - -PedGenerator.Helpers.removePedFromFrontend = function(ped) - DeleteEntity(ped) - SetFrontendActive(false) -end - -PedGenerator.Helpers.removeHandlerPed = function(ped) - debugPrint("Removing old ped", ped) - DeletePed(ped) -end - -RegisterCommand("pedgen", function(source, args, rawCommand) - PedGenerator.Start() -end, false) - -AddEventHandler('onResourceStop', function(r) - if r ~= GetCurrentResourceName() then return end - print("test") - PedGenerator.Helpers.removePedFromFrontend(pedPreview) - SetFrontendActive(false) -end) \ No newline at end of file diff --git a/ui_modules/targetCreator.lua b/ui_modules/targetCreator.lua deleted file mode 100644 index 2e87f15..0000000 --- a/ui_modules/targetCreator.lua +++ /dev/null @@ -1,6 +0,0 @@ -TargetCreator = {} - -TargetCreator.Start = function() - - -end \ No newline at end of file