fix(es_extended/client): extract bag name

This commit is contained in:
Kasey FItton
2024-11-09 02:33:40 +00:00
parent 757a8ea2f7
commit 107664fdfd
+2 -1
View File
@@ -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