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

GetPlayer not working #16

Closed
ForceRanger22 opened this issue Oct 7, 2021 · 8 comments
Closed

GetPlayer not working #16

ForceRanger22 opened this issue Oct 7, 2021 · 8 comments

Comments

@ForceRanger22
Copy link

image
when i try to use no matter what command it not working for me

@zfbx
Copy link
Owner

zfbx commented Oct 7, 2021

What command even is that? I never made a "st-kill.js"

@zfbx
Copy link
Owner

zfbx commented Oct 7, 2021

Or have you just renamed everything "qb" to "st"?

@zfbx
Copy link
Owner

zfbx commented Oct 7, 2021

If I was to take a guess, you have an old version of qbcore? if so you'll need the old method of getting core which you can find how to revert back in the most recent commit? 83b422c

@ForceRanger22
Copy link
Author

Or have you just renamed everything "qb" to "st"?

If I was to take a guess, you have an old version of qbcore? if so you'll need the old method of getting core which you can find how to revert back in the most recent commit? 83b422c

yes and yes itry to revert it but it not working
can you send the old version
before the changes?

@zfbx
Copy link
Owner

zfbx commented Oct 7, 2021

I can't send the old version, you just need to change app.js line 21 from QBCore = global.exports['qb-core'].GetCoreObject() to TriggerEvent('QBCore:GetObject', (obj) => { QBCore = obj });

@ForceRanger22
Copy link
Author

I can't send the old version, you just need to change app.js line 21 from QBCore = global.exports['qb-core'].GetCoreObject() to TriggerEvent('QBCore:GetObject', (obj) => { QBCore = obj });

ty working its now all working
can i ask if you goona make update with support of okokChat?

and maybe can you make ban but with the ban inside qb-core
and not deafult

@zfbx
Copy link
Owner

zfbx commented Oct 8, 2021

ban can be potentially added yeah, i don't have a timeframe on when I can add it however but if you wanted to take it on yourself the qb-kick command is very similar in input so you could probably copy that one and change it to work as a ban command.

As for the okokchat, didn't even know what that was, after some research it's a paid script and I don't own it so no I wont be adding support for it, I'm not sure why it doesn't just support normal chat as is? what exactly does it not do?

@zfbx
Copy link
Owner

zfbx commented Oct 19, 2021

added ban command to the new version that's not fully released yet (as cfx hasn't made the node16 update a part of the recommended or optional artifacts yet, but it does work if you use the most updated artifacts) https://github.com/zfbx/zdiscord/blob/djs/commands/qb-ban.js

@zfbx zfbx closed this as completed Oct 19, 2021
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

2 participants