From aa05ddbead95b74622f7f1208a548244d58fa476 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 22 Sep 2025 19:48:36 +0100 Subject: [PATCH] Added New Effects Added: - Clowning Around - CRT TV --- Peds/PedsClowiningAround.lua | 26 ++++++++++++++++++++++++++ Screen/ScreenCRTTV.lua | 22 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 Peds/PedsClowiningAround.lua create mode 100644 Screen/ScreenCRTTV.lua diff --git a/Peds/PedsClowiningAround.lua b/Peds/PedsClowiningAround.lua new file mode 100644 index 0000000..e71651d --- /dev/null +++ b/Peds/PedsClowiningAround.lua @@ -0,0 +1,26 @@ +EffectInfo = { + Name = "Clowning Around", + EffectId = "peds_clowningaround", + TimedType = "None", + EffectGroup = "_group_trafficspawner", + EffectCategory = "TrafficSpawner" + +} + +function OnStart() + clownVanHash = GET_HASH_KEY("speedo2") + SetSurroundingPedsInVehicles(clownVanHash, 0) + + playerPed = PLAYER_PED_ID() + + coords = GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(playerPed, 0, 10, 0) + heading = GET_ENTITY_HEADING(playerPed) + van = CreateTempVehicle(clownVanHash, coords.x, coords.y, coords.z, heading) + TASK_WARP_PED_INTO_VEHICLE(playerPed, van, -1) +end + +function OnStop() +end + +function OnTick() +end diff --git a/Screen/ScreenCRTTV.lua b/Screen/ScreenCRTTV.lua new file mode 100644 index 0000000..bdcfff1 --- /dev/null +++ b/Screen/ScreenCRTTV.lua @@ -0,0 +1,22 @@ +EffectInfo = { + Name = "CRT TV", + EffectId = "screen_crttv", + TimedType = "Short", + EffectGroup = "_group_shader", + EffectCategory = "Shader" + +} + +function OnStart() +end + +function OnStop() + CLEAR_TIMECYCLE_MODIFIER() +end + +function OnTick() + if GET_TIMECYCLE_MODIFIER_INDEX() == -1 then + SET_TIMECYCLE_MODIFIER("Broken_camera_fuzz") + SET_TIMECYCLE_MODIFIER_STRENGTH(0.7) + end +end