Trying to make a script hook for script.img –
05-15-2012,02:35 PM
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