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


#1

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.


#2

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


#3

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



#4

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


#5

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


#6

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


#8

you want to replace “police” with the webhook


#9

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


#10

sexy, thanks!
20 characters


#11

I really, really love it!

How can I insert a extra field? Maybe steamid or something.


#12

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


#13

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


#14

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


#15

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 ?


#16

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


#17

Works great!

Easy to add and remove questions. Good work!


#18

Great job ! Thank you


#19

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


#20

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


#21

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