[HELP] Why aren't the NPCs in the vehicle spawning?

NPCs and NPCs on board the vehicle will not spawn.

my server.cfg

Only change the IP if you’re using a server with multiple network interfaces, otherwise change the port only.

endpoint_add_tcp 0.0.0.0:30120

endpoint_add_udp 0.0.0.0:30120

set mysql_connection_string “server=127.0.0.1;database=vrpfx;userid=root;”

set playernames_svTemplate “[{{id}}] {{firstname}} {{name}}”

set playernames_template “{{serverName}}”

These resources will start by default.

ensure mapmanager

ensure chat

ensure spawnmanager

ensure sessionmanager

ensure hardcap

ensure rconlog

ensure example-loadscreen

ensure fivem-awesome1501

ensure fivem-map-skater

ensure vMenu

ensure GHMattiMySQL

ensure vrp

ensure vrp_ghmattimysql

ensure weapons-on-back

restart sessionmanager

This allows players to use scripthook-based plugins such as the legacy Lambda Menu.

Set this to 1 to allow scripthook. Do note that this does not guarantee players won’t be able to use external plugins.

sv_scriptHookAllowed 0

Uncomment this and set a password to enable RCON. Make sure to change the password - it should look like rcon_password “YOURPASSWORD”

#rcon_password “”

A comma-separated list of tags for your server.

For example:

- sets tags “drifting, cars, racing”

Or:

- sets tags “roleplay, military, tanks”

sets tags “default”

A valid locale identifier for your server’s primary language.

For example “en-US”, “fr-CA”, “nl-NL”, “de-DE”, “en-GB”, “pt-BR”

sets locale “root-AQ”

please DO replace root-AQ on the line ABOVE with a real language! :slight_smile:

Set an optional server info and connecting banner image url.

Size doesn’t matter, any banner sized image will be fine.

#sets banner_detail “https://url.to/image.png

#sets banner_connecting “https://url.to/image.png

Set your server’s hostname

sv_hostname “FXServer, but unconfigured”

Nested configs!

#exec server_internal.cfg

Loading a server icon (96x96 PNG file)

load_server_icon myLogo.png

convars which can be used in scripts

set temp_convar “hey world!”

Uncomment this line if you do not want your server to be listed in the server browser.

Do not edit it if you do want your server listed.

#sv_master1 “”

Hide player endpoints in external log output.

sv_endpointprivacy true

enable OneSync with default configuration (required for server-side state awareness)

onesync_enabled true

Server player slot limit (must be between 1 and 32, unless using OneSync)

sv_maxclients 32

I’ve only recently had this issue from last night, anyone have any idea at all?

Hi , i was trying to replace npc vehicles (bus , police , sheriff, jet , ripley , etc ) in popgroups.ymt with french models i have on my ressource (dedicated FXserver) files.

So i made a new “npcvehiclereplace” folder in ressources , with midified popgroups.ymt and __resource.lua:
"
resource_manifest_version ‘77731fab-63ca-442c-a67b-abc70f28dfa5’

data_file ‘FIVEM_LOVES_YOU_341B23A2F0E0F131’ ‘popgroups.ymt’

files {
‘popgroups.ymt’,
}
"

The server lunched normaly but i have this same issue with unvisible npc cars , i only saw vehicles lights away as in your video.

I finally removed my test folder and everything came back well.

If somebody have a clue about how replace npc vehicles models in dedicated server i’ll really apreciate <3

My Discord:
Tengri {Grand-Bambitisme}#0627

You just necro’d a two year old thread with a completely irrelevant issue

I’m not sure, any fix? Removed all resources still doesn’t work.

Try to add this code:

Client.lua

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0) -- prevent crashing

		-- These natives have to be called every frame.
		SetVehicleDensityMultiplierThisFrame(0.35) -- set traffic density to 0 
		SetRandomVehicleDensityMultiplierThisFrame(0.35) -- set random vehicles (car scenarios / cars driving off from a parking spot etc.) to 0
		SetParkedVehicleDensityMultiplierThisFrame(0.35) -- set random parked vehicles (parked car scenarios) to 0
		SetPedDensityMultiplierThisFrame(0.0)
		SetGarbageTrucks(false) -- Stop garbage trucks from randomly spawning
		SetRandomBoats(false) -- Stop random boats from spawning in the waer.
		SetCreateRandomCops(false) -- disable random cops walking/driving around.
		SetCreateRandomCopsNotOnScenarios(false) -- stop random cops (not in a scenario) from spawning.
		SetCreateRandomCopsOnScenarios(false) -- stop random cops (in a scenario) from spawning.
		
		local x,y,z = table.unpack(GetEntityCoords(PlayerPedId()))
		ClearAreaOfVehicles(x, y, z, 1000, false, false, false, false, false)
		RemoveVehiclesFromGeneratorsInArea(x - 500.0, y - 500.0, z - 500.0, x + 500.0, y + 500.0, z + 500.0);
	end
end)

Delete all other NPC resources.

Hope this helps,

Boomba