mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
🔧 Fix vehicle event throw warning message
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user