1
0
Fork 0
forked from Simnation/Main
Main/resources/[tools]/bzzz_spawnped/config.lua
2025-06-26 16:54:23 +02:00

64 lines
2.9 KiB
Lua

Config = {
Animals = {
{
animalHash = `a_c_cow`, -- Use ``(backticks) because it's faster than using GetHashKey
-- https://docs.fivem.net/docs/game-references/ped-models/#animals
animalCoords = vector4(1580.2, 2169.23, 78.22, 40.94 ), -- x, y, z, heading
animalScenario = 'WORLD_COW_GRAZING', -- https://github.com/DioneB/gtav-scenarios
animalSettings = {
FreezeAnimal = true, -- Using only FreezeEntityPosition
Invincible = true, -- Using SetEntityInvincible, SetPedDiesWhenInjured, SetPedCanPlayAmbientAnims, SetPedCanRagdollFromPlayerImpact
BlockingOfNonTemporaryEvents = true, -- Using SetBlockingOfNonTemporaryEvents
},
},
{
animalHash = `a_c_hen`,
animalCoords = vector4(1582.36, 2167.7, 78.3, 8.31),
animalScenario = 'WORLD_HEN_PECKING',
animalSettings = {
FreezeAnimal = true,
Invincible = true,
BlockingOfNonTemporaryEvents = true,
},
},
},
Persons = {
{
pedHash = `a_m_m_farmer_01`, -- Use ``(backticks) because it's faster than using GetHashKey
pedCoords = vector4(1561.6321, 3801.2871, 33.4187, 207.3153), -- x, y, z, heading
pedScenario = 'WORLD_HUMAN_STAND_MOBILE,
pedSettings = {
FreezePerson = true, -- Using only FreezeEntityPosition
Invincible = true, -- Using SetEntityInvincible, SetPedDiesWhenInjured, SetPedCanPlayAmbientAnims, SetPedCanRagdollFromPlayerImpact
BlockingOfNonTemporaryEvents = true, -- Using SetBlockingOfNonTemporaryEvents
},
},
{
pedHash = `a_m_m_farmer_01`, -- Use ``(backticks) because it's faster than using GetHashKey
pedCoords = vector4(1633.0272, 3863.1299, 33.1044, 308.1584), -- x, y, z, heading
pedAnimation = {
animDict = 'random@burial',
animName = 'a_burial',
animFlag = 1,
},
pedProp = {
propHash = `prop_tool_shovel`,
propBone = 28422, -- boneIndex (https://wiki.rage.mp/index.php?title=Bones)
propPlacement = {
0.0, -- xPos
0.0, -- yPos
0.24, -- zPos
0.0, -- xRot
0.0, -- yRot
0.0, -- zRot
},
},
pedSettings = {
FreezePerson = true, -- Using only FreezeEntityPosition
Invincible = true, -- Using SetEntityInvincible, SetPedDiesWhenInjured, SetPedCanPlayAmbientAnims, SetPedCanRagdollFromPlayerImpact
BlockingOfNonTemporaryEvents = true, -- Using SetBlockingOfNonTemporaryEvents
},
},
},
}