forked from chickenlord01/johnsspeedlimitdisplay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigcheck.lua
More file actions
7 lines (6 loc) · 890 Bytes
/
configcheck.lua
File metadata and controls
7 lines (6 loc) · 890 Bytes
1
2
3
4
5
6
7
if Config.enableBadssentialsIntegration and (GetResourceState("Badssentials") ~= "starting" and GetResourceState("Badssentials") ~= "started") then
print("^1--------------------------------------------\n^4[" .. GetCurrentResourceName() .. "] " .. "^1ERROR:\n ^1enableBadssentialsIntegration is set to true but Badssentials could not be found or is not started!\n^3Make sure Badssentials is installed, started, and named '^0Badssentials^3'.\n^1--------------------------------------------^0")
end
if (Config.DisplaySettings.speedType ~= "MPH" and Config.DisplaySettings.speedType ~= "KPH") then
print("^1--------------------------------------------\n^4[" .. GetCurrentResourceName() .. "] " .. "^1ERROR:\n ^1speedType is set to '" .. Config.DisplaySettings.speedType .. "', it must be set to 'MPH' or 'KPH'. Check your config!\n^1--------------------------------------------^0")
end