Skip to content

Commit

Permalink
recommend updating CSP when under 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
C1XTZ committed Dec 23, 2023
1 parent f0a740d commit cc0a3d7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mobilephone/mobilephone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cc0a3d7

Please sign in to comment.