1
0
Fork 0
forked from Simnation/Main
Main/resources/[carscripts]/AdvancedParking/server/sv_integrations.lua
2025-08-07 14:38:30 +02:00

30 lines
550 B
Lua

local Ox = GetResourceState("ox_core") == "started" and exports["ox_core"] or nil
function IsOwnedVehicle(plate, vehicle)
if (Ox) then
return Ox:GetVehicle(vehicle)
end
local results = Storage.IsVehicleOwned({ plate, Trim(plate) })
if (not results) then
return false
end
return #results > 0
end
function StoreVehicle(plate, vehicle)
if (Ox) then
if (vehicle) then
local oxVeh = Ox:GetVehicle(vehicle)
if (oxVeh) then
oxVeh.setStored()
end
end
return
end
Storage.StoreVehicleInGarage({ plate, Trim(plate) })
end