Roastchicken, where would I put that code?
It will be a bit complicated, seeing as that's client side code. You'll first want to make a folder in
garrysmod/addons/, then create folders until your folder structure is like this:
garrysmod/addons/<myaddon>/lua/ulx/modules/cl/Then in the cl folder you made, create a lua file that contains the code I gave you in a ULX function (a function with the name 'ulx.<functionname>'). Now you're going to want to make a sh folder in the modules folder (so you have the following structure:
garrysmod/addons/<myaddon>/lua/ulx/modules/sh/). In that folder you're going to want to create a ULX command that runs the following code:
ULib.clientRPC( calling_ply, "<myfunction>" )
You can look at other ULX commands in the shared modules folder (
garrysmod/addons/ulx/lua/ulx/modules/sh/) if you're not sure how to create a ULX command. Feel free to ask for help if you don't understand any of these steps.