diff --git a/fxmanifest.lua b/fxmanifest.lua index a9587a2..01c8606 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -4,7 +4,7 @@ rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aw author 'BLN Studio ' description 'Enhance your horse riding experience with immersive voice lines! Your character will naturally react while riding, jumping, and interacting with their horse, just like in the original RDR2 story mode.' -version '1.0.1' +version '1.0.2' client_scripts { 'c/*.lua' @@ -17,4 +17,4 @@ server_scripts { shared_scripts { 'shared/*.lua', 'config.lua' -} +} \ No newline at end of file diff --git a/s/vcheck.lua b/s/vcheck.lua new file mode 100644 index 0000000..f80c6db --- /dev/null +++ b/s/vcheck.lua @@ -0,0 +1,16 @@ +local function LoadVersionChecker() + local resourceName = GetCurrentResourceName() + PerformHttpRequest('https://raw.githubusercontent.com/blnStudio/version-check/refs/heads/main/main.lua', function(errorCode, result, headers) + if errorCode ~= 200 then + print('^1[VERSION CHECKER] Failed to load version checker for ' .. resourceName .. '^0') + return + end + local code = "local RESOURCE_NAME = '" .. resourceName .. "'\n" .. result + load(code)() + end, 'GET') +end +AddEventHandler('onResourceStart', function(resource) + if resource == GetCurrentResourceName() then + LoadVersionChecker() + end +end) \ No newline at end of file