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 :)
[QUOTE=conor1123;20104045]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 :)[/QUOTE]
In player_hooks.lua you'll have something like this:
[code]function GM:PlayerSpawnVehicle( ply )
if( ply:IsAdmin() ) then return true; end
end[/code]
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
[code]function GM:PlayerSpawnNPC( ply, npc_type, equipment )
if( ply:IsAdmin() ) then return true; end
end[/code]
Sorry, you need to Log In to post a reply to this thread.