This is the guide to install macOS on the HP Probook 440 G4.
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/USB
Now everything should be working
Enjoy your new hackintosh