-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathversion.lua
More file actions
36 lines (27 loc) · 1.09 KB
/
Copy pathversion.lua
File metadata and controls
36 lines (27 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
local label =
[[
ANANIN RUHUNA PASPAS ATILIR
Kaypuz Tarafından Yaratıldı
]]
function GetCurrentVersion()
return GetResourceMetadata( GetCurrentResourceName(), "version" )
end
PerformHttpRequest( "https://raw.githubusercontent.com/kaypuz/NewCarPackKaypuz_web/main/version.txt", function( err, text, headers )
Citizen.Wait( 2000 )
print( label )
local curVer = GetCurrentVersion()
print( "Şimdiki Versiyonu:" .. curVer )
if ( text ~= nil ) then
print( "En Son Önerilen Sürüm:" .. text .."" )
if ( text ~= curVer ) then
print( "^1NewCarPackKaypuz sürümünüz güncel değil, en son sürümü almak için Github gönderisini ziyaret edin.^0" )
else
print( "^2NewCarPackKaypuz Güncel!^0" )
end
else
print( "^1En son sürüm bilgileri alınırken bir hata oluştu.^0" )
end
if ( GetCurrentResourceName() ~= "NewCarPackKaypuz" ) then
print( "^1Hata: Kaynak adı NewCarPackKaypuz değil, kaynakla ilgili sorunlar olmasını bekliyoruz. Herhangi bir sorun olmadığından emin olmak için lütfen kaynak adını şu şekilde bırakın NewCarPackKaypuz^0" )
end
end )