[STANDALONE] The NPC Placer

Compatible OneSync (Legacy, Infinity), All frameworks
No Dependencies

Uses Asset Escrow (no obfuscation)

My other scripts

SEPTEMBER SALE (-30% ON EVERYTHING)

STANDALONE - GET IT HERE: GitHub - S1nScripts/s1n_npcplacer: With this FiveM script, you can add customizable NPC characters to your game world. Features: Load NPCs with custom models and positions, Attach props to NPCs, Play animations for NPCs or https://store.s1nscripts.com/package/5273943 [FREE]

Preview

What are the features ?

  • Place peds everywhere you want

  • Animate the ped

  • Attach props/objects to the ped

How is the configuration file presented?

Config = {
    npcs = {
        --[[
            Template:
            {
                position = vector4(x, y, z, heading), -- NPC position X, Y, Z, Heading
                model = "modelName", -- NPC 
                animation = { -- Animation list : https://alexguirre.github.io/animations-list/ (dict in bold, animation name in regular)
                    enable = true, -- Activate the animation for the NPC
                    dict = "dictName", -- Dictionary associated to the animation
                    name = "animationName" -- Animation's name
                },
                props = {
                    enable = true, -- Activate the use of a prop for the NPC
                    list = {
                        {
                            model = "propName", -- Model of the prop
                            position = vec3(x, y, z), -- Position of the prop relative to the NPC
                            rotation = vec3(x, y, z) -- Rotation of the prop relative to the NPC
                        },
                    }
                }
            },
        ]]
        {
            position = vector4(461.288, -1691.799, 29.28, 225.0), -- NPC position X, Y, Z, Heading
            model = "csb_trafficwarden", -- NPC model 
            animation = { -- Animation list : https://alexguirre.github.io/animations-list/ (dict in bold, animation name in regular)
                enable = true, -- Activate the animation for the NPC
                dict = "mp_player_intdrink", -- Dictionary associated to the animation
                name = "loop_bottle" -- Animation's name
            },
            props = {
                enable = true, -- Activate the use of a prop for the NPC
                list = {
                    {
                        model = "prop_ld_flow_bottle", -- Model of the prop
                        position = vec3(0.01, 0.01, 0.01), -- Position of the prop relative to the NPC
                        rotation = vec3(0.0, 0.0, -1.5) -- Rotation of the prop relative to the NPC
                    },
                }
            }
        },
        {
            position = vector4(459.71, -1691.42, 29.28, 319.87), -- NPC position X, Y, Z, Heading
            model = "ig_andreas", -- NPC model
            animation = { -- Animation list : https://alexguirre.github.io/animations-list/ (dict in bold, animation name in regular)
                enable = true, -- Activate the animation for the NPC
                dict = "amb@world_human_drinking@coffee@male@base", -- Dictionary associated to the animation
                name = "base" -- Animation's name
            },
            props = {
                enable = true, -- Activate the use of a prop for the NPC
                list = {
                    {
                        model = "p_amb_brolly_01", -- Model of the prop
                        bone = 57005, -- Bone associated to the prop
                        position = vec3(0.15, 0.005, 0.0), -- Position of the prop relative to the NPC
                        rotation = vec3(87.0, -20.0, 180.0) -- Rotation of the prop relative to the NPC
                    },
                }
            }
        },
        {
            position = vector4(458.3, -1690.5, 29.28, 343.25), -- NPC position X, Y, Z, Heading
            model = "s_m_y_airworker", -- NPC model 
            animation = { -- Animation list : https://alexguirre.github.io/animations-list/ (dict in bold, animation name in regular)
                enable = true, -- Activate the animation for the NPC
                dict = "missheistdockssetup1clipboard@base", -- Dictionary associated to the animation
                name = "base" -- Animation's name
            },
            props = {
                enable = true, -- Activate the use of a prop for the NPC
                list = {
                    {
                        model = "prop_notepad_01", -- Model of the prop
                        bone = 18905, -- Bone associated to the prop
                        position = vec3(0.1, 0.02, 0.05), -- Position of the prop relative to the NPC
                        rotation = vec3(10.0, 0.0, 0.0) -- Rotation of the prop relative to the NPC
                    },
                    {
                        model = "prop_pencil_01", -- Model of the prop
                        bone = 58866, -- Bone associated to the prop
                        position = vec3(0.11, -0.02, 0.001), -- Position of the prop relative to the NPC
                        rotation = vec3(-120.0, 0.0, 0.0) -- Rotation of the prop relative to the NPC
                    },
                }
            }
        },
    }
}

Any suggestions or questions ?

Please write them down below in the comments section.

Script informations

Code is accessible Yes
Subscription-based No
Requirements No Requirements
Support No
10 Likes

Hey, free require direct download or github, not tebex.

1 Like

Thanks I just added the github project :slight_smile:

2 Likes

Error 404 with the github link.

Solved.

1 Like

Can they be hostile peds?

is there a reason this isnt despawning the peds when you are not close to them?

1 Like

Hi,
At the moment, there is no feature in the script for this. Are you interested in one ? If so, what would you suggest ?
Have a nice day :slight_smile:

Hi,
I mean the purpose of the script is to spawn permanent peds so i guess this is the reason x’)
Have a nice day

I would really like to make hostile guards for some areas like humane labs and cayro island

Hi, i’m going to check that :slight_smile:
Have a nice day

there is bug that double props holded by peds when there is more than 1 player

Looks nice, what does the resmon say?

Hi,
It depends on the number of Peds you put in the config file and your computer’s configuration. So like on my configuration I get 0.01ms with the default peds in the config (RTX 2070, Ryzen 7, 16go 3200mhz). Since the resource is free you can do your own benchmarks :slight_smile:
Have a nice day.

2 Likes

bug

1 Like

Hi, I am going to check this problem :slight_smile:

will they die if you shoot them

Hi,

No they won’t.

Have a nice day :slight_smile:

Is there any website that has animation list with preview?
Kinda hard to choose the animation without preview :'3
& is it possible to make peds gone after some distance away from them like TextUI that close after some distance?

Hi,

I don’t think that such website exists.
You can use GitHub - eblio/animenu: A FiveM "menu" to play any animation to preview the animations (it has almost all of them)

No there isn’t any featurein the script to make peds gone after some distance.

Have a nice day.