forked from Simnation/Main
[Garage] Fix NPC Posi
This commit is contained in:
parent
91265ef93c
commit
cbd02dde6e
2 changed files with 4 additions and 2 deletions
|
@ -38,12 +38,14 @@ function SpawnGuardNPC(npc)
|
|||
print("NPC erfolgreich erstellt mit Handle: " .. tostring(npcHandle))
|
||||
-- NPC Eigenschaften setzen
|
||||
SetEntityAsMissionEntity(npcHandle, true, true)
|
||||
SetPedDefaultComponentVariation(npcHandle)
|
||||
--[[ SetEntityAsMissionEntity(npcHandle, true, true)
|
||||
SetBlockingOfNonTemporaryEvents(npcHandle, true)
|
||||
SetPedDiesWhenInjured(npcHandle, false)
|
||||
SetPedCanPlayAmbientAnims(npcHandle, true)
|
||||
SetPedCanRagdollFromPlayerImpact(npcHandle, false)
|
||||
SetEntityInvincible(npcHandle, true)
|
||||
FreezeEntityPosition(npcHandle, true)
|
||||
FreezeEntityPosition(npcHandle, true) ]]
|
||||
|
||||
-- Optional: Animation für den NPC
|
||||
TaskStartScenarioInPlace(npcHandle, "WORLD_HUMAN_GUARD_STAND", 0, true)
|
||||
|
|
|
@ -6,7 +6,7 @@ Config.Zonen = {
|
|||
name = "Meetingpoint",
|
||||
price = nil, --pro FZ
|
||||
NPC = {
|
||||
spawn = vector4(236.1920, -798.5126, 30.4188, 173.7135),
|
||||
spawn = vector4(236.1599, -798.8522, 30.3653, 181.7547),
|
||||
model = "s_m_m_security_01",
|
||||
distance = 30.0
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue