INSERT INTO items (name, label, limit, rare, can_remove) VALUES
(‘pay_works’, ‘Bills’, 15, 0, 1);

and is work!

Unfortunatly, does not work…

What i can see in the code, more times:

RegisterServerEvent('esx_cityworks:GiveItem')
AddEventHandler('esx_cityworks:GiveItem', function()
	local _source = source
	local xPlayer = ESX.GetPlayerFromId(_source)

	local Quantity = xPlayer.getInventoryItem(Config.Zones.Vente.ItemRequires).count

Well,

there is a lot wrong with this job. The pool references… but okay.
When i changed the contrat to pay_works the server crashes on the database and player info could not be loaded, so i reversed it.

In the config.lua i changed from rule 63 to 72:

	ItemTime = 500,
	ItemDb_name = "contrat",
	ItemName = "Bills",
	ItemMax = 45,
	ItemAdd = 1,
	ItemRemove = 1,
	ItemRequires = "contrat",
	ItemRequires_name = "Bills",
	ItemDrop = 100,
	ItemPrice  = 1300,

Maybe the Topic started can refine the script and fix it… Also the pool references, because when you want the pooljob now, it will go wrong :wink:

Also, somehow, in the config.lua, the line 6: Config.Locale = 'fr' changes to ‘en’ by itself…
When you add the en.lua and add it to recources.lua, it cannot find the file (so you made the en.lua file, and added it into recources.lua, it could not load the file)

1 Like

this still not working correctly? no bills?

Sorry for the break the script is now updated. Sorry for the problems

this job seems to be broken no blip on the map no work whats so ever

Work fine for everyone else

Try this video, But i will be updating the github now, For SQL and item info

thank you works very well wish the city checks could be put in every esx job :smiley:

hey, How can I make only one repair point, I have tried but when that point is finished, it keeps putting the same location on the GPS again and again. Greetings

Hey man, how did you fix it? I Have no blip in the map

1 Like

Same no blip on the map when I choose the job :frowning:

Ok Solved, the good esx_citywork is the sub folder in the source, not the Parent Folder.

can’t cash in my bills.

image

1 Like

Hello i am stuck in the payment , standing with a clipboard in my hand, and have to kill myself before i can move again

So what i think is that its not compatible with the latest esx

To solve your problem, you must comment two lines.
…Esx_Cityworks\client\main.lua


and

You sacrifice an animation but it is solved, good luck!.
sorry for my english :V
xd

https://prnt.sc/ss6ika how fix this?

I got the same error “SCRIPT ERROR: @esx_cityworks/server/main.lua:11: attempt to index a nil value” do you fixed it?

Hi guys . anyone know how to make it all job can access ?

Ps : nvm . already made it works

@Zach_Brown - question for you with this script.
I am trying to add more options for vehicles and tried using:


Config.Vehicles = {
Truck =
{
Spawner = 1,
Label = ‘WPG Boxville’,
Hash = “boxville”,
Livery = 0,
Trailer = “none”,
},
{
Spawner = 1,
Label = ‘WPG Van’,
Hash = “wpgvan”,
Livery = 1,
Trailer = “none”,
},
{
Spawner = 1,
Label = ‘WPG Utility Truck’,
Hash = “wpgtruck”,
Livery = 1,
Trailer = “none”,
},
{
Spawner = 1,
Label = ‘WPG Utility Truck 2’,
Hash = “sandkingut”,
Livery = 3,
Trailer = “none”,
},
{
Spawner = 1,
Label = ‘WPG Ram 2500’,
Hash = “wpgram”,
Livery = 0,
Trailer = “none”,
}
}


The script works, however it only takes the last vehicle in the list.
Any ideas on how to add more vehicles to the spawner menu for this job?