Nuno Radio Man Scripts
  • Documentation
    • 🔫Robbery
      • 🛠️Installation
      • 📃Items
      • 📔Door Docs
      • 📘NPC Docs
      • 📗Interactable Docs
      • 📕Laser Docs
      • 📙Robbery Spawn Docs
      • 📖Robbery Minigames
      • 📓Robbery Events
    • 👷Job
      • 🛠️Installation
      • 📑Items
      • 📔Blip Docs
Powered by GitBook
On this page
  1. Documentation
  2. Robbery

NPC Docs

Docs for built-in npc system.

Here is the official documentation for the npc system

cfg_robbery.lua
npcs = {
    { -- 1
	spawn = {
	    model = GetHashKey("model"), -- npc model that will spawn
	    position = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}, -- {pos_x,pos_y,pos_z,heading,offset_x,offset_y,offset_z,offset_heading}
            positions = { -- If this is used it will ignore the position variable
                {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}, -- {pos_x,pos_y,pos_z,heading,offset_x,offset_y,offset_z,offset_heading}
                {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}, -- {pos_x,pos_y,pos_z,heading,offset_x,offset_y,offset_z,offset_heading}
                {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}, -- {pos_x,pos_y,pos_z,heading,offset_x,offset_y,offset_z,offset_heading}
            },
	    weapon = GetHashKey("weapon"), -- npc weapon that will spawn
	    weapons = { -- If this is used it will ignore the weapon variable
		GetHashKey("weapon"),
		GetHashKey("weapon"),
		GetHashKey("weapon"),
	    },
			
	    respawn = true, -- If true the npc will respawn if false npc will not respawn
	},

	relationship = 5, -- 5 "Hate" | 4 "Dislike" | 3 "Neutral" | 2 "Like" | 1 "Respect" | 0 "Companion" |
	armor = 0, -- npc armor
	accuracy = 0, -- npc accuracy
	headshots = false, -- If true the npc can get headshoted if false the npc cannot get headshoted

	delete_if_far_away_from_origin = true, -- if true the npc will despawn if faraway from the origin position
	delete_if_far_away_from_origin_range = 150.0, -- range of the despawn system
    },
}

PreviousDoor DocsNextInteractable Docs

Last updated 11 months ago

🔫
📘