How to use GM:Think?

How do i use the “Think” hook? Like, how can I use it for any pointshop item (also an example would be great). I didn’t got a response on the “Problems that don’t need their own thread” so i’m reposting here

I don’t understand how you might want to use this for a pointshop item, but, the “Think” hook is called every frame. This meaning, if you want something to happen every frame, you should hook it to the Think hook.

hook.Add("Think", "SomeRandomName", function() print("Think") end)

The code above will print “Think” every frame. If you are running your server, it will print it every tick, meaning, if the tickrate is set to 33 (default is 66), it will print 33 times a second.

Thanks, that was usefull