From 714e4f787bb8a2838782160fe4e09e502c417a86 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Wed, 24 Jul 2024 14:23:03 +0500 Subject: [PATCH] Write the version after first launch --- beatrun/gamemodes/beatrun/gamemode/cl_init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beatrun/gamemodes/beatrun/gamemode/cl_init.lua b/beatrun/gamemodes/beatrun/gamemode/cl_init.lua index ac153f7..c178950 100644 --- a/beatrun/gamemodes/beatrun/gamemode/cl_init.lua +++ b/beatrun/gamemodes/beatrun/gamemode/cl_init.lua @@ -6,6 +6,10 @@ end http.Fetch("https://raw.githubusercontent.com/JonnyBro/beatrun/main/version.txt", function(body, size, headers, code) if code == 200 then + if not file.Exists("beatrun/version.txt", "DATA") then + file.Write("beatrun/version.txt", body) + end + if body ~= VERSIONGLOBAL then file.Write("beatrun/version.txt", body) else