Will fivem work with cdkeys version of gta V?

title says it all, just that i have not got the money to buy gta on steam or epic games, also does it work on the premium online edition?

So, you have the PC retail verison of the game? Is it registered on Rockstar Club? If yes, then you can play FiveM too.