ed
This commit is contained in:
parent
60d3bab09d
commit
028317e2ec
5 changed files with 324 additions and 33 deletions
|
@ -290,3 +290,23 @@ exports('hasLicenseClass', function(citizenid, class)
|
|||
end
|
||||
return false
|
||||
end)
|
||||
|
||||
-- Spieler-Foto aus QBCore holen
|
||||
RegisterNetEvent('license-system:server:getPlayerPhoto', function(targetId)
|
||||
local src = source
|
||||
local TargetPlayer = QBCore.Functions.GetPlayer(targetId)
|
||||
|
||||
if TargetPlayer then
|
||||
-- Mugshot vom Spieler machen
|
||||
TriggerClientEvent('license-system:client:takePlayerPhoto', src, targetId)
|
||||
end
|
||||
end)
|
||||
|
||||
-- Foto-URL speichern
|
||||
RegisterNetEvent('license-system:server:savePlayerPhoto', function(citizenid, photoUrl)
|
||||
MySQL.Async.execute('UPDATE player_licenses SET photo_url = ? WHERE citizenid = ? AND id = ?', {
|
||||
photoUrl,
|
||||
citizenid,
|
||||
-- Hier die aktuelle Lizenz-ID
|
||||
})
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue