If you do it memory, you must code an undetected base.
Changing the addrese and offset is only for get the hack working.
Xtrap detects abnormal memory, cuz of th detected base.
And if you use a d3d menu you have to make a hook or use a bypass with HTD