From 6b475400eac3e8c7bab766d72cf9cbf1ef87f9ca Mon Sep 17 00:00:00 2001 From: Gellipapa Date: Sun, 17 Sep 2023 16:59:50 +0200 Subject: [PATCH] :wrench: Fix vehicle event throw warning message --- [core]/es_extended/client/modules/actions.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/[core]/es_extended/client/modules/actions.lua b/[core]/es_extended/client/modules/actions.lua index 9150f0057..2e4e0e675 100644 --- a/[core]/es_extended/client/modules/actions.lua +++ b/[core]/es_extended/client/modules/actions.lua @@ -15,7 +15,10 @@ local function GetData(vehicle) end local model = GetEntityModel(vehicle) local displayName = GetDisplayNameFromVehicleModel(model) - local netId = VehToNet(vehicle) + local netId = vehicle + if NetworkGetEntityIsNetworked(vehicle) then + netId = VehToNet(vehicle) + end return displayName, netId end