mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
refactor(esx_lib/game): preserve original networked guard in spawnVehicle move
This commit is contained in:
@@ -98,7 +98,7 @@ function xLib.game.spawnVehicle(vehicleModel, coords, heading, cb, networked)
|
||||
|
||||
local vehicle = CreateVehicle(model, vector.x, vector.y, vector.z, heading, isNetworked, true)
|
||||
|
||||
if isNetworked then
|
||||
if networked then
|
||||
local id = NetworkGetNetworkIdFromEntity(vehicle)
|
||||
SetNetworkIdCanMigrate(id, true)
|
||||
SetEntityAsMissionEntity(vehicle, true, true)
|
||||
|
||||
Reference in New Issue
Block a user