sfxcustoms / core_npc

A simple way to add NPC's to your server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CORE_NPC

Support Server alt text
Easily add NPC's into your FiveM game

Installation

  1. Download the script either from
  • The Releases page
  • Click on Code and then Download Zip
  • Using Git Clone (See Below)
  1. Drag and drop the core_npc into your server/folder/whatever you use
  2. Add ensure core_npc to your server.cfg
  3. Enjoy!

Usage

To add peds into your server, simply modify the config.lua file, with the template below:

{ x co-ord, y co-ord, z co-ord, ped heading, model hash, ped model, heading text/name, animation_text }

Example:

{ -56.800365447998, -785.83428955078, 43.227298736572, 500.77, 0xB353629E,"s_m_m_paramedic_01", "Paramedic", "mini@strip_club@idles@bouncer@base" }

Don't forget, if you add multiple peds, you need to add a , on all {} except for the last ped line. Example:

{...},
{...},
{...}

Thanks to BombayV, you can now simply set the draw distance for the text spawning and text colour. These can be easily set the config.

Working on

  • Easy integration with bt-target
  • Optimize Draw Distance for text (Thanks to BombayV)
  • Optimize ped spawning, delete ped when client moves away

Useful Links

GTA:V Ped Models and Hashes
GTA:V Animations

Using Git Clone

Using Git Clone is easy (if you have not used it before). If you have never used Git before, I would suggest just downloading the files either from the Releases page or the zip file.

git clone https://github.com/michaelrosstarr/core_npc

License

License: GPL v3
This script falls under GNU General Public License v3.0, which means that you can contribute towards this project, modify this script for private use (meaning, you cannot release this script under your own name and claiming that you created it), rather contribute your changes by doing a Pull Request. Read more about Pull Requests here

About

A simple way to add NPC's to your server

License:GNU General Public License v3.0


Languages

Language:Lua 100.0%