I know Mysqloo isn’t supported here, but I have that part worked out and am just having a minor issue.
Server-side I have called what I need to:
DB = mysqloo.connect(mysql_hostname, mysql_username, mysql_password, mysql_database, mysql_port)
I can use db fine to connect, query a table insert, and pull without issue. Where my issue lies is that I am saving stats_deaths and stats_kills to my database and it’s saving just fine. However, I want to pull these objects FROM the database within my cl_hud.lua and display them as their number somewhere on the hud. However I can’t do a select * from table using my assigned db var because well it’s server-side and I’d just get a nil return error.
So my question is, what is the best way, to pull the values from the database, so that I can assign them and use them within my hud. In this case being stats_kills and stats_deaths (the database fields I need pulled)