esx_duty
esx_duty copied to clipboard
how to add duty to mechanicjob
i want to add mechanic to duty ,can teach me how to add mechanic duty? thx a lot!
server\main.lua - Add this under offambulance
elseif job == 'offmechanic' then
xPlayer.setJob('mechanic', grade)
TriggerClientEvent('esx:showNotification', _source, _U('onduty'))
elseif job == 'offsecuritas' then
end
client\main.lua
local jobs = {
'offambulance',
'offpolice',
'offmechanic',
'police',
'ambulance',
'mechanic'
}
insert into the database
INSERT INTO `jobs` (name, label) VALUES
('offmechanic', 'Off-Duty')
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('offmechanic',0,'recrue','Off Duty',12,'{}','{}'),
('offmechanic',1,'novice','Off Duty',24,'{}','{}'),
('offmechanic',2,'experimente','Off Duty',36,'{}','{}'),
('offmechanic',3,'chief','Off Duty',36,'{}','{}'),
('offmechanic',4,'boss','Off Duty',48,'{}','{}')
;
Just edit and you can add more jobs. Just make sure you add the same amount of job_name that you have as normal job_name for every job.
Duqino kan je me helpen, want bij mij werkt het niet...
PS. ik weet dat je nl bent door je screens.
Wat werkt er niet en krijg je een foutmelding in console (F8 en/of server console)
Nee, ik had een oudere versie dus moest meerdere dingen aanpassen. Het werkt nu eigenlijk wel. Alleen als je politie, ambulance of anwb bent kan je op alle 3 de plekken wisselen. Bij politie "rondje" kan je van mechanic naar offmechanic veranderen ect...
Dat is altijd al zo geweest.
Bij mij werkt dit niet hmm
how to add the location? to the Config.lua
Dont work by me, add mechanic.. but no error, no message. he dont go off dutty