Merge pull request #1189 from thelindat/legacy

fix(client/functions): Spawn networked and local entities correctly
This commit is contained in:
ESXCrackhead
2021-06-23 21:31:13 -05:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -338,7 +338,7 @@ end
ESX.Game.SpawnObject = function(object, coords, cb, networked)
local model = (type(object) == 'number' and model or GetHashKey(object))
local vector = type(coords) == "vector3" and coords or vec(coords.x, coords.y, coords.z)
networked = networked or true
networked = networked == nil and true or networked
Citizen.CreateThread(function()
ESX.Streaming.RequestModel(model)
@@ -371,7 +371,7 @@ end
ESX.Game.SpawnVehicle = function(vehicle, coords, heading, cb, networked)
local model = (type(vehicle) == 'number' and vehicle or GetHashKey(vehicle))
local vector = type(coords) == "vector3" and coords or vec(coords.x, coords.y, coords.z)
networked = networked or true
networked = networked == nil and true or networked
Citizen.CreateThread(function()
ESX.Streaming.RequestModel(model)
+2 -2
View File
@@ -1,5 +1,5 @@
{
"version": "legacy",
"commit" : "1.3.3",
"changelog": "\n- Resolved an issue when using Config.Identity\n- MySQL.store is now storing entire queries ahead of time\n- Improved support when using esx_multicharacter"
"commit" : "1.3.4",
"changelog": "\n- Corrected spawning of entities"
}