Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //I tried using the R* method to load gta v scripts and it worked (:
- unsigned int (*registerFile)(char *filepath, bool unk0, char *filename, bool unk1, bool unk2) = (void*)(0x200B720 /*EUR*/ + 0x400000);
- Usage in (gta payload):
- //you will need to gta v script compiler [PS4]
- //the method works on unencrypted/uncompressed scripts (I tested it with original & uncompressed scripts)
- //you can inject the scripts from your GTA V Payload (Menu)
- //add this in option to register the script file in gta memory
- //load the script from "/data" folder (via ftp)
- u32 fileHandler = registerFile("/data/oysters_script.osc", 1, "oysters_script.osc", 0, 0);
- if(fileHandler != -1)
- print("script is registered.");
- In looping:
- bool runScript = false;
- if(runScript) {
- REQUEST_SCRIPT("oysters_script");
- if(HAS_SCRIPT_LOADED("oysters_script")) {
- START_NEW_SCRIPT("oysters_script", 2024);
- SET_SCRIPT_AS_NO_LONGER_NEEDED("oysters_script");
- print("script loaded", 3000);
- runScript = false;
- }
- }
Add Comment
Please, Sign In to add comment