mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 18:58:54 +00:00
Minor cleanup
This commit is contained in:
+4
-3
@@ -18,7 +18,7 @@ Citizen.CreateThread(function()
|
||||
|
||||
if CurrentAction == 'boat_shop' then
|
||||
|
||||
if not Config.EnableLicense then
|
||||
if not Config.LicenseEnable then
|
||||
OpenBoatShop(Config.Zones.BoatShops[CurrentActionData.zoneNum])
|
||||
else -- check for license
|
||||
|
||||
@@ -90,6 +90,7 @@ Citizen.CreateThread(function()
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
|
||||
for i=1, #Config.Zones.BoatShops, 1 do
|
||||
-- draw boat shop marker
|
||||
local zone = Config.Zones.BoatShops[i].Outside
|
||||
if GetDistanceBetweenCoords(coords, zone.x, zone.y, zone.z, true) < Config.DrawDistance then
|
||||
DrawMarker(Config.MarkerType, zone.x, zone.y, zone.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, Config.Marker.x, Config.Marker.y, Config.Marker.z, Config.Marker.r, Config.Marker.g, Config.Marker.b, 100, false, true, 2, false, false, false, false)
|
||||
@@ -97,13 +98,13 @@ Citizen.CreateThread(function()
|
||||
end
|
||||
|
||||
for i=1, #Config.Zones.Garages, 1 do
|
||||
-- draw garage maker
|
||||
local zoneOut = Config.Zones.Garages[i].GaragePos
|
||||
if GetDistanceBetweenCoords(coords, zoneOut.x, zoneOut.y, zoneOut.z, true) < Config.DrawDistance then
|
||||
DrawMarker(Config.MarkerType, zoneOut.x, zoneOut.y, zoneOut.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, Config.Marker.x, Config.Marker.y, Config.Marker.z, Config.Marker.r, Config.Marker.g, Config.Marker.b, 100, false, true, 2, false, false, false, false)
|
||||
end
|
||||
end
|
||||
|
||||
for i=1, #Config.Zones.Garages, 1 do
|
||||
-- draw store marker
|
||||
local zoneIn = Config.Zones.Garages[i].StorePos
|
||||
if GetDistanceBetweenCoords(coords, zoneIn.x, zoneIn.y, zoneIn.z, true) < Config.DrawDistance then
|
||||
DrawMarker(Config.MarkerType, zoneIn.x, zoneIn.y, zoneIn.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, Config.StoreMarker.x, Config.StoreMarker.y, Config.StoreMarker.z, Config.StoreMarker.r, Config.StoreMarker.g, Config.StoreMarker.b, 100, false, true, 2, false, false, false, false)
|
||||
|
||||
+5
-5
@@ -2,20 +2,20 @@ Config = {}
|
||||
|
||||
Config.Locale = 'en'
|
||||
|
||||
Config.EnableLicense = true -- enable boat license?
|
||||
Config.LicenseEnable = true -- enable boat license? Requires esx_license
|
||||
Config.LicensePrice = 50000
|
||||
|
||||
Config.MarkerType = 1
|
||||
Config.DrawDistance = 100.0
|
||||
|
||||
Config.Marker = {
|
||||
r = 100, g = 204, b = 100, -- blue-ish color, standard size circle
|
||||
x = 1.5, y = 1.5, z = 1.0
|
||||
r = 100, g = 204, b = 100, -- blue-ish color
|
||||
x = 1.5, y = 1.5, z = 1.0 -- standard size circle
|
||||
}
|
||||
|
||||
Config.StoreMarker = {
|
||||
r = 255, g = 0, b = 0,
|
||||
x = 5.0, y = 5.0, z = 1.0 -- big circle for storing boat
|
||||
r = 255, g = 0, b = 0, -- red color
|
||||
x = 5.0, y = 5.0, z = 1.0 -- big circle for storing boat
|
||||
}
|
||||
|
||||
Config.Zones = {
|
||||
|
||||
Reference in New Issue
Block a user