keep-oilwell
keep-oilwell copied to clipboard
view info sometimes returns different parts status for different people
After debuging the script
with
QBCore.Functions.CreateCallback('keep-oilwell:server:oilwell_metadata', function(source, cb, oilrig_hash) local oil_well = GlobalScirptData:getByHash(oilrig_hash) print(oil_well.metadata.part_info.belt, oil_well.metadata.part_info.polish, oil_well.metadata.part_info.clutch) if not oil_well then cb(false) return end cb(oil_well.metadata) end)
it seems to get called 1x for each oilrig when you open the menu, and for some people it returns the wrong well even tho they sending in the right hash?