Jonathan_NPC is a FiveM script that allows you to create and manage customizable NPCs in GTA V. You can define NPCs with specific models, animations, and floating text, as well as fetch player appearances based on unique identifiers.
- Create NPCs with detailed configurations
- Define NPC animations and floating text
- Fetch and apply player appearances using unique identifiers
-
Clone the repository to your FiveM resources directory:
git clone https://github.com/JonathanPeng0626/jonathan_npc.git
-
Add the resource to your server configuration file:
ensure jonathan_npc
Edit the config.lua file to customize your NPCs and their behaviors. Below is an example of how to configure an NPC:
Config.NPCs = {
{
model = "mp_m_freemode_01",
coords = vector4(-461.3892517089844, 1112.4698486328125, 331.4231567382813, -90),
face = { shapefirst = 10, shapesecond = 0, mixpercentage = 0.5 },
hair = { drawableId = 0, textureId = 0, paletteId = 1 },
arms = { drawableId = 0, textureId = 0, paletteId = 1 },
pants = { drawableId = 0, textureId = 0, paletteId = 1 },
shoes = { drawableId = 0, textureId = 0, paletteId = 1 },
accs = { drawableId = 0, textureId = 0, paletteId = 1 },
jbib = { drawableId = 0, textureId = 0, paletteId = 1 },
animation = { dict = "gestures@m@standing@casual", name = "gesture_hello" },
text = "Welcome to the city"
},
}This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
If you have any questions or feedback, please feel free to reach out to me. Your input is greatly appreciated.