Easily add NPC's into your FiveM game
- Download the script either from
- The Releases page
- Click on Code and then Download Zip
- Using Git Clone (See Below)
- Drag and drop the core_npc into your server/folder/whatever you use
- Add
ensure core_npc
to your server.cfg - Enjoy!
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.
- Easy integration with bt-target
- Optimize Draw Distance for text (Thanks to BombayV)
- Optimize ped spawning, delete ped when client moves away
GTA:V Ped Models and Hashes
GTA:V Animations
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
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