I have a guide for GM8.1 extensions.
If you added the files and mouse lock works, you probably did it right.
I had a NaN crash once when I gave GM8.1 a C++ function that returns nothing, but this extension’s functions all return a double
that is either an integer or a BOOL (also an integer).