forked from Simnation/Main
[GARAGE] Fill Mods
This commit is contained in:
parent
0a9cc08fc8
commit
4a0c8c282e
2 changed files with 38 additions and 0 deletions
|
@ -11,6 +11,20 @@ Citizen.CreateThread(function()
|
|||
end
|
||||
end)
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Wait(5000)
|
||||
local ped = PlayerPedId()
|
||||
|
||||
if PedIsInAnyVehicle(ped) then
|
||||
local veh = GetVehiclePedIsUsing(ped)
|
||||
local mods = QBCore.Functions.GetVehicleProperties(vehicle)
|
||||
|
||||
TriggerServerEvent('mh_garage:setMods', mods)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Funktion zum Spawnen des NPCs
|
||||
function SpawnGuardNPC(npc)
|
||||
-- Ped Model laden
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue