Write the version after first launch

This commit is contained in:
Jonny_Bro (Nikita) 2024-07-24 14:23:03 +05:00
parent bc88a68ad0
commit 714e4f787b
No known key found for this signature in database
GPG key ID: 3F1ECC04147E9BD8

View file

@ -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