From c0ee1ae2f8a2c891597befabaa8170b60c59aa25 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 22 May 2023 03:27:47 +1000 Subject: [PATCH] fix(client/vehicleProperties): SetVehicleExtra takes bool --- resource/vehicleProperties/client.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/vehicleProperties/client.lua b/resource/vehicleProperties/client.lua index 8e7e86c..dbd9bdd 100644 --- a/resource/vehicleProperties/client.lua +++ b/resource/vehicleProperties/client.lua @@ -349,8 +349,8 @@ function lib.setVehicleProperties(vehicle, props) end if props.extras then - for id, state in pairs(props.extras) do - SetVehicleExtra(vehicle, id, state) + for id, disable in pairs(props.extras) do + SetVehicleExtra(vehicle, id, disable == 1) end end