Save player data/ Money System

How do I save player data for anyone who joins the server?

I am looking to store how their player ped looks as well as how much money they have, how many times they have died, and later on much more.

How do I go about telling my server to store this data?

1 Like

The easiest way is to just use natives on the client to get their stuff and to then forward it to the server via a TriggerServerEvent in order to save it in a database or whatever. The freeroam resource has a few examples on how to use MySQL in order to experiment with it.

1 Like