Making a moneyprinter [Support]

Hello, I’ve started making my own money printer (Entity) and whilst doing this I’m getting an error in cl_init.lua

[ERROR] addons/darkrpmodification/lua/entities/something_moneyprinter/
a:10: attempt to call global 'IsValidEntity' (a nil value)
  1. unknown - addons/darkrpmodification/lua/entities/something_moneyprinter/cl_

And line 10 in cl_init.lua

 owner = IsValid( owner ) and owner:Nick()) or "unknown" 

Any help please?

are you sure you have owner defined properly?

-> Posts only part of code
-> Expects others to help him out

Just most whole code.

There’s an extra ) in there. Read your code more thoroughly.

Ternary Operations are nice, but controlling your ( )s is important:

Also, it looks like you corrected the IsValidEntity by using IsValid in the example.