1
0
Fork 0
forked from Simnation/Main
Main/resources/[jobs]/[mechanic]/jg-vehiclemileage/main.lua
2025-06-07 08:51:21 +02:00

11 lines
No EOL
568 B
Lua

Framework = {}
if (Config.Framework == "auto" and (GetResourceState("qbx_core") == "started" or GetResourceState("qb-core") == "started")) or Config.Framework == "Qbox" or Config.Framework == "QBCore" then
Config.Framework = "QBCore"
Framework.VehiclesTable = "player_vehicles"
elseif (Config.Framework == "auto" and GetResourceState("es_extended") == "started") or Config.Framework == "ESX" then
Config.Framework = "ESX"
Framework.VehiclesTable = "owned_vehicles"
else
error("You haven't set a valid framework. Valid options can be found in main.lua!")
end