keep-oilwell icon indicating copy to clipboard operation
keep-oilwell copied to clipboard

view info sometimes returns different parts status for different people

Open bruinp8n opened this issue 2 years ago • 0 comments

After debuging the script image

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?

bruinp8n avatar Aug 24 '22 23:08 bruinp8n