1
0
Fork 0
forked from Simnation/Main

[GARAGE] Fill Mods

This commit is contained in:
Miho931 2025-06-09 15:23:24 +02:00
parent 0a9cc08fc8
commit 4a0c8c282e
2 changed files with 38 additions and 0 deletions

View file

@ -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