Lua errors


  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/autorun/photon/sh_emv_meta.lua:8: attempt to call field 'StartWith' (a nil value)
  1. IsEMV - lua/autorun/photon/sh_emv_meta.lua:8
   2. HasELS - lua/autorun/photon/sh_emv_meta.lua:19
    3. CalculateFrames - lua/autorun/photon/cl_emv_init.lua:31
     4. fn - lua/autorun/photon/cl_emv_init.lua:35
      5. unknown - addons/ulib/lua/ulib/shared/hook.lua:184

Can you post sh_emv_meta.lua?

This may be code I wrote… are you using an extracted version of the Photon addon?

I’m using photon addons from the workshop, it was working until now.

So I double checked, code is from here:



AddCSLuaFile()
local ent = FindMetaTable( "Entity" )

function ent:IsEMV()
	if not IsValid( self ) then return false end
	if not EMV_INDEX then return false end
	local str = self:GetDTString( EMV_INDEX )
	if string.StartWith( tostring(str), "*" ) then return true end
	return false // edit: I should have done return string.StartWith( tostring(str), "*" ) like a competent person
end


AFAIK StartWith is still a valid function. Have you installed any Photon cars or any other addons recently?

Code from where?

sh_emv_config.lua, which is the file in the error you gave (since I made Photon)

It looks like something is breaking your utilities lua file, making some of the functions from Photon stop working. Does this appear every time you start a game?

Only every time I join my server, I downloaded the workshop version so the server just mounts it.

Hmm, is there any more to the error at the top?



  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184



lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184

Warning: Unhandled usermessage 'anim_sayhi'

[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] gamemodes/base/gamemode/obj_player_extend.lua:181: attempt to call field 'GetPlayerTrace' (a nil value)
  1. GetEyeTrace - gamemodes/base/gamemode/obj_player_extend.lua:181
   2. BeingLookedAtByLocalPlayer - gamemodes/sandbox/entities/entities/base_gmodentity.lua:19
    3. unknown - gamemodes/sandbox/entities/entities/base_gmodentity.lua:30


[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:110: attempt to call field 'Count' (a nil value)
  1. fn - gamemodes/sandbox/gamemode/cl_init.lua:110
   2. Run - addons/ulib/lua/ulib/shared/hook.lua:184
    3. fn - lua/includes/modules/halo.lua:150
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184


[ERROR] lua/includes/modules/notification.lua:134: attempt to call field 'Count' (a nil value)
  1. fn - lua/includes/modules/notification.lua:134
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:184



I think ulx is messing with it.

Nah, ulx overwrites the hook lib so anything that happens in a hook gets ulx in the stack trace.

I found the problem, when I edited the toolgun to make a few fixes I had a syntax error, I still don’t know why it came up as photon.