Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant