mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user