This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ========================================================================================== | |
| -- 1. EFEKTY WIZUALNE, BLIPY I FILTRY (Raz przy starcie) | |
| -- ========================================================================================== | |
| Citizen.CreateThread(function() | |
| SetTimecycleModifier("panicbutton") | |
| SetTimecycleModifierStrength(0.8) | |
| -- Funkcja pomocnicza do blipów, by nie powtarzać kodu | |
| local function CreateZoneBlips(zones, color, sprite, name) | |
| for _, zone in pairs(zones) do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local zombieStyles = { | |
| 'clipset@anim@ingame@move_m@zombie@core', | |
| 'clipset@anim@ingame@move_m@zombie@strafe' | |
| } | |
| Citizen.CreateThread(function() | |
| for _, style in ipairs(zombieStyles) do | |
| RequestClipSet(style) | |
| while not HasClipSetLoaded(style) do Citizen.Wait(10) end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ========================================================================================== | |
| -- 1. GŁÓWNY SYSTEM ŚWIATA I SAFE ZONES | |
| -- ========================================================================================== | |
| Citizen.CreateThread(function() | |
| while true do | |
| Citizen.Wait(0) | |
| local playerPed = PlayerPedId() | |
| local coords = GetEntityCoords(playerPed) | |
| local playerVeh = GetVehiclePedIsIn(playerPed, false) | |
| local allPlayers = GetActivePlayers() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local Shooting = false | |
| local Running = false | |
| local xSound = exports.xsound | |
| -- ========================================================================================== | |
| -- 1. DETEKCJA HAŁASU | |
| -- ========================================================================================== | |
| Citizen.CreateThread(function() | |
| while true do | |
| local playerPed = PlayerPedId() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fx_version 'cerulean' | |
| games { 'gta5' } | |
| author 'alphaczeq_' | |
| description 'System Zombie korzystający z bibliotek OX' | |
| version '1.0.3' | |
| -- Dodanie zależności od ox_lib | |
| shared_scripts { | |
| '@ox_lib/init.lua', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Config = {} | |
| -- ========================================================================================== | |
| -- 1. STREFY (SafeZones & RedZones) | |
| -- ========================================================================================== | |
| Config.SafeZones = { | |
| {x = 750.7854, y = 1283.0669, z = 360.1461, radius = 80.0}, -- Stacja Radiowa | |
| {x = 1853.6666, y = 3688.0222, z = 33.2777, radius = 40.0}, -- Sandy Shores | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local LootConfig = { | |
| [1] = { -- NORMAL | |
| { item = 'water', chance = 35, min = 1, max = 3 }, | |
| { item = 'bread', chance = 30, min = 1, max = 4 }, | |
| { item = 'wood', chance = 15, min = 1, max = 3 }, | |
| { item = 'scrapmetal', chance = 25, min = 1, max = 3 }, | |
| }, | |
| [2] = { -- RUNNER | |
| { item = 'water', chance = 35, min = 1, max = 3 }, | |
| { item = 'bread', chance = 30, min = 1, max = 4 }, |