You have to understand that there are functions for the server, and there are for the client, and there are common ones that work on the client and on the server.
You need to start with the simplest.
https://wiki.multitheftauto.com/wiki/Main_Page
And since you need an entry in meta.xml, study this.
https://wiki.multitheftauto.com/index.php?title=Meta.xml
-- client functions
https://wiki.multitheftauto.com/wiki/Client_Scripting_Functions
-- client events
https://wiki.multitheftauto.com/wiki/Client_Scripting_Events
-- server functions
https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions
-- server events
https://wiki.multitheftauto.com/wiki/Server_Scripting_Events
P.S But start writing the simplest scripts, first on the client / server, and then learn how to work simultaneously with the client and server.