DarkRP - Buying NPC's

I was wondering if there is a way to make it so a player can buy a NPC from the f4 menu or the Pointshop. Is there a code that can be added in the addentities.lua file such as “AddEntity” but for a NPC? If this can not be done is there a way it can be done in the pointshop?

Yes it possible

How can it be done?

Very very easy
add it to addentities.lua

AddEntity("Cheap Whore", {
	ent = "npc_alyx", --npc's entity name
	model = "models/alyx.mdl",
	price = 10,
	max = 1,
	cmd = "/buywhore"

OH MY GOD! That was easy… Thank you so much!