mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 02:01:31 +00:00
fix(es_extended/client): extract bag name
This commit is contained in:
@@ -121,7 +121,8 @@ AddStateBagChangeHandler("VehicleProperties", nil, function(bagName, _, value)
|
||||
return
|
||||
end
|
||||
|
||||
local netId = tonumber(bagName:gsub("entity:", ""))
|
||||
bagName = bagName:gsub("entity:", "")
|
||||
local netId = tonumber(bagName)
|
||||
if not netId then
|
||||
error("Tried to set vehicle properties with invalid netId")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user