Prop counter

Hi I have problem.

I’m doing custom HUD and want to make prop counter. I don’t really know how to do it.

If anyone can help me I would be thankful.

You can count up here with this hook: https://wiki.garrysmod.com/page/SANDBOX/PlayerSpawnedProp

It would require you to make a sort-of prop ownership system.

Is there a way using ulib/ulx or fadmin?

I believe fadmin has a function to get the number of props, but I’m not sure.

I would be thankful if anybody finds something like this.

mini prop counter https://hastebin.com/cigopiqafa.lua

Why not just use an NWInt?

You can use whatever you want :dance:

Sure, but there’s no reason to use external libraries uselessly.