fix(esx_society): Gives the source a notification as well as the target

gives the source a notification on fire,promote,hire, as well as the target.
This commit is contained in:
Benzo
2022-09-17 03:31:53 +02:00
parent 0909b45fcb
commit aae76bf1ce
+5 -1
View File
@@ -284,10 +284,13 @@ ESX.RegisterServerCallback('esx_society:setJob', function(source, cb, identifier
if type == 'hire' then
xTarget.showNotification(_U('you_have_been_hired', job))
xPlayer.showNotification(_U("you_have_hired", xTarget.getName()))
elseif type == 'promote' then
xTarget.showNotification(_U('you_have_been_promoted'))
xTarget.showNotification(_U('you_have_promoted'))
xPlayer.showNotification(_U("you_successfully_promoted", xTarget.getName()))
elseif type == 'fire' then
xTarget.showNotification(_U('you_have_been_fired', xTarget.getJob().label))
xPlayer.showNotification(_U("you_have_fired", xTarget.getName()))
end
cb()
@@ -303,6 +306,7 @@ ESX.RegisterServerCallback('esx_society:setJob', function(source, cb, identifier
end
end)
ESX.RegisterServerCallback('esx_society:setJobSalary', function(source, cb, job, grade, salary)
local xPlayer = ESX.GetPlayerFromId(source)