mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-16 10:53:55 +00:00
fix(client/vehicle): setting props on as non entity owner
This commit is contained in:
1 parent
0848480753
commit
7003b29db8
1 file changed
+1
-1
+1
-1
@@ -276,7 +276,7 @@ end)
|
||||
|
||||
AddStateBagChangeHandler("props", nil, function(bagName, key, value, reserved, replicated)
|
||||
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)
|
||||
end)
|
||||
|
||||
|
||||
Reference in new issue
Block a user