forked from Simnation/Main
Update retrieve.lua
This commit is contained in:
parent
a46b5450b7
commit
0fe9c9b659
1 changed files with 5 additions and 1 deletions
|
@ -36,7 +36,11 @@ AddEventHandler('mh_garage:retrieveVehicle', function()
|
|||
local opt = {}
|
||||
|
||||
QBCore.Functions.TriggerCallback('mh_garage:retrieveKeyVehicle', function(cb)
|
||||
Debug(json.encode(cb))
|
||||
if cb == false then
|
||||
Notification("Es ist kein Fahrzeug hier!", "inform")
|
||||
return
|
||||
end
|
||||
|
||||
for i = 1, #cb, 1 do
|
||||
if cb[i].garage ~= "OUT" then
|
||||
local mods = json.decode(cb[i].mods)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue