Loading Indoor Tables
At the top of the file add:
local Loaded = {}
Inside of Client.Functions.GetIntoHouse
at the end (after the callback) add:
if not Loaded[houseId] then
TriggerEvent('cb-crafting:client:LoadIndoorTables')
Loaded[houseId] = true
end
Deleting Indoor Tables
In the client/functions.lua
file inside of Client.Functions.LeaveHouse
at the end add:
if Loaded[houseId] then
TriggerEvent('cb-crafting:client:DeleteInsideTables')
Loaded[houseId] = false
end