Facepunch / garrysmod-requests

Feature requests for Garry's Mod
83 stars 24 forks source link

Add a Lua binding to get the model precache number #2375

Closed wrefgtzweve closed 1 month ago

wrefgtzweve commented 1 month ago

Details

Currently there is simply no way to reliably get the model precache, which is rather annoying as it instant crashes the server when it gets hit. There is a way to see it right now, just not through lua. Running dumpstringtables_new shows the count.

1: modelprecache
strings: 1442
strdata: 50887
databts: 1442

Having some kind of function like engine.GetModelPrecacheCount() number would be incredibly useful and should be relatively simple to implement.

robotboy655 commented 1 month ago

Duplicate of https://github.com/Facepunch/garrysmod-requests/issues/82

Thanks for using the search feature.