From 58021e70fd0ae3bbf09e094c7bd456ceaddad72f Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sat, 20 Apr 2024 05:58:32 +1000 Subject: [PATCH] refactor(client/vehicleProperties): remove entity owner check May revert - let's see what happens. --- resource/vehicleProperties/client.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/resource/vehicleProperties/client.lua b/resource/vehicleProperties/client.lua index b333985..bcaa4b7 100644 --- a/resource/vehicleProperties/client.lua +++ b/resource/vehicleProperties/client.lua @@ -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)