refactor(client/vehicleProperties): remove entity owner check

May revert - let's see what happens.
This commit is contained in:
Linden
2024-04-20 05:58:32 +10:00
parent 18f8e89cb4
commit 58021e70fd

View File

@@ -287,13 +287,7 @@ end
---@return boolean?
function lib.setVehicleProperties(vehicle, props, fixVehicle)
if not DoesEntityExist(vehicle) then
error(("Unable to set vehicle properties for '%s' (entity does not exist)"):
format(vehicle))
end
if NetworkGetEntityIsNetworked(vehicle) and NetworkGetEntityOwner(vehicle) ~= cache.playerId then
error((
"Unable to set vehicle properties for '%s' (client is not entity owner)"):format(vehicle))
error(("Unable to set vehicle properties for '%s' (entity does not exist)"):format(vehicle))
end
local colorPrimary, colorSecondary = GetVehicleColours(vehicle)