Skip to content

Commit

Permalink
🔧 Fix vehicle event throw warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
Gellipapa committed Sep 17, 2023
1 parent 392d9c4 commit 6b47540
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion [core]/es_extended/client/modules/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6b47540

Please sign in to comment.