From 3042cae3359c3533900585cd4fda1737cf417935 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Fri, 5 Jan 2024 02:23:10 +0500 Subject: [PATCH] fix prop spawn in singleplayer --- beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua b/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua index 8e6ca90..ea74d5c 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua @@ -6,7 +6,7 @@ if SERVER then local spawn = {"PlayerGiveSWEP", "PlayerSpawnEffect", "PlayerSpawnNPC", "PlayerSpawnObject", "PlayerSpawnProp", "PlayerSpawnRagdoll", "PlayerSpawnSENT", "PlayerSpawnSWEP", "PlayerSpawnVehicle"} local function BlockSpawn(ply) - if not allowPropSpawn:GetBool() or not ply:IsAdmin() then return false end + if not allowPropSpawn:GetBool() or not ply:IsAdmin() or not game.SinglePlayer() then return false end end for _, v in ipairs(spawn) do