Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

view info sometimes returns different parts status for different people #11

Open
bruinp8n opened this issue Aug 24, 2022 · 0 comments
Open

Comments

@bruinp8n
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant