diff --git a/client/functions.lua b/client/functions.lua index db572c3..6292a46 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -396,7 +396,7 @@ function QBCore.Functions.SpawnVehicle(model, cb, coords, isnetworked, teleportI else coords = GetEntityCoords(ped) end - isnetworked = isnetworked or true + isnetworked = isnetworked == nil or isnetworked QBCore.Functions.LoadModel(model) local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.w, isnetworked, false) local netid = NetworkGetNetworkIdFromEntity(veh)