Customize or Add a new NPC

How to customize a NPC backstory or name

To customize or add a new NPC, you need to do it in the file:

`custom/server/npc.lua`

This should be as easy as add a new entry in the CUSTOM_NPC list:

CUSTOM_NPC  = {
    -- Here an example about how to configure a ped model
    a_f_m_beach_01 = {
        gender = 'FEMALE',
        name = 'Samantha Reed',
        backstory = 'A free-spirited surfer who spends her days riding the waves and teaching tourists how to balance on a board.'
    },
    --  Keep adding as required
}

Where you will be specifying the following information:

  • PED Model: You will be specifying the ped model as the key of the new entry.

  • Gender: You need to specify the new NPC gender (MALE or FEMALE) to ensure the correct voice speech.

  • Name: Here you need to introduce the name of the NPC, this will be his new name for all the interactions with him.

  • Backstory: This is the story of the NPC, can include the past of the NPC, his specific hobbies, behaviors or whatever you think can be relevant for the interaction with the players

Last updated