Photon icon indicating copy to clipboard operation
Photon copied to clipboard

Console Error When Turning on TKDN Lights in Custom Car

Open isaiahwiesner opened this issue 11 months ago • 1 comments

Expected Behaviour

No errors from photon when TKDN illumination is enabled

Actual Behaviour

Error

Error Messages (if any)

[Photon Lighting Engine] lua/autorun/photon/sv_emv_meta.lua:130: bad argument #1 to 'pairs' (table expected, got nil)
  1. pairs - [C]:-1
   2. ELS_IllumOn - lua/autorun/photon/sv_emv_meta.lua:130
    3. Illumination - lua/autorun/photon/sv_emv_net.lua:75
     4. func - lua/autorun/photon/sv_emv_net.lua:85
      5. unknown - lua/includes/extensions/net.lua:38

Steps to Reproduce

  1. Add TKDN to illumination in vehicle LUA file:
EMV.Sequences = {
  Illumination = {
      { Name = "TKDN", Stage = "T", Components = {}, Disconnect = {} } 
  }
}
  1. Toggle by pressing X

Details

  • Source (Workshop / Github):
  • Garry's Mod Beta/Branch (if not standard): x86-64 - Chromium + 64-bit binaries

isaiahwiesner avatar Aug 27 '23 16:08 isaiahwiesner