mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 10:48:52 +00:00
New helicopter system, Config re-write
This commit is contained in:
+147
-122
@@ -1,11 +1,13 @@
|
||||
Config = {}
|
||||
|
||||
Config.DrawDistance = 100.0
|
||||
Config.MarkerColor = { r = 102, g = 0, b = 102 }
|
||||
Config.MarkerSize = { x = 1.5, y = 1.5, z = 1.0 }
|
||||
|
||||
Config.Marker = { type = 1, x = 1.5, y = 1.5, z = 1.0, r = 102, g = 0, b = 102, rotate = false }
|
||||
|
||||
Config.ReviveReward = 700 -- revive reward, set to 0 if you don't want it enabled
|
||||
Config.AntiCombatLog = true -- enable anti-combat logging?
|
||||
Config.LoadIpl = true -- disable if you're using fivem-ipl or other IPL loaders
|
||||
|
||||
Config.Locale = 'fr'
|
||||
|
||||
local second = 1000
|
||||
@@ -21,24 +23,156 @@ Config.RemoveWeaponsAfterRPDeath = true
|
||||
Config.RemoveCashAfterRPDeath = true
|
||||
Config.RemoveItemsAfterRPDeath = true
|
||||
|
||||
-- Let the player pay for respawning early, if he can afford it.
|
||||
-- Let the player pay for respawning early, only if he can afford it.
|
||||
Config.EarlyRespawnFine = false
|
||||
Config.EarlyRespawnFineAmount = 5000
|
||||
|
||||
Config.Blip = {
|
||||
Pos = { x = 307.76, y = -1433.47, z = 28.97 },
|
||||
Sprite = 61,
|
||||
Display = 4,
|
||||
Scale = 1.2,
|
||||
Colour = 2
|
||||
Config.Hospitals = {
|
||||
|
||||
CentralLosSantos = {
|
||||
|
||||
Blip = {
|
||||
coords = vector3(307.7, -1433.4, 28.9),
|
||||
sprite = 61,
|
||||
scale = 1.2,
|
||||
color = 2
|
||||
},
|
||||
|
||||
AmbulanceActions = {
|
||||
vector3(268.4, -1363.3, 23.5)
|
||||
},
|
||||
|
||||
Pharmacies = {
|
||||
vector3(230.1, -1366.1, 38.5)
|
||||
},
|
||||
|
||||
Vehicles = {
|
||||
{
|
||||
Spawner = vector3(307.7, -1433.4, 30.0),
|
||||
Marker = { type = 36, x = 1.0, y = 1.0, z = 1.0, r = 100, g = 50, b = 200, a = 100, rotate = true },
|
||||
SpawnPoints = {
|
||||
{ coords = vector3(297.2, -1429.5, 29.8), heading = 227.6, radius = 4.0 },
|
||||
{ coords = vector3(294.0, -1433.1, 29.8), heading = 227.6, radius = 4.0 },
|
||||
{ coords = vector3(309.4, -1442.5, 29.8), heading = 227.6, radius = 6.0 }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Helicopters = {
|
||||
{
|
||||
Spawner = vector3(317.5, -1449.5, 46.5),
|
||||
InsideShop = vector3(305.6, -1419.7, 41.5),
|
||||
Marker = { type = 34, x = 1.5, y = 1.5, z = 1.5, r = 100, g = 150, b = 150, a = 100, rotate = true },
|
||||
SpawnPoints = {
|
||||
{ coords = vector3(313.5, -1465.1, 46.5), heading = 142.7, radius = 10.0 },
|
||||
{ coords = vector3(299.5, -1453.2, 46.5), heading = 142.7, radius = 10.0 }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
VehicleDeleters = {
|
||||
vector3(327.6, -1481.1, 28.8)
|
||||
},
|
||||
|
||||
FastTravels = {
|
||||
{
|
||||
From = vector3(294.7, -1448.1, 29.0),
|
||||
To = { coords = vector3(272.8, -1358.8, 23.5), heading = 0.0 },
|
||||
Marker = { type = 1, x = 2.0, y = 2.0, z = 0.5, r = 102, g = 0, b = 102, rotate = false }
|
||||
},
|
||||
|
||||
{
|
||||
From = vector3(275.3, -1361, 23.5),
|
||||
To = { coords = vector3(295.8, -1446.5, 28.9), heading = 0.0 },
|
||||
Marker = { type = 1, x = 2.0, y = 2.0, z = 0.5, r = 102, g = 0, b = 102, rotate = false }
|
||||
},
|
||||
|
||||
{
|
||||
From = vector3(247.3, -1371.5, 23.5),
|
||||
To = { coords = vector3(333.1, -1434.9, 45.5), heading = 138.6 },
|
||||
Marker = { type = 1, x = 1.5, y = 1.5, z = 0.5, r = 102, g = 0, b = 102, rotate = false }
|
||||
},
|
||||
|
||||
{
|
||||
From = vector3(335.5, -1432.0, 45.50),
|
||||
To = { coords = vector3(249.1, -1369.6, 23.5), heading = 0.0 },
|
||||
Marker = { type = 1, x = 2.0, y = 2.0, z = 0.5, r = 102, g = 0, b = 102, rotate = false }
|
||||
},
|
||||
|
||||
{
|
||||
From = vector3(234.5, -1373.7, 20.9),
|
||||
To = { coords = vector3(320.9, -1478.6, 28.8), heading = 0.0 },
|
||||
Marker = { type = 1, x = 1.5, y = 1.5, z = 1.0, r = 102, g = 0, b = 102, rotate = false }
|
||||
},
|
||||
|
||||
{
|
||||
From = vector3(317.9, -1476.1, 28.9),
|
||||
To = { coords = vector3(238.6, -1368.4, 23.5), heading = 0.0 },
|
||||
Marker = { type = 1, x = 1.5, y = 1.5, z = 1.0, r = 102, g = 0, b = 102, rotate = false }
|
||||
}
|
||||
},
|
||||
|
||||
FastTravelsPrompt = {
|
||||
{
|
||||
From = vector3(237.4, -1373.8, 26.0),
|
||||
To = { coords = vector3(251.9, -1363.3, 38.5), heading = 0.0 },
|
||||
Marker = { type = 1, x = 1.5, y = 1.5, z = 0.5, r = 102, g = 0, b = 102, rotate = false },
|
||||
Prompt = _U('fast_travel')
|
||||
},
|
||||
|
||||
{
|
||||
From = vector3(256.5, -1357.7, 36.0),
|
||||
To = { coords = vector3(235.4, -1372.8, 26.3), heading = 0.0 },
|
||||
Marker = { type = 1, x = 1.5, y = 1.5, z = 0.5, r = 102, g = 0, b = 102, rotate = false },
|
||||
Prompt = _U('fast_travel')
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Config.HelicopterSpawner = {
|
||||
SpawnPoint = { x = 313.33, y = -1465.2, z = 45.5 },
|
||||
Heading = 0.0
|
||||
Config.AuthorizedHelicopters = {
|
||||
|
||||
ambulance = {},
|
||||
|
||||
doctor = {
|
||||
{
|
||||
model = 'buzzard2',
|
||||
label = 'Nagasaki Buzzard',
|
||||
price = 150000
|
||||
}
|
||||
},
|
||||
|
||||
chief_doctor = {
|
||||
{
|
||||
model = 'buzzard2',
|
||||
label = 'Nagasaki Buzzard',
|
||||
price = 150000
|
||||
},
|
||||
|
||||
{
|
||||
model = 'seasparrow',
|
||||
label = 'Sea Sparrow',
|
||||
price = 300000
|
||||
}
|
||||
},
|
||||
|
||||
boss = {
|
||||
{
|
||||
model = 'buzzard2',
|
||||
label = 'Nagasaki Buzzard',
|
||||
price = 100000
|
||||
},
|
||||
|
||||
{
|
||||
model = 'seasparrow',
|
||||
label = 'Sea Sparrow',
|
||||
price = 250000
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-- https://wiki.rage.mp/index.php?title=Vehicles
|
||||
Config.AuthorizedVehicles = {
|
||||
|
||||
{
|
||||
@@ -47,112 +181,3 @@ Config.AuthorizedVehicles = {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Config.Zones = {
|
||||
|
||||
HospitalInteriorEntering1 = { -- Main entrance
|
||||
Pos = { x = 294.2, y = -1448.60, z = 29.0 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
HospitalInteriorInside1 = {
|
||||
Pos = { x = 272.8, y = -1358.8, z = 23.5 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
HospitalInteriorOutside1 = {
|
||||
Pos = { x = 295.8, y = -1446.5, z = 28.9 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
HospitalInteriorExit1 = {
|
||||
Pos = { x = 275.7, y = -1361.5, z = 23.5 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
HospitalInteriorEntering2 = { -- Lift go to the roof
|
||||
Pos = { x = 247.1, y = -1371.4, z = 23.5 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
HospitalInteriorInside2 = { -- Roof outlet
|
||||
Pos = { x = 333.1, y = -1434.9, z = 45.5 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
HospitalInteriorOutside2 = { -- Lift back from roof
|
||||
Pos = { x = 249.1, y = -1369.6, z = 23.5 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
HospitalInteriorExit2 = { -- Roof entrance
|
||||
Pos = { x = 335.5, y = -1432.0, z = 45.5 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
AmbulanceActions = { -- Cloakroom
|
||||
Pos = { x = 268.4, y = -1363.330, z = 23.5 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
VehicleSpawner = {
|
||||
Pos = { x = 307.76, y = -1433.47, z = 28.97 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
VehicleSpawnPoint = {
|
||||
Pos = { x = 304.87, y = -1437.69, z = 28.80 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
VehicleDeleter = {
|
||||
Pos = { x = 327.67, y = -1481.1, z = 28.83 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
Pharmacy = {
|
||||
Pos = { x = 230.13, y = -1366.18, z = 38.53 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
ParkingDoorGoOutInside = {
|
||||
Pos = { x = 234.56, y = -1373.77, z = 20.97 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
ParkingDoorGoOutOutside = {
|
||||
Pos = { x = 320.98, y = -1478.62, z = 28.81 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
ParkingDoorGoInInside = {
|
||||
Pos = { x = 238.64, y = -1368.48, z = 23.53 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
ParkingDoorGoInOutside = {
|
||||
Pos = { x = 317.97, y = -1476.13, z = 28.97 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
StairsGoTopTop = {
|
||||
Pos = { x = 251.91, y = -1363.3, z = 38.53 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
StairsGoTopBottom = {
|
||||
Pos = { x = 237.45, y = -1373.89, z = 26.30 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
StairsGoBottomTop = {
|
||||
Pos = { x = 256.58, y = -1357.7, z = 37.30 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
StairsGoBottomBottom = {
|
||||
Pos = { x = 235.45, y = -1372.89, z = 26.30 },
|
||||
Type = -1
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user