fix(client/vehicle): setting props on as non entity owner

This commit is contained in:
Andyyy7666
2023-09-26 03:16:33 +02:00
parent 0848480753
commit 7003b29db8

View File

@@ -276,7 +276,7 @@ end)
AddStateBagChangeHandler("props", nil, function(bagName, key, value, reserved, replicated) AddStateBagChangeHandler("props", nil, function(bagName, key, value, reserved, replicated)
local entity = GetEntityFromStateBagName(bagName) local entity = GetEntityFromStateBagName(bagName)
if entity == 0 or not value then return end if entity == 0 or not value or not NetworkGetEntityOwner(entity) == cache.playerId then return end
lib.setVehicleProperties(entity, value) lib.setVehicleProperties(entity, value)
end) end)