From 057efcbf416e9a9a7497ff416a87b773c33d6a38 Mon Sep 17 00:00:00 2001 From: BerkieBb <82737367+BerkieBb@users.noreply.github.com> Date: Mon, 16 Aug 2021 14:42:03 +0200 Subject: [PATCH] Fix nil value --- client/functions.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index d048571..0263f3c 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -62,9 +62,8 @@ QBCore.Functions.SpawnVehicle = function(model, cb, coords, isnetworked) -- QBCo local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.w, isnetworked, false) local netid = NetworkGetNetworkIdFromEntity(veh) - SetVehicleHasBeenOwnedByPlayer(vehicle, true) - SetNetworkIdCanMigrate(netid, true) - --SetEntityAsMissionEntity(veh, true, true) + SetVehicleHasBeenOwnedByPlayer(veh, true) + SetNetworkIdCanMigrate(netid, true) SetVehicleNeedsToBeHotwired(veh, false) SetVehRadioStation(veh, "OFF")