Forum: Grand Theft Auto Series Modding - Our GTA Modding Team is the best around. Tutorials & Topics related to modding your GTA games, trophies, and save files! Discuss GTA game modding with the knowledgeable members of PSX-Scene and the Official GTA IV Mod Team.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Trying to make a script hook for script.img
  

Results 1 to 3 of 3
  1. #1 Trying to make a script hook for script.img 
    Verizo's Avatar
    Verizo is offline Member
    Join Date
    Feb 2012
    Posts
    92
    Downloads
    4
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    10
    Likes Received
    3
    Hey guys,

    I have been trying for days to make a script hook for script.img (for offline use). My startup.c looks like this:

    #include <natives.h>
    #include <common.h>
    #include <strings.h>
    #include <types.h>
    #include <consts.h>

    void main(void)
    {
    REQUEST_SCRIPT("modscript");
    while (!HAS_SCRIPT_LOADED("modscript")) WAIT(0);
    uint script = START_NEW_SCRIPT("modscript", 1024);
    MARK_SCRIPT_AS_NO_LONGER_NEEDED("modscript");

    return;
    }
    But I've no luck or rather it didn't work. I always get freeze when I start GTA IV.
    Does somebody have an idea how to solve this problem? :/
    Hail EvilB, JDMAlex and nativesith
    Reply With Quote  

  2. #2  
    spadger's Avatar
    spadger is online now Member
    Join Date
    Mar 2012
    Location
    UK
    Posts
    143
    Downloads
    2
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    29
    Likes Received
    29
    Use scotoolbox to edit the main.sco. Look for the part where it's loading the initial script, then simply copy that underneath it and edit the script name to your modded one. That's what i do for single player mode.
    Reply With Quote  

  3. #3  
    Tempa T is offline Registered User
    Join Date
    May 2012
    Posts
    2
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Use Scotoolbox, Deagle , Just scroll down to the bottom and hook it all together ;D

    EG:

    "Main" > "Modscript"
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •