From 725125a274cf2519eaf2c2c0d04178e79a1b378c Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Fri, 19 Jan 2024 14:46:09 +0000 Subject: [PATCH] add debug prints to new ox setVehicleProperties call --- wrapper.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrapper.lua b/wrapper.lua index ac3bd7e..8a5bc92 100644 --- a/wrapper.lua +++ b/wrapper.lua @@ -939,6 +939,7 @@ function setVehicleProperties(vehicle, props) if GetResourceState(OXLibExport):find("start") then TriggerServerEvent(GetCurrentResourceName()..":ox:setVehicleProperties", VehToNet(vehicle), props) elseif GetResourceState(QBExport):find("start") then + if Config.System.Debug then print("^6Bridge^7: ^2Setting Vehicle Properties ^7'^3"..vehicle.."'^7 - '^3"..GetEntityModel(vehicle).."^7' - '^3"..props.plate.."^7") end Core.Functions.SetVehicleProperties(vehicle, props) end end @@ -953,6 +954,7 @@ AddStateBagChangeHandler(GetCurrentResourceName()..':setVehicleProperties', '', if not value or not GetEntityFromStateBagName then return end local entity = GetEntityFromStateBagName(bagName) local networked = not bagName:find('localEntity') + if Config.System.Debug then print("^6Bridge^7: ^2Setting Vehicle Properties ^7[^3"..entity.."]^7 - [^3"..GetEntityModel(entity).."^7] - [^3"..value.plate.."^7]") end if networked and NetworkGetEntityOwner(entity) ~= cache.playerId then return end