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

webhook #83

Open
swan2b144 opened this issue Oct 15, 2022 · 4 comments
Open

webhook #83

swan2b144 opened this issue Oct 15, 2022 · 4 comments
Labels
question Further information is requested

Comments

@swan2b144
Copy link

swan2b144 commented Oct 15, 2022

Before submitting your question have you checked the check the FAQ or checked for similar issues already?: yes

Question:
for the web hooks what do i put as the name you have an example
"bank": "https://discord.com/api/webhooks/000000000/sEcRRet-ToK3n_5tUfF_tH8t_YUo-S40u1d-n07-sHar3",

what other titles are available? or do i just make a bunch like bank vehicle garage etc? i know i create the webhook and put them in config but how do i use them or how are they used or how many do i need?

Information:
FiveM artifact #: 5848
Using QBCore?: yes
When did you last update QBCore if you are using it?: latest update

@swan2b144 swan2b144 added the question Further information is requested label Oct 15, 2022
@swan2b144 swan2b144 changed the title webook webhook Oct 15, 2022
@zfbx
Copy link
Owner

zfbx commented Oct 15, 2022

name is whatever you want it to be as it'll be the name to call the hook

@swan2b144
Copy link
Author

so i just make a few random ones and they work? or if i want an vehicle spawned hook how do i implement it. maybe what im asking is how is the hook triggered how do i call it? do i put them in my own scripts?

@zfbx
Copy link
Owner

zfbx commented Oct 15, 2022

There's examples in the docs https://zfbx.github.io/zdiscord/exports#log

@swan2b144
Copy link
Author

thank you i did not see this. so its global export for commds i can log in the bot you made as well as lua exports i can use in my own lua scripts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants