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))
|
print("NPC erfolgreich erstellt mit Handle: " .. tostring(npcHandle))
|
||||||
-- NPC Eigenschaften setzen
|
-- NPC Eigenschaften setzen
|
||||||
SetEntityAsMissionEntity(npcHandle, true, true)
|
SetEntityAsMissionEntity(npcHandle, true, true)
|
||||||
|
SetPedDefaultComponentVariation(npcHandle)
|
||||||
|
--[[ SetEntityAsMissionEntity(npcHandle, true, true)
|
||||||
SetBlockingOfNonTemporaryEvents(npcHandle, true)
|
SetBlockingOfNonTemporaryEvents(npcHandle, true)
|
||||||
SetPedDiesWhenInjured(npcHandle, false)
|
SetPedDiesWhenInjured(npcHandle, false)
|
||||||
SetPedCanPlayAmbientAnims(npcHandle, true)
|
SetPedCanPlayAmbientAnims(npcHandle, true)
|
||||||
SetPedCanRagdollFromPlayerImpact(npcHandle, false)
|
SetPedCanRagdollFromPlayerImpact(npcHandle, false)
|
||||||
SetEntityInvincible(npcHandle, true)
|
SetEntityInvincible(npcHandle, true)
|
||||||
FreezeEntityPosition(npcHandle, true)
|
FreezeEntityPosition(npcHandle, true) ]]
|
||||||
|
|
||||||
-- Optional: Animation für den NPC
|
-- Optional: Animation für den NPC
|
||||||
TaskStartScenarioInPlace(npcHandle, "WORLD_HUMAN_GUARD_STAND", 0, true)
|
TaskStartScenarioInPlace(npcHandle, "WORLD_HUMAN_GUARD_STAND", 0, true)
|
||||||
|
|
|
@ -6,7 +6,7 @@ Config.Zonen = {
|
||||||
name = "Meetingpoint",
|
name = "Meetingpoint",
|
||||||
price = nil, --pro FZ
|
price = nil, --pro FZ
|
||||||
NPC = {
|
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",
|
model = "s_m_m_security_01",
|
||||||
distance = 30.0
|
distance = 30.0
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue