How to you permanently edit ttl on macOS?

iv'e looked all over the internet for a few hours and i can't find a recent way to do so, the old way use to be to edit a file that no longer exists in macOS but there is a script to edit it till a reboot, im fine also just using a script on my desktop i click to run but would prefer a edit to the system its self. thanks for any help.

Author: @hoodyracoon