• A nil value error
    2 replies, posted
Im getting [ERROR] addons/starwars weaponshop/lua/entities/default/init.lua:14: attempt to call method 'SetNPCState' (a nil value)   1. unknown - addons/starwars weaponshop/lua/entities/default/init.lua:14    2. Spawn - [C]:-1     3. SpawnFunction - gamemodes/base/entities/entities/base_entity/init.lua:70      4. Spawn_SENT - gamemodes/sandbox/gamemode/commands.lua:655       5. unknown - gamemodes/sandbox/gamemode/commands.lua:720        6. unknown - lua/includes/modules/concommand.lua:54 From function ENT:Initialize() self:SetModel( "models/humans/Group01/male_03.mdl" ) self:SetHullType( HULL_HUMAN ) self:SetHullSizeNormal() self:SetNPCState( NPC_STATE_SCRIPT ) self:SetSolid( SOLID_BBOX ) bit.bor( CAP_ANIMATEDFACE , CAP_TURN_HEAD) self:SetUseType( SIMPLE_USE ) self:DropToFloor()         local phys = self:GetPhysicsObject() if (phys:IsValid()) then phys:Wake() end end
amazing..this surprised me a bit XD
If someone is having problem with a nil problem, just remember that we are trying to check this thread content and then we find nothing, how do you fix it? Define it content
Sorry, you need to Log In to post a reply to this thread.