forked from Simnation/Main
Update main.lua
This commit is contained in:
parent
6fcdf2d1d2
commit
91265ef93c
1 changed files with 2 additions and 2 deletions
|
@ -16,13 +16,13 @@ function SpawnGuardNPC(npc)
|
||||||
-- Ped Model laden
|
-- Ped Model laden
|
||||||
RequestModel(npc.model)
|
RequestModel(npc.model)
|
||||||
local timeout = 0
|
local timeout = 0
|
||||||
while not HasModelLoaded(npcHash) and timeout < 100 do
|
while not HasModelLoaded(npc.model) and timeout < 100 do
|
||||||
timeout = timeout + 1
|
timeout = timeout + 1
|
||||||
print("Warte auf Model-Load...")
|
print("Warte auf Model-Load...")
|
||||||
Wait(100)
|
Wait(100)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not HasModelLoaded(npcHash) then
|
if not HasModelLoaded(npc.model) then
|
||||||
print("Model konnte nicht geladen werden!")
|
print("Model konnte nicht geladen werden!")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue