VeniScript 2 ~ Can't spawn NPCS o.o?

Hey guys i’m running Veni2 on my server and for some reason i can’t spawn NPCS.
The limit is not set to 0, and sbox_allownpcs is set to 1 in the config.
This might not even have anything to do with lua :3 but it might.
Thanks :slight_smile:

In player_hooks.lua you’ll have something like this:


function GM:PlayerSpawnVehicle( ply )

	if( ply:IsAdmin() ) then return true; end

end

Try and find GM:PlayerSpawnNPC. If it’s not there (It should be either ontop or below it) then add this under the last GM:PlayerspawnWHATEVER


function GM:PlayerSpawnNPC( ply, npc_type, equipment )

	if( ply:IsAdmin() ) then return true; end
	
end