Esx_joblisting2 - option for application to whitelisted job via in-game to discord webhook

https://github.com/johanwulf/esx_joblisting2

Option added to the jobcenter - there’s now “choose profession” and “apply”

  • Choose Profession is the same old
  • Apply brings up a tablet

In this tablet you will choose what job to apply for, example police, ambulance, taxi etc. Type some lines about your working experience, etc, etc.

Once configed correctly via discord webhooks in the config.lua (one channel for every jobs boss) it will work. Change whatever. Improvements are welcome. Please write if you find any bugs.

13 Likes

Wont provide any support for people not understanding how to set it up. Webhooks are straight forward.

1 Like

I have to give that a try.
Looks good man!!! Keep it up


Configurable jobs in config only coming soon. As it is now, you have to change multiple files to add/remove jobs.

Looks awesome Dude, keep up the good work ;)!

I’ve added the webhook after the police = “police”, " ( Webhook here ) ", but it doesn’t do anything so i was wondering if i was doing it right

you want to replace “police” with the webhook

love the script. already tested it on my server and was able to add other whitelisted jobs

sexy, thanks!
20 characters

just know a bit of html and javascript and you ll be able to set a new field up

Yes, possible
You need to edit the files
ui.html and esx_joblisting_sv.lua
to add or remove the jobs that will be WEBHOOK
I removed the ones I did not want and added the ones I will use
And link all in webhook is 100% working
very good resource … Congratulations

EX:
esx_joblisting_sv.lua
Lines 42 to 67

function(rows)

	for i = 1, #rows, 1 do
		_name = rows[i].firstname .. ' ' .. rows[i].lastname
	end

	if data.type == "police" then
		postApp(_name, data.phone, data.licenses, data.exp, Config.Webhook.police)
	elseif data.type == "ambulance" then
		postApp(_name, data.phone, data.licenses, data.exp, Config.Webhook.ambulance)
	elseif data.type == "journalist" then
		postApp(_name, data.phone, data.licenses, data.exp, Config.Webhook.journalist)
	elseif data.type == "cardealer" then
		postApp(_name, data.phone, data.licenses, data.exp, Config.Webhook.cardealer)
	elseif data.type == "mechanic" then
		postApp(_name, data.phone, data.licenses, data.exp, Config.Webhook.mechanic)
	elseif data.type == "realestate" then
		postApp(_name, data.phone, data.licenses, data.exp, Config.Webhook.realestate)
	elseif data.type == "taxi" then
		postApp(_name, data.phone, data.licenses, data.exp, Config.Webhook.taxi)
	elseif data.type == "fire" then
		postApp(_name, data.phone, data.licenses, data.exp, Config.Webhook.fire)
	elseif data.type == "delivery" then
		postApp(_name, data.phone, data.licenses, data.exp, Config.Webhook.delivery)
	end
end)

UI.HTML
Lines 77 through 89

Profissões:
Policia
Resgate
Bombeiro
Jornalista
Mecânico
Taxi

Amazing script , i feel i have set everything up properly but i end up stuck after having sent an application , and even with weebhooks in place in config can’t seem to get the alerts on discord ! might be me or do you think a script could be blocking it ?

folder" local "french language if i made a mistake on tell me, ty
fr.lua (192 Bytes)

Works great!

Easy to add and remove questions. Good work!

Great job ! Thank you

Hello it’s no open the tablet… why…?

anyone can show me the correct way to set-up config, thank you.
already made and config the webhooks but for some reason isnt working for me lul

under the config.lua
config.webhook = {
police = “webhook”,
ambulance = “webhook”
}

Config.Webhook = {
police = “https://discordapp.com/api/webhooks/519181303250157607/345LIA5P0hwvh165vt3zWgpQEjzTDv8ocI-dWZWkv5YHJ2y9HVWIwFJK-SzBc9yLt_Ft”,
ambulance = “https://discordapp.com/api/webhooks/517638444298797056/Wp9ZZIcxSAi_aGZdQfamiAR69Q_1NsOT_svFG-H6mb5fdkFnRcW6Ji123TzlaEkEY-_gq”,
journalist = “journalist”,
cardealer = “cardealer”,
mechanic = “mechanic”,
realestate = “realestate”,
taxi = “taxi”,
delivery = “delivery”
}

like this right? anything else?