1
0
Fork 0
forked from Simnation/Main

Update config.lua

This commit is contained in:
Nordi98 2025-06-29 08:23:53 +02:00
parent 41d14f210a
commit 6dcc9cfc26

View file

@ -1,15 +1,14 @@
Config = { Config = {
Animals = { Animals = {
{ {
animalHash = `a_c_cow`, -- Use ``(backticks) because it's faster than using GetHashKey animalHash = `a_c_cow`,
-- https://docs.fivem.net/docs/game-references/ped-models/#animals animalCoords = vector4(1580.2, 2169.23, 78.22, 40.94),
animalCoords = vector4(1580.2, 2169.23, 78.22, 40.94 ), -- x, y, z, heading animalScenario = 'WORLD_COW_GRAZING',
animalScenario = 'WORLD_COW_GRAZING', -- https://github.com/DioneB/gtav-scenarios
animalSettings = { animalSettings = {
FreezeAnimal = true, -- Using only FreezeEntityPosition FreezeAnimal = true,
Invincible = true, -- Using SetEntityInvincible, SetPedDiesWhenInjured, SetPedCanPlayAmbientAnims, SetPedCanRagdollFromPlayerImpact Invincible = true,
BlockingOfNonTemporaryEvents = true, -- Using SetBlockingOfNonTemporaryEvents BlockingOfNonTemporaryEvents = true,
}, }
}, },
{ {
animalHash = `a_c_hen`, animalHash = `a_c_hen`,
@ -19,8 +18,8 @@ Config = {
FreezeAnimal = true, FreezeAnimal = true,
Invincible = true, Invincible = true,
BlockingOfNonTemporaryEvents = true, BlockingOfNonTemporaryEvents = true,
}, }
}, }
}, },
Persons = { Persons = {
{ {
@ -32,23 +31,20 @@ Config = {
animFlag = 1 animFlag = 1
}, },
pedProp = { pedProp = {
propHash = `prop_cs_tablet`, -- Standard GTA tablet prop propHash = `prop_cs_tablet`,
propBone = 60309, -- Right hand bone for tablet propBone = 60309,
propPlacement = { propPlacement = {
0.03, -- xPos (slightly forward) 0.03, -0.02, -0.03,
-0.02, -- yPos (centered) 0.0, 0.0, 0.0
-0.03, -- zPos (height adjustment)
0.0, -- xRot
0.0, -- yRot
0.0 -- zRot
} }
}, },
pedSettings = { pedSettings = {
FreezePerson = true, -- Maintains position perfectly FreezePerson = true,
Invincible = true, -- Can't be interrupted Invincible = true,
BlockingOfNonTemporaryEvents = true -- No AI interference BlockingOfNonTemporaryEvents = true
}
} }
}, -- This comma was missing
{
pedHash = `CS_Bankman`, pedHash = `CS_Bankman`,
pedCoords = vector4(-352.1639, -51.3455, 48.0365, 339.4478), pedCoords = vector4(-352.1639, -51.3455, 48.0365, 339.4478),
pedAnimation = { pedAnimation = {
@ -57,23 +53,18 @@ Config = {
animFlag = 1 animFlag = 1
}, },
pedProp = { pedProp = {
propHash = `prop_cs_tablet`, -- Standard GTA tablet prop propHash = `prop_cs_tablet`,
propBone = 60309, -- Right hand bone for tablet propBone = 60309,
propPlacement = { propPlacement = {
0.03, -- xPos (slightly forward) 0.03, -0.02, -0.03,
-0.02, -- yPos (centered) 0.0, 0.0, 0.0
-0.03, -- zPos (height adjustment)
0.0, -- xRot
0.0, -- yRot
0.0 -- zRot
} }
}, },
pedSettings = { pedSettings = {
FreezePerson = true, -- Maintains position perfectly FreezePerson = true,
Invincible = true, -- Can't be interrupted Invincible = true,
BlockingOfNonTemporaryEvents = true -- No AI interference BlockingOfNonTemporaryEvents = true
}
} }
} }
} }