$ luarocks install samp-favorites
Lua library for working with SA-MP favorites list (USERDATA.DAT).
root