mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Refactored files, minor improvementrs & cleanup
This commit is contained in:
@@ -0,0 +1,167 @@
|
||||
Config.Jobs.fisherman = {
|
||||
BlipInfos = {
|
||||
Sprite = 68,
|
||||
Color = 38
|
||||
},
|
||||
Vehicles = {
|
||||
Truck = {
|
||||
Spawner = 1,
|
||||
Hash = "benson",
|
||||
Trailer = "none",
|
||||
HasCaution = true
|
||||
},
|
||||
Boat = {
|
||||
Spawner = 2,
|
||||
Hash = "tug",
|
||||
Trailer = "none",
|
||||
HasCaution = false
|
||||
}
|
||||
},
|
||||
Zones = {
|
||||
CloakRoom = {
|
||||
Pos = {x = 868.39929199219, y = -1639.7556152344, z = 29.339252471924},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('fm_fish_locker'),
|
||||
Type = "cloakroom",
|
||||
Hint = _U('cloak_change'),
|
||||
GPS = {x = 880.74462890625, y = -1663.9635009766, z = 29.370491027832}
|
||||
},
|
||||
|
||||
FishingSpot = {
|
||||
Pos = {x = 4435.21, y = 4829.6, z = 0.3439},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Size = {x = 110.0, y = 110.0, z = 10.0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('fm_fish_area'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('fm_fish'),
|
||||
db_name= "fish",
|
||||
time = 2000,
|
||||
max = 100,
|
||||
add = 1,
|
||||
remove = 1,
|
||||
requires = "nothing",
|
||||
requires_name = "Nothing",
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('fm_fish_button'),
|
||||
GPS = {x = 3859.43, y = 4448.83, z = 0.39994}
|
||||
},
|
||||
|
||||
BoatSpawner = {
|
||||
Pos = {x = 3867.44, y = 4463.62, z = 1.72386},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('fm_spawnboat_title'),
|
||||
Type = "vehspawner",
|
||||
Spawner = 2,
|
||||
Hint = _U('fm_spawnboat'),
|
||||
Caution = 0,
|
||||
GPS = {x = 4435.21, y = 4829.6, z = 0.3439}
|
||||
},
|
||||
|
||||
BoatSpawnPoint = {
|
||||
Pos = {x = 3888.3, y = 4468.09, z = 0.0},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Marker= -1,
|
||||
Blip = false,
|
||||
Name = _U('fm_boat_title'),
|
||||
Type = "vehspawnpt",
|
||||
Spawner = 2,
|
||||
GPS = 0,
|
||||
Heading = 270.1
|
||||
},
|
||||
|
||||
BoatDeletePoint = {
|
||||
Pos = {x = 3859.43, y = 4448.83, z = 0.39994},
|
||||
Size = {x = 10.0, y = 10.0, z = 1.0},
|
||||
Color = {r = 255, g = 0, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('fm_boat_return_title'),
|
||||
Type = "vehdelete",
|
||||
Hint = _U('fm_boat_return_button'),
|
||||
Spawner = 2,
|
||||
Caution = 0,
|
||||
GPS = {x = -1012.64758300781, y = -1354.62634277344, z = 5.54292726516724},
|
||||
Teleport = {x = 3867.44, y = 4463.62, z = 1.72386}
|
||||
},
|
||||
|
||||
|
||||
VehicleSpawner = {
|
||||
Pos = {x = 880.74462890625, y = -1663.9635009766, z = 29.370491027832},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('spawn_veh'),
|
||||
Type = "vehspawner",
|
||||
Spawner = 1,
|
||||
Hint = _U('spawn_veh_button'),
|
||||
Caution = 2000,
|
||||
GPS = {x = 3867.44, y = 4463.62, z = 1.72386}
|
||||
},
|
||||
|
||||
VehicleSpawnPoint = {
|
||||
Pos = {x = 859.354, y = -1656.21, z = 29.5697},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Marker= -1,
|
||||
Blip = false,
|
||||
Name = _U('service_vh'),
|
||||
Type = "vehspawnpt",
|
||||
Spawner = 1,
|
||||
GPS = 0,
|
||||
Heading = 70.1
|
||||
},
|
||||
|
||||
VehicleDeletePoint = {
|
||||
Pos = {x = 863.23254394531, y = -1718.2849121094, z = 28.631998062134},
|
||||
Size = {x = 5.0, y = 5.0, z = 1.0},
|
||||
Color = {r = 255, g = 0, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('return_vh'),
|
||||
Type = "vehdelete",
|
||||
Hint = _U('return_vh_button'),
|
||||
Spawner = 1,
|
||||
Caution = 2000,
|
||||
GPS = 0,
|
||||
Teleport = 0
|
||||
},
|
||||
|
||||
Delivery = {
|
||||
Pos = {x = -1012.64758300781, y = -1354.62634277344, z = 5.54292726516724},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Size = {x = 5.0, y = 5.0, z = 3.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('delivery_point'),
|
||||
Type = "delivery",
|
||||
Spawner = 2,
|
||||
Item = {
|
||||
{
|
||||
name = _U('delivery'),
|
||||
time = 500,
|
||||
remove = 1,
|
||||
max = 100, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua
|
||||
price = 11,
|
||||
requires = "fish",
|
||||
requires_name = _U('fm_fish'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('fm_deliver_fish'),
|
||||
GPS = {x = 3867.44, y = 4463.62, z = 1.72386}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
Config.Jobs.fueler = {
|
||||
BlipInfos = {
|
||||
Sprite = 436,
|
||||
Color = 5
|
||||
},
|
||||
Vehicles = {
|
||||
Truck = {
|
||||
Spawner = 1,
|
||||
Hash = "phantom",
|
||||
Trailer = "tanker",
|
||||
HasCaution = true
|
||||
}
|
||||
},
|
||||
Zones = {
|
||||
CloakRoom = { -- 1
|
||||
Pos = {x = 557.933, y = -2327.9, z = 4.82896},
|
||||
Size = {x = 3.0, y = 3.0, z = 2.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('f_oil_refiner'),
|
||||
Type = "cloakroom",
|
||||
Hint = _U('cloak_change'),
|
||||
GPS = {x = 554.597, y = -2314.43, z = 4.86293}
|
||||
},
|
||||
|
||||
ChampPetrol = { -- 4 -- 8
|
||||
Pos = {x = 609.589, y = 2856.74, z = 39.4958},
|
||||
Size = {x = 20.0, y = 20.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('f_drill_oil'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('f_fuel'),
|
||||
db_name= "petrol",
|
||||
time = 5000,
|
||||
max = 24,
|
||||
add = 1,
|
||||
remove = 1,
|
||||
requires = "nothing",
|
||||
requires_name = "Nothing",
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('f_drillbutton'),
|
||||
GPS = {x = 2736.94, y = 1417.99, z = 23.4888}
|
||||
},
|
||||
|
||||
Raffinerie = { -- 5
|
||||
Pos = {x = 2736.94, y = 1417.99, z = 23.4888},
|
||||
Size = {x = 10.0, y = 10.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('f_fuel_refine'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('f_fuel_refine'),
|
||||
db_name= "petrol_raffin",
|
||||
time = 5000,
|
||||
max = 24,
|
||||
add = 1,
|
||||
remove = 2,
|
||||
requires = "petrol",
|
||||
requires_name = _U('f_fuel'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('f_refine_fuel_button'),
|
||||
GPS = {x = 265.752, y = -3013.39, z = 4.73275}
|
||||
},
|
||||
|
||||
Melange = { -- 6
|
||||
Pos = {x = 265.752, y = -3013.39, z = 4.73275},
|
||||
Size = {x = 10.0, y = 10.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('f_fuel_mixture'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('f_gas'),
|
||||
db_name= "essence",
|
||||
time = 5000,
|
||||
max = 24,
|
||||
add = 2,
|
||||
remove = 1,
|
||||
requires = "petrol_raffin",
|
||||
requires_name = _U('f_fuel_refine'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('f_fuel_mixture_button'),
|
||||
GPS = {x = 491.406, y = -2163.37, z = 4.91827}
|
||||
},
|
||||
|
||||
VehicleSpawner = { -- 2
|
||||
Pos = {x = 554.597, y = -2314.43, z = 4.86293},
|
||||
Size = {x = 3.0, y = 3.0, z = 2.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('spawn_veh'),
|
||||
Type = "vehspawner",
|
||||
Spawner = 1,
|
||||
Hint = _U('spawn_truck_button'),
|
||||
Caution = 2000,
|
||||
GPS = {x = 602.254, y = 2926.62, z = 39.6898}
|
||||
},
|
||||
|
||||
VehicleSpawnPoint = {
|
||||
Pos = {x = 580.541, y = -2309.7, z = 4.90915},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Marker= -1,
|
||||
Blip = false,
|
||||
Name = _U('service_vh'),
|
||||
Type = "vehspawnpt",
|
||||
Spawner = 1,
|
||||
GPS = 0,
|
||||
Heading = 0
|
||||
},
|
||||
|
||||
VehicleDeletePoint = {
|
||||
Pos = {x = 520.684, y = -2124.21, z = 4.98635},
|
||||
Size = {x = 5.0, y = 5.0, z = 1.0},
|
||||
Color = {r = 255, g = 0, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('return_vh'),
|
||||
Type = "vehdelete",
|
||||
Hint = _U('return_vh_button'),
|
||||
Spawner = 1,
|
||||
Caution = 2000,
|
||||
GPS = 0,
|
||||
Teleport = 0
|
||||
},
|
||||
|
||||
Delivery = { -- 7
|
||||
Pos = {x = 491.406, y = -2163.37, z = 4.91827},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Size = {x = 10.0, y = 10.0, z = 1.0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('f_deliver_gas'),
|
||||
Type = "delivery",
|
||||
Spawner = 1,
|
||||
Item = {
|
||||
{
|
||||
name = _U('delivery'),
|
||||
time = 500,
|
||||
remove = 1,
|
||||
max = 100, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua
|
||||
price = 61,
|
||||
requires = "essence",
|
||||
requires_name = _U('f_gas'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('f_deliver_gas'),
|
||||
GPS = {x = 609.589, y = 2856.74, z = 39.4958}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
Config.Jobs.lumberjack = {
|
||||
BlipInfos = {
|
||||
Sprite = 237,
|
||||
Color = 4
|
||||
},
|
||||
Vehicles = {
|
||||
Truck = {
|
||||
Spawner = 1,
|
||||
Hash = "phantom",
|
||||
Trailer = "trailers",
|
||||
HasCaution = true
|
||||
}
|
||||
},
|
||||
Zones = {
|
||||
CloakRoom = {
|
||||
Pos = {x = 1200.63, y = -1276.875, z = 34.38},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('lj_locker_room'),
|
||||
Type = "cloakroom",
|
||||
Hint = _U('cloak_change'),
|
||||
},
|
||||
|
||||
Wood = {
|
||||
Pos = {x = -534.323669433594, y = 5373.794921875, z = 69.503059387207},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('lj_mapblip'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('lj_wood'),
|
||||
db_name= "wood",
|
||||
time = 3000,
|
||||
max = 20,
|
||||
add = 1,
|
||||
remove = 1,
|
||||
requires = "nothing",
|
||||
requires_name = "Nothing",
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('lj_pickup')
|
||||
},
|
||||
|
||||
CuttedWood = {
|
||||
Pos = {x = -552.214660644531, y = 5326.90966796875, z = 72.5996017456055},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('lj_cutwood'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('lj_cutwood'),
|
||||
db_name= "cutted_wood",
|
||||
time = 5000,
|
||||
max = 20,
|
||||
add = 1,
|
||||
remove = 1,
|
||||
requires = "wood",
|
||||
requires_name = _U('lj_wood'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('lj_cutwood_button')
|
||||
},
|
||||
|
||||
Planks = {
|
||||
Pos = {x = -501.386596679688, y = 5280.53076171875, z = 79.6187744140625},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('lj_board'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('lj_planks'),
|
||||
db_name= "packaged_plank",
|
||||
time = 4000,
|
||||
max = 100,
|
||||
add = 5,
|
||||
remove = 1,
|
||||
requires = "cutted_wood",
|
||||
requires_name = _U('lj_cutwood'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('lj_pick_boards')
|
||||
},
|
||||
|
||||
VehicleSpawner = {
|
||||
Pos = {x = 1191.9681396484, y = -1261.7775878906, z = 34.170627593994},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('spawn_veh'),
|
||||
Type = "vehspawner",
|
||||
Spawner = 1,
|
||||
Hint = _U('spawn_veh_button'),
|
||||
Caution = 2000
|
||||
},
|
||||
|
||||
VehicleSpawnPoint = {
|
||||
Pos = {x = 1194.6257324219, y = -1286.955078125, z = 34.121524810791},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Marker= -1,
|
||||
Blip = false,
|
||||
Name = _U('service_vh'),
|
||||
Type = "vehspawnpt",
|
||||
Spawner = 1,
|
||||
Heading = 285.1
|
||||
},
|
||||
|
||||
VehicleDeletePoint = {
|
||||
Pos = {x = 1216.8983154297, y = -1229.2396240234, z = 34.403507232666},
|
||||
Size = {x = 5.0, y = 5.0, z = 1.0},
|
||||
Color = {r = 255, g = 0, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('return_vh'),
|
||||
Type = "vehdelete",
|
||||
Hint = _U('return_vh_button'),
|
||||
Spawner = 1,
|
||||
Caution = 2000,
|
||||
GPS = 0,
|
||||
Teleport = 0
|
||||
},
|
||||
|
||||
Delivery = {
|
||||
Pos = {x = 1201.3558349609, y = -1327.5159912109, z = 34.226093292236},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Size = {x = 5.0, y = 5.0, z = 3.0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('delivery_point'),
|
||||
Type = "delivery",
|
||||
Spawner = 1,
|
||||
Item = {
|
||||
{
|
||||
name = _U('delivery'),
|
||||
time = 500,
|
||||
remove = 1,
|
||||
max = 100, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua
|
||||
price = 13,
|
||||
requires = "packaged_plank",
|
||||
requires_name = _U('lj_planks'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('lj_deliver_button')
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,267 @@
|
||||
Config.Jobs.miner = {
|
||||
BlipInfos = {
|
||||
Sprite = 318,
|
||||
Color = 5
|
||||
},
|
||||
Vehicles = {
|
||||
Truck = {
|
||||
Spawner = 1,
|
||||
Hash = "rubble",
|
||||
Trailer = "none",
|
||||
HasCaution = true
|
||||
}
|
||||
},
|
||||
Zones = {
|
||||
CloakRoom = {
|
||||
Pos = {x = 892.35333251953, y = -2172.7705078125, z = 31.286273956299},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('m_miner_locker'),
|
||||
Type = "cloakroom",
|
||||
Hint = _U('cloak_change'),
|
||||
GPS = {x = 884.86889648438, y = -2176.5102539063, z = 29.519346237183}
|
||||
},
|
||||
|
||||
Mine = {
|
||||
Pos = {x = 2962.4, y = 2746.2, z = 42.398},
|
||||
Size = {x = 5.0, y = 5.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('m_rock'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('m_rock'),
|
||||
db_name= "stone",
|
||||
time = 3000,
|
||||
max = 7,
|
||||
add = 1,
|
||||
remove = 1,
|
||||
requires = "nothing",
|
||||
requires_name = "Nothing",
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('m_pickrocks'),
|
||||
GPS = {x = 289.244, y = 2862.9, z = 42.6424}
|
||||
},
|
||||
|
||||
StoneWash = {
|
||||
Pos = {x = 289.244, y = 2862.9, z = 42.6424},
|
||||
Size = {x = 5.0, y = 5.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('m_washrock'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('m_washrock'),
|
||||
db_name= "washed_stone",
|
||||
time = 5000,
|
||||
max = 7,
|
||||
add = 1,
|
||||
remove = 1,
|
||||
requires = "stone",
|
||||
requires_name = _U('m_rock'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('m_rock_button'),
|
||||
GPS = {x = 1109.14, y = -2007.87, z = 30.0188}
|
||||
},
|
||||
|
||||
Foundry = {
|
||||
Pos = {x = 1109.14, y = -2007.87, z = 30.0188},
|
||||
Size = {x = 5.0, y = 5.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('m_rock_smelting'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('m_copper'),
|
||||
db_name= "copper",
|
||||
time = 4000,
|
||||
max = 56,
|
||||
add = 8,
|
||||
remove = 1,
|
||||
requires = "washed_stone",
|
||||
requires_name = _U('m_washrock'),
|
||||
drop = 100
|
||||
},
|
||||
{
|
||||
name = _U('m_iron'),
|
||||
db_name= "iron",
|
||||
max = 42,
|
||||
add = 6,
|
||||
drop = 100
|
||||
},
|
||||
{
|
||||
name = _U('m_gold'),
|
||||
db_name= "gold",
|
||||
max = 21,
|
||||
add = 3,
|
||||
drop = 100
|
||||
},
|
||||
{
|
||||
name = _U('m_diamond'),
|
||||
db_name= "diamond",
|
||||
max = 50,
|
||||
add = 1,
|
||||
drop = 5
|
||||
}
|
||||
},
|
||||
Hint = _U('m_melt_button'),
|
||||
GPS = {x = -169.481, y = -2659.16, z = 5.00103}
|
||||
},
|
||||
|
||||
VehicleSpawner = {
|
||||
Pos = {x = 884.86889648438, y = -2176.5102539063, z = 29.519346237183},
|
||||
Size = {x = 5.0, y = 5.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('spawn_veh'),
|
||||
Type = "vehspawner",
|
||||
Spawner = 1,
|
||||
Hint = _U('spawn_veh_button'),
|
||||
Caution = 2000,
|
||||
GPS = {x = 2962.4, y = 2746.2, z = 42.398}
|
||||
},
|
||||
|
||||
VehicleSpawnPoint = {
|
||||
Pos = {x = 879.55700683594, y = -2189.7995605469, z = 29.519348144531},
|
||||
Size = {x = 5.0, y = 5.0, z = 1.0},
|
||||
Marker= -1,
|
||||
Blip = false,
|
||||
Name = _U('service_vh'),
|
||||
Type = "vehspawnpt",
|
||||
Spawner = 1,
|
||||
Heading = 90.1,
|
||||
GPS = 0
|
||||
},
|
||||
|
||||
VehicleDeletePoint = {
|
||||
Pos = {x = 881.93725585938, y = -2198.0151367188, z = 29.519351959229},
|
||||
Size = {x = 5.0, y = 5.0, z = 1.0},
|
||||
Color = {r = 255, g = 0, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('return_vh'),
|
||||
Type = "vehdelete",
|
||||
Hint = _U('return_vh_button'),
|
||||
Spawner = 1,
|
||||
Caution = 2000,
|
||||
GPS = 0,
|
||||
Teleport = 0
|
||||
},
|
||||
|
||||
CopperDelivery = {
|
||||
Pos = {x = -169.481, y = -2659.16, z = 5.00103},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Size = {x = 5.0, y = 5.0, z = 3.0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('m_sell_copper'),
|
||||
Type = "delivery",
|
||||
Spawner = 1,
|
||||
Item = {
|
||||
{
|
||||
name = _U('delivery'),
|
||||
time = 500,
|
||||
remove = 1,
|
||||
max = 56, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua
|
||||
price = 5,
|
||||
requires = "copper",
|
||||
requires_name = _U('m_copper'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('m_deliver_copper'),
|
||||
GPS = {x = -148.782, y = -1040.38, z = 26.2736}
|
||||
},
|
||||
|
||||
IronDelivery = {
|
||||
Pos = {x = -148.782, y = -1040.38, z = 26.2736},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Size = {x = 5.0, y = 5.0, z = 3.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('m_sell_iron'),
|
||||
Type = "delivery",
|
||||
Spawner = 1,
|
||||
Item = {
|
||||
{
|
||||
name = _U('delivery'),
|
||||
time = 500,
|
||||
remove = 1,
|
||||
max = 42, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua
|
||||
price = 9,
|
||||
requires = "iron",
|
||||
requires_name = _U('m_iron'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('m_deliver_iron'),
|
||||
GPS = {x = 261.487, y = 207.354, z = 109.287}
|
||||
},
|
||||
|
||||
GoldDelivery = {
|
||||
Pos = {x = 261.487, y = 207.354, z = 109.287},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Size = {x = 5.0, y = 5.0, z = 3.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('m_sell_gold'),
|
||||
Type = "delivery",
|
||||
Spawner = 1,
|
||||
Item = {
|
||||
{
|
||||
name = _U('delivery'),
|
||||
time = 500,
|
||||
remove = 1,
|
||||
max = 21, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua
|
||||
price = 25,
|
||||
requires = "gold",
|
||||
requires_name = _U('m_gold'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('m_deliver_gold'),
|
||||
GPS = {x = -621.046, y = -228.532, z = 37.0571}
|
||||
},
|
||||
|
||||
DiamondDelivery = {
|
||||
Pos = {x = -621.046, y = -228.532, z = 37.0571},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Size = {x = 5.0, y = 5.0, z = 3.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('m_sell_diamond'),
|
||||
Type = "delivery",
|
||||
Spawner = 1,
|
||||
Item = {
|
||||
{
|
||||
name = _U('delivery'),
|
||||
time = 500,
|
||||
remove = 1,
|
||||
max = 50, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua
|
||||
price = 250,
|
||||
requires = "diamond",
|
||||
requires_name = _U('m_diamond'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('m_deliver_diamond'),
|
||||
GPS = {x = 2962.4, y = 2746.2, z = 42.398}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
Config.Jobs.reporter = {
|
||||
BlipInfos = {
|
||||
Sprite = 184,
|
||||
Color = 1
|
||||
},
|
||||
Vehicles = {
|
||||
Truck = {
|
||||
Spawner = 1,
|
||||
Hash = "rumpo",
|
||||
Trailer = "none",
|
||||
HasCaution = true
|
||||
}
|
||||
},
|
||||
Zones = {
|
||||
VehicleSpawner = {
|
||||
Pos = { x = -141.41, y = -620.80, z = 167.82 },
|
||||
Size = {x = 2.0, y = 2.0, z = 0.2},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('reporter_name'),
|
||||
Type = "vehspawner",
|
||||
Spawner = 1,
|
||||
Hint = _U('reporter_garage'),
|
||||
Caution = 2000
|
||||
},
|
||||
|
||||
VehicleSpawnPoint = {
|
||||
Pos = { x = -149.32023620605, y = -592.17163085938, z = 31.42448425293 },
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Marker= -1,
|
||||
Blip = false,
|
||||
Name = _U('service_vh'),
|
||||
Type = "vehspawnpt",
|
||||
Spawner = 1,
|
||||
Heading = 200.1
|
||||
},
|
||||
|
||||
VehicleDeletePoint = {
|
||||
Pos = { x = -144.2229309082, y = -577.02972412109, z = 31.42448425293 },
|
||||
Size = {x = 5.0, y = 5.0, z = 0.2},
|
||||
Color = {r = 255, g = 0, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('return_vh'),
|
||||
Type = "vehdelete",
|
||||
Hint = _U('return_vh_button'),
|
||||
Spawner = 1,
|
||||
Caution = 2000,
|
||||
GPS = 0,
|
||||
Teleport = { x = -139.09838867188, y = -620.74865722656, z = 167.82052612305 }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
Config.Jobs.slaughterer = {
|
||||
BlipInfos = {
|
||||
Sprite = 256,
|
||||
Color = 5
|
||||
},
|
||||
Vehicles = {
|
||||
Truck = {
|
||||
Spawner = 1,
|
||||
Hash = "benson",
|
||||
Trailer = "none",
|
||||
HasCaution = true
|
||||
}
|
||||
},
|
||||
Zones = {
|
||||
CloakRoom = {
|
||||
Pos = {x = -1071.1319580078, y = -2003.7891845703, z = 14.78551197052},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('s_slaughter_locker'),
|
||||
Type = "cloakroom",
|
||||
Hint = _U('cloak_change'),
|
||||
},
|
||||
|
||||
AliveChicken = {
|
||||
Pos = {x = -62.9018, y = 6241.46, z = 30.0901},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('s_hen'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('s_alive_chicken'),
|
||||
db_name= "alive_chicken",
|
||||
time = 3000,
|
||||
max = 20,
|
||||
add = 1,
|
||||
remove = 1,
|
||||
requires = "nothing",
|
||||
requires_name = "Nothing",
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('s_catch_hen')
|
||||
},
|
||||
|
||||
SlaughterHouse = {
|
||||
Pos = {x = -77.991, y = 6229.063, z = 30.091},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('s_slaughtered'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('s_slaughtered_chicken'),
|
||||
db_name= "slaughtered_chicken",
|
||||
time = 5000,
|
||||
max = 20,
|
||||
add = 1,
|
||||
remove = 1,
|
||||
requires = "alive_chicken",
|
||||
requires_name = _U('s_alive_chicken'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('s_chop_animal')
|
||||
},
|
||||
|
||||
Packaging = {
|
||||
Pos = {x = -101.978, y = 6208.799, z = 30.025},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('s_package'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('s_packagechicken'),
|
||||
db_name= "packaged_chicken",
|
||||
time = 4000,
|
||||
max = 100,
|
||||
add = 5,
|
||||
remove = 1,
|
||||
requires = "slaughtered_chicken",
|
||||
requires_name = _U('s_unpackaged'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('s_unpackaged_button')
|
||||
},
|
||||
|
||||
VehicleSpawner = {
|
||||
Pos = {x = -1042.9444580078, y = -2023.2551269531, z = 12.161581993103},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('spawn_veh'),
|
||||
Type = "vehspawner",
|
||||
Spawner = 1,
|
||||
Hint = _U('spawn_veh_button'),
|
||||
Caution = 2000
|
||||
},
|
||||
|
||||
VehicleSpawnPoint = {
|
||||
Pos = {x = -1048.8568115234, y = -2025.322265625, z = 12.161581993103},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Marker= -1,
|
||||
Blip = false,
|
||||
Name = _U('service_vh'),
|
||||
Type = "vehspawnpt",
|
||||
Spawner = 1,
|
||||
Heading = 130.1
|
||||
},
|
||||
|
||||
VehicleDeletePoint = {
|
||||
Pos = {x = -1061.5164794922, y = -2008.3552246094, z = 12.161584854126},
|
||||
Size = {x = 5.0, y = 5.0, z = 1.0},
|
||||
Color = {r = 255, g = 0, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('return_vh'),
|
||||
Type = "vehdelete",
|
||||
Hint = _U('return_vh_button'),
|
||||
Spawner = 1,
|
||||
Caution = 2000,
|
||||
GPS = 0,
|
||||
Teleport = 0
|
||||
},
|
||||
|
||||
Delivery = {
|
||||
Pos = {x = -596.158, y = -889.324, z = 24.5073},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Size = {x = 5.0, y = 5.0, z = 1.0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('delivery_point'),
|
||||
Type = "delivery",
|
||||
Spawner = 1,
|
||||
Item = {
|
||||
{
|
||||
name = _U('delivery'),
|
||||
time = 500,
|
||||
remove = 1,
|
||||
max = 100, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua
|
||||
price = 11,
|
||||
requires = "packaged_chicken",
|
||||
requires_name = _U('s_packagechicken'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('s_deliver')
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
Config.Jobs.tailor = {
|
||||
BlipInfos = {
|
||||
Sprite = 366,
|
||||
Color = 4
|
||||
},
|
||||
Vehicles = {
|
||||
Truck = {
|
||||
Spawner = 1,
|
||||
Hash = "youga2",
|
||||
Trailer = "none",
|
||||
HasCaution = true
|
||||
}
|
||||
},
|
||||
Zones = {
|
||||
CloakRoom = {
|
||||
Pos = {x = 706.735412597656, y = -960.902893066406, z = 29.3953247070313},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('dd_dress_locker'),
|
||||
Type = "cloakroom",
|
||||
Hint = _U('cloak_change'),
|
||||
GPS = {x = 740.808776855469, y = -970.066650390625, z = 23.4693908691406}
|
||||
},
|
||||
|
||||
Wool = {
|
||||
Pos = {x = 1978.92407226563, y = 5171.70166015625, z = 46.6391181945801},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('dd_wool'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('dd_wool'),
|
||||
db_name= "wool",
|
||||
time = 3000,
|
||||
max = 40,
|
||||
add = 1,
|
||||
remove = 1,
|
||||
requires = "nothing",
|
||||
requires_name = "Nothing",
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('dd_pickup'),
|
||||
GPS = {x = 715.954650878906, y = -959.639587402344, z = 29.3953247070313}
|
||||
},
|
||||
|
||||
Fabric = {
|
||||
Pos = {x = 715.954650878906, y = -959.639587402344, z = 29.3953247070313},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('dd_fabric'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('dd_fabric'),
|
||||
db_name= "fabric",
|
||||
time = 5000,
|
||||
max = 80,
|
||||
add = 2,
|
||||
remove = 1,
|
||||
requires = "wool",
|
||||
requires_name = _U('dd_wool'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('dd_makefabric'),
|
||||
GPS = {x = 712.928283691406, y = -970.5869140625, z = 29.3953247070313}
|
||||
},
|
||||
|
||||
Clothe = {
|
||||
Pos = {x = 712.928283691406, y = -970.5869140625, z = 29.3953247070313},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('dd_clothing'),
|
||||
Type = "work",
|
||||
Item = {
|
||||
{
|
||||
name = _U('dd_clothing'),
|
||||
db_name= "clothe",
|
||||
time = 4000,
|
||||
max = 40,
|
||||
add = 1,
|
||||
remove = 2,
|
||||
requires = "fabric",
|
||||
requires_name = _U('dd_fabric'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('dd_makeclothing'),
|
||||
GPS = {x = 429.595855712891, y = -807.341613769531, z = 28.4911441802979}
|
||||
},
|
||||
|
||||
VehicleSpawner = {
|
||||
Pos = {x = 740.808776855469, y = -970.066650390625, z = 23.4693908691406},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('spawn_veh'),
|
||||
Type = "vehspawner",
|
||||
Spawner = 1,
|
||||
Hint = _U('spawn_veh_button'),
|
||||
Caution = 2000,
|
||||
GPS = {x = 1978.92407226563, y = 5171.70166015625, z = 46.6391181945801}
|
||||
},
|
||||
|
||||
VehicleSpawnPoint = {
|
||||
Pos = {x = 747.31396484375, y = -966.235778808594, z = 23.705005645752},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Marker= -1,
|
||||
Blip = false,
|
||||
Name = _U('service_vh'),
|
||||
Type = "vehspawnpt",
|
||||
Spawner = 1,
|
||||
Heading = 270.1,
|
||||
GPS = 0
|
||||
},
|
||||
|
||||
VehicleDeletePoint = {
|
||||
Pos = {x = 693.796325683594, y = -963.010498046875, z = 22.8247337341309},
|
||||
Size = {x = 3.0, y = 3.0, z = 1.0},
|
||||
Color = {r = 255, g = 0, b = 0},
|
||||
Marker= 1,
|
||||
Blip = false,
|
||||
Name = _U('return_vh'),
|
||||
Type = "vehdelete",
|
||||
Hint = _U('return_vh_button'),
|
||||
Spawner = 1,
|
||||
Caution = 2000,
|
||||
GPS = 0,
|
||||
Teleport = 0
|
||||
},
|
||||
|
||||
Delivery = {
|
||||
Pos = {x = 429.595855712891, y = -807.341613769531, z = 28.4911441802979},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Size = {x = 5.0, y = 5.0, z = 3.0},
|
||||
Marker= 1,
|
||||
Blip = true,
|
||||
Name = _U('delivery_point'),
|
||||
Type = "delivery",
|
||||
Spawner = 1,
|
||||
Item = {
|
||||
{
|
||||
name = _U('delivery'),
|
||||
time = 500,
|
||||
remove = 1,
|
||||
max = 100, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua
|
||||
price = 40,
|
||||
requires = "clothe",
|
||||
requires_name = _U('dd_clothing'),
|
||||
drop = 100
|
||||
}
|
||||
},
|
||||
Hint = _U('dd_deliver_clothes'),
|
||||
GPS = {x = 1978.92407226563, y = 5171.70166015625, z = 46.6391181945801}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -60,10 +60,6 @@ AddEventHandler('esx:playerLoaded', function(xPlayer)
|
||||
refreshBlips()
|
||||
end)
|
||||
|
||||
AddEventHandler('esx_jobs:publicTeleports', function(position)
|
||||
SetEntityCoords(GetPlayerPed(-1), position.x, position.y, position.z)
|
||||
end)
|
||||
|
||||
function OpenMenu()
|
||||
ESX.UI.Menu.CloseAll()
|
||||
|
||||
@@ -336,14 +332,16 @@ end)
|
||||
|
||||
-- Show top left hint
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(10)
|
||||
if hintIsShowed == true then
|
||||
SetTextComponentFormat("STRING")
|
||||
AddTextComponentString(hintToDisplay)
|
||||
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
|
||||
end
|
||||
end
|
||||
while true do
|
||||
Citizen.Wait(10)
|
||||
if hintIsShowed then
|
||||
SetTextComponentFormat("STRING")
|
||||
AddTextComponentString(hintToDisplay)
|
||||
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
|
||||
else
|
||||
Citizen.Wait(1000)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Display markers (only if on duty and the player's job ones)
|
||||
@@ -372,51 +370,52 @@ end)
|
||||
|
||||
-- Display public markers
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(0)
|
||||
local coords = GetEntityCoords(GetPlayerPed(-1))
|
||||
for k,v in pairs(Config.PublicZones) do
|
||||
if(v.Marker ~= -1 and GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < Config.DrawDistance) then
|
||||
DrawMarker(v.Marker, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, true, 2, false, false, false, false)
|
||||
end
|
||||
end
|
||||
end
|
||||
while true do
|
||||
Citizen.Wait(0)
|
||||
local coords = GetEntityCoords(GetPlayerPed(-1))
|
||||
for k,v in pairs(Config.PublicZones) do
|
||||
if(v.Marker ~= -1 and GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < Config.DrawDistance) then
|
||||
DrawMarker(v.Marker, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, true, 2, false, false, false, false)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Activate public marker
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(0)
|
||||
local coords = GetEntityCoords(GetPlayerPed(-1))
|
||||
local position = nil
|
||||
local zone = nil
|
||||
while true do
|
||||
Citizen.Wait(10)
|
||||
local coords = GetEntityCoords(GetPlayerPed(-1))
|
||||
local position = nil
|
||||
local zone = nil
|
||||
|
||||
for k,v in pairs(Config.PublicZones) do
|
||||
if(GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < v.Size.x) then
|
||||
isInPublicMarker = true
|
||||
position = v.Teleport
|
||||
zone = v
|
||||
break
|
||||
else
|
||||
isInPublicMarker = false
|
||||
end
|
||||
end
|
||||
for k,v in pairs(Config.PublicZones) do
|
||||
if(GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < v.Size.x) then
|
||||
isInPublicMarker = true
|
||||
position = v.Teleport
|
||||
zone = v
|
||||
break
|
||||
else
|
||||
isInPublicMarker = false
|
||||
end
|
||||
end
|
||||
|
||||
if IsControlJustReleased(0, Keys["E"]) and isInPublicMarker then
|
||||
TriggerEvent('esx_jobs:publicTeleports', position)
|
||||
end
|
||||
if IsControlJustReleased(0, Keys['E']) and isInPublicMarker then
|
||||
ESX.Game.Teleport(GetPlayerPed(-1), position)
|
||||
isInPublicMarker = false
|
||||
end
|
||||
|
||||
-- hide or show top left zone hints
|
||||
if isInPublicMarker then
|
||||
hintToDisplay = zone.Hint
|
||||
hintIsShowed = true
|
||||
else
|
||||
if not isInMarker then
|
||||
hintToDisplay = "no hint to display"
|
||||
hintIsShowed = false
|
||||
end
|
||||
end
|
||||
end
|
||||
-- hide or show top left zone hints
|
||||
if isInPublicMarker then
|
||||
hintToDisplay = zone.Hint
|
||||
hintIsShowed = true
|
||||
else
|
||||
if not isInMarker then
|
||||
hintToDisplay = "no hint to display"
|
||||
hintIsShowed = false
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Activate menu when player is inside marker
|
||||
@@ -513,46 +512,47 @@ end)
|
||||
|
||||
-- VEHICLE CAUTION
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(0)
|
||||
if vehicleInCaseofDrop ~= nil then
|
||||
if onDuty and IsVehicleModel(vehicleInCaseofDrop, vehicleHashInCaseofDrop) then
|
||||
local vehicleHealth = GetEntityHealth(vehicleInCaseofDrop)
|
||||
if vehicleOldHealthInCaseofDrop ~= vehicleHealth then
|
||||
local cautionValue = 0
|
||||
vehicleOldHealthInCaseofDrop = vehicleHealth
|
||||
if vehicleHealth == vehicleMaxHealthInCaseofDrop then
|
||||
cautionValue = maxCautionVehicleInCaseofDrop
|
||||
cautionVehicleInCaseofDrop = cautionValue
|
||||
else
|
||||
local healthPct = (vehicleHealth * 100) / vehicleMaxHealthInCaseofDrop
|
||||
local damagePct = 100 - healthPct
|
||||
cautionValue = math.ceil(cautionVehicleInCaseofDrop - cautionVehicleInCaseofDrop * damagePct * 2.5 / 100)
|
||||
if cautionValue < 0 then
|
||||
cautionValue = 0
|
||||
elseif cautionValue >= cautionVehicleInCaseofDrop then
|
||||
cautionValue = cautionVehicleInCaseofDrop
|
||||
end
|
||||
cautionVehicleInCaseofDrop = cautionValue
|
||||
end
|
||||
TriggerServerEvent('esx_jobs:setCautionInCaseOfDrop', cautionValue)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
while true do
|
||||
Citizen.Wait(0)
|
||||
if vehicleInCaseofDrop ~= nil then
|
||||
if onDuty and IsVehicleModel(vehicleInCaseofDrop, vehicleHashInCaseofDrop) then
|
||||
local vehicleHealth = GetEntityHealth(vehicleInCaseofDrop)
|
||||
|
||||
if vehicleOldHealthInCaseofDrop ~= vehicleHealth then
|
||||
local cautionValue = 0
|
||||
vehicleOldHealthInCaseofDrop = vehicleHealth
|
||||
if vehicleHealth == vehicleMaxHealthInCaseofDrop then
|
||||
cautionValue = maxCautionVehicleInCaseofDrop
|
||||
cautionVehicleInCaseofDrop = cautionValue
|
||||
else
|
||||
local healthPct = (vehicleHealth * 100) / vehicleMaxHealthInCaseofDrop
|
||||
local damagePct = 100 - healthPct
|
||||
cautionValue = math.ceil(cautionVehicleInCaseofDrop - cautionVehicleInCaseofDrop * damagePct * 2.5 / 100)
|
||||
if cautionValue < 0 then
|
||||
cautionValue = 0
|
||||
elseif cautionValue >= cautionVehicleInCaseofDrop then
|
||||
cautionValue = cautionVehicleInCaseofDrop
|
||||
end
|
||||
cautionVehicleInCaseofDrop = cautionValue
|
||||
end
|
||||
TriggerServerEvent('esx_jobs:setCautionInCaseOfDrop', cautionValue)
|
||||
end
|
||||
end
|
||||
else
|
||||
Citizen.Wait(1000)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
-- Slaughterer
|
||||
RemoveIpl("CS1_02_cf_offmission")
|
||||
RequestIpl("CS1_02_cf_onmission1")
|
||||
RequestIpl("CS1_02_cf_onmission2")
|
||||
RequestIpl("CS1_02_cf_onmission3")
|
||||
RequestIpl("CS1_02_cf_onmission4")
|
||||
|
||||
-- Slaughterer
|
||||
RemoveIpl("CS1_02_cf_offmission")
|
||||
RequestIpl("CS1_02_cf_onmission1")
|
||||
RequestIpl("CS1_02_cf_onmission2")
|
||||
RequestIpl("CS1_02_cf_onmission3")
|
||||
RequestIpl("CS1_02_cf_onmission4")
|
||||
|
||||
-- Textil
|
||||
RequestIpl("id2_14_during_door")
|
||||
RequestIpl("id2_14_during1")
|
||||
|
||||
-- Textil
|
||||
RequestIpl("id2_14_during_door")
|
||||
RequestIpl("id2_14_during1")
|
||||
end)
|
||||
Reference in New Issue
Block a user