mp.keys.bind(0x45, false, function() {
mp.events.callRemote("youreventname", player);
});
^ this on clientside
And if you use C on Serverside this:
[RemoteEvent("youreventname")]
public void youreventhandler(Client client)
{
if (client.Position.DistanceTo2D(new Vector3(x, y, z)) <= 3)
{
client.SendNotification("this is a test!");
}
}