From cc0a3d736f6c57a8ebff5eb2d4d88514b76098cf Mon Sep 17 00:00:00 2001 From: C1XTZ Date: Sat, 23 Dec 2023 01:25:39 +0100 Subject: [PATCH] recommend updating CSP when under 0.2.0 --- mobilephone/mobilephone.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mobilephone/mobilephone.lua b/mobilephone/mobilephone.lua index f7bb9f2..75573c6 100644 --- a/mobilephone/mobilephone.lua +++ b/mobilephone/mobilephone.lua @@ -151,6 +151,16 @@ function checkIfFriend(carIndex) end end +if ac.getPatchVersionCode() < 2651 then + chat.messagecount = chat.messagecount + 1 + local yellmessage = chat.messagecount + chat.messages[yellmessage] = { 'YOU ARE USING A VERSION OF CSP OLDER THAN 0.2.0!\nIF ANYTHING BREAKS UPDATE TO THE LATEST VERSION!', '', '' } + local yellatuser = setTimeout(function() + chat.messagecount = chat.messagecount - 1 + table.remove(chat.messages, yellmessage) + end, 10) +end + --chat message event handler ac.onChatMessage(function(message, senderCarIndex, senderSessionID) chat.messagecount = chat.messagecount + 1 @@ -361,6 +371,9 @@ end function script.windowMainSettings(dt) ui.tabBar('TabBar', function() + if ac.getPatchVersionCode() < 2651 then + ui.textColored('You are using a version of CSP older than 0.2.0!\nIf anything breaks update to the latest version.\n ', rgbm.colors.red) + end --display settings ui.tabItem('Display', function() --display and glow color