MySQL Connector with C# Resource

Hi Everyone,

I’m in need of some assistance.

I Recently started developing a C# Resource for FiveM and I was interested in using database connectivity with the Resource.

But I’m unable to find a working MySQL C# Connector that would work when running my C# DLL Resource with FX Server.

Grateful for any assistance, thanks.

Have a look at these examples

  1. https://github.com/blattersturm/dblyr
  2. https://github.com/brouznouf/fivem-mysql-async/tree/2.0
  3. https://github.com/GHMatti/FiveM-MySQL
  4. https://github.com/warxander/vSql

Hi d0p3t,

Thanks for the reply.

I’m looking at the fivem-mysql-async library, which seems to be the best option, but I do not think I’d be able to use that in my C# resource as this is based upon LUA resources.

I will give vSql a shot, thanks a lot man.

I’m mindblown at the moment, none of those solutions provided seems to work. I wonder why the standard C# MySQL Connector won’t work.

I linked you specifically the C# branch. It works perfectly fine. Don’t let the README fool you!

vSQL is pretty much the same as that branch.

Hi, Sorry I might’ve misunderstood. Not sure how I’m going to use that branch within my C# Resource, it seems like it’s LUA based.

I have a MySQL Connector within my C# script and whenever I call something from the DB, FiveM freezes for like two seconds before it actually returns something.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.