Fixed vehicle spawn heading #51

This commit is contained in:
ElPumpo
2018-10-01 20:24:06 +02:00
parent ad63256119
commit 31ec796993
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ Config.Jobs.lumberjack = {
Name = _U("service_vh"),
Type = "vehspawnpt",
Spawner = 1,
Heading = 285.1
Heading = 264.40
},
VehicleDeletePoint = {
+2 -2
View File
@@ -286,10 +286,10 @@ RegisterNetEvent('esx_jobs:spawnJobVehicle')
AddEventHandler('esx_jobs:spawnJobVehicle', function(spawnPoint, vehicle)
local playerPed = PlayerPedId()
ESX.Game.SpawnVehicle(vehicle.Hash, spawnPoint.Pos, spawnPoint.heading, function(spawnedVehicle)
ESX.Game.SpawnVehicle(vehicle.Hash, spawnPoint.Pos, spawnPoint.Heading, function(spawnedVehicle)
if vehicle.Trailer ~= "none" then
ESX.Game.SpawnVehicle(vehicle.Trailer, spawnPoint.Pos, spawnPoint.heading, function(trailer)
ESX.Game.SpawnVehicle(vehicle.Trailer, spawnPoint.Pos, spawnPoint.Heading, function(trailer)
AttachVehicleToTrailer(spawnedVehicle, trailer, 1.1)
end)
end
+3 -3
View File
@@ -6,7 +6,7 @@ Config.Jobs = {}
Config.PublicZones = {
EnterBuilding = {
Pos = { x = -118.21381378174, y = -607.14227294922, z = 35.280723571777 },
Pos = { x = -118.21, y = -607.14, z = 35.28 },
Size = {x = 3.0, y = 3.0, z = 0.2},
Color = {r = 204, g = 204, b = 0},
Marker= 1,
@@ -14,11 +14,11 @@ Config.PublicZones = {
Name = _U('reporter_name'),
Type = "teleport",
Hint = _U('public_enter'),
Teleport = { x = -139.09838867188, y = -620.74865722656, z = 167.82052612305 }
Teleport = { x = -139.09, y = -620.74, z = 167.82 }
},
ExitBuilding = {
Pos = { x = -139.45831298828, y = -617.32312011719, z = 167.82052612305 },
Pos = { x = -139.45, y = -617.32, z = 167.82 },
Size = {x = 3.0, y = 3.0, z = 0.2},
Color = {r = 204, g = 204, b = 0},
Marker= 1,