Merge branch 'dev' into dev

This commit is contained in:
BerkieBb
2022-02-23 11:15:20 +01:00
committed by GitHub
4 changed files with 56 additions and 1 deletions
+3 -1
View File
@@ -2,6 +2,8 @@ local Translations = {
error = {
not_online = 'El jugador no está conectado!',
wrong_format = 'Formato incorrecto!',
missing_args = 'No todos los argumentos estan presente! (x, y, z)',
missing_args2 = 'Todos los argumentos tienen que estar presente!',
missing_args = 'No todos los argumentos estan presentes! (x, y, z)',
missing_args2 = 'Todos los argumentos deben estar presentes!',
no_access = 'No tienes acceso a este comando!',
@@ -13,7 +15,7 @@ local Translations = {
info = {
received_paycheck = 'Has recibido tu pago de $%{value}',
job_info = 'Trabajo: %{value} | Grado: %{value2} | Estado: %{value3}',
gang_info = 'Banda: %{value} | Grado: %{value2}',
gang_info = 'Pandilla: %{value} | Grado: %{value2}',
on_duty = 'Ahora estás en servicio!',
off_duty = 'Ahora estás fuera de servicio!'
}
+25
View File
@@ -0,0 +1,25 @@
local Translations = {
error = {
not_online = 'Spēlētājs nav online',
wrong_format = 'Nepareizs formāts',
missing_args = 'Ne visi argumenti tika ievadīti (x, y, z)',
missing_args2 = 'Visiem argumentiem ir jābut aizpildītiem!',
no_access = 'Nav piekļuve šai commandai',
company_too_poor = 'Jūsu darba vedējs ir nabadzīgs',
item_not_exist = 'Šī lieta nēeksistē',
too_heavy = 'Inventārs ir pārāk pilns'
},
success = {},
info = {
received_paycheck = 'Jūs esat saņēmuši savu algu par $%{value}',
job_info = 'Darbs: %{value} | Pakāpe: %{value2} | Pienākums: %{value3}',
gang_info = 'Banda: %{value} | Pakāpe: %{value2}',
on_duty = 'Jūs tagad esat dienestā!',
off_duty = 'Jūs tagad esat atbrīvots no dienesta!'
}
}
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true
})
+25
View File
@@ -0,0 +1,25 @@
local Translations = {
error = {
not_online = 'Oyuncu çevrimiçi değil',
wrong_format = 'Yanlış birim',
missing_args = 'Her argüman girilmedi (x, y, z)',
missing_args2 = 'Tüm argümanlar doldurulmalıdır!',
no_access = 'Bu komuta erişim yok',
company_too_poor = 'İşvereniniz bozuk',
item_not_exist = 'Öğe mevcut değil',
too_heavy = 'Envanter çok dolu'
},
success = {},
info = {
received_paycheck = 'Maaş çekinizi aldınız $%{value}',
job_info = 'İş: %{value} | Seviye: %{value2} | Görev: %{value3}',
gang_info = 'Çete: %{value} | Seviye: %{value2}',
on_duty = 'Şimdi görev başındasın!',
off_duty = 'Şimdi görevden alındın!'
}
}
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true
})
+3
View File
@@ -179,6 +179,7 @@ function QBCore.Player.CreatePlayer(PlayerData)
self.PlayerData.job.isboss = false
end
self.Functions.UpdatePlayerData()
TriggerEvent('QBCore:Server:OnJobUpdate', self.PlayerData.source, self.PlayerData.job)
TriggerClientEvent('QBCore:Client:OnJobUpdate', self.PlayerData.source, self.PlayerData.job)
return true
end
@@ -209,6 +210,8 @@ function QBCore.Player.CreatePlayer(PlayerData)
function self.Functions.SetJobDuty(onDuty)
self.PlayerData.job.onduty = onDuty
self.Functions.UpdatePlayerData()
TriggerEvent('QBCore:Server:OnJobUpdate', self.PlayerData.source, self.PlayerData.job)
TriggerClientEvent('QBCore:Client:OnJobUpdate', self.PlayerData.source, self.PlayerData.job)
end
function self.Functions.SetMetaData(meta, val)