Yes it would be 2
I would also like to point out
Citizen.CreateThread(function()
DecorRegister("test", 2)
end)
AddEventHandler("eventName", function(veh)
DecorSetBool(veh, "test", true)
print(tostring(DecorGetBool(veh, "test")))
DecorSetBool(veh, "test", false)
print(tostring(DecorGetBool(veh, "test")))
end)
You don’t need to manually thread an event handler. FiveM by default already threads them for you. So no need for Citizen.CreateThread inside that event for that type of code. I know you are doing this for just testing purposes but you shouldn’t really need to add another thread in there so was just making sure you knew it was already threaded.