NPCs — fixed characters
Fixed NPCs that everyone sees in the same place, placed in-game by admins or by other resources through exports.
Description
npcs adds fixed non-player characters (shop assistants, guards, background people) that every player sees in the same place. They are placed from inside the game by an administrator, saved on the server, and created on each client.
Features
- Place an NPC where you stand, facing the way you face.
- Two modes:
quieto(stands still) andpasea(wanders around). - Optional model (
0xhex key) and name. A model of0means the model of the player who sees it. - NPCs are invincible and ignore the game's reactions to events, so they do not flee or fight.
- Saved on the server; players receive the list when they join, and the NPCs are removed automatically when the resource stops.
- Other resources can place and remove NPCs through exports.
Commands
| Command | Who | What it does |
|---|---|---|
/npc_aqui [quieto|pasea] [0xmodelo] [nombre] (/npc_here [still|wander] ...) | admin | places an NPC where you stand. Without a first word it is quieto. To give a model you must give the mode first; the name is everything after the model |
/npc_quitar (/npc_remove) | admin | removes the nearest NPC, within 5 m |
Exports
Server-side.
| Export | What it does |
|---|---|
poner({ x, y, z, rumbo, modelo, modo, nombre }) | adds a fixed NPC (modo is quieto or pasea; modelo 0 = the viewer's own model). Returns its number |
quitar(n) | removes the NPC with that number |
local npcs = sixm.importa("npcs")
local n = npcs.poner({ x = 0.0, y = 0.0, z = 5.0, rumbo = 90.0, modelo = 0, modo = "quieto", nombre = "Clerk" })
Configuration
None: npcs has no configuration file. NPCs are stored in the resource's KVP under npcs.
Requirements
Depends on sixm-rp (for the administrator check) and, through it, sixm-base.
Installation
It already ships with the SixM server in recursos/npcs. To install or reinstall it, unzip it into the server's recursos/ folder and add or keep this line in servidor.cfg:
asegura npcs
Documentation: Bundled resources.
Versions
- Download
0.1.0 npcs.zip
Nov 30, 2026 · 2.3 KB · 0 downloads
SHA-256 0b46c409732b87ca58f1595b461c49f529758cc8c98a03830a855e3817e37c60
Comments (0)
Log in — Log in to comment and rate.