mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
Merge pull request #1189 from thelindat/legacy
fix(client/functions): Spawn networked and local entities correctly
This commit is contained in:
@@ -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
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user