Log in to reply
 

Native/Script SET_WARNING_MESSAGE not working?



  • I been playing around with the native SET_WARNING_MESSAGE and SET_WARNING_MESSAGE_WITH_HEADER but didn't get any luck on making it work.

    I am using ScriptHookVdotNet3.

    Native:
    void SET_WARNING_MESSAGE_WITH_HEADER(char* titleMsg, char* entryLine1, int flags, char* promptMsg, BOOL p4, Any p5, BOOL background, Any* p7, BOOL showBg);
    https://runtime.fivem.net/doc/natives/?_0xDC38CC1E35B6A5D7

    Code:

    if (Game.IsControlJustPressed(Control.Talk))
    {
      Function.Call(Hash.SET_WARNING_MESSAGE_WITH_HEADER, "HUD_QUIT", 
     "HUD_CGIGNORE", 2, "HUD_CGINVITE", 0, -1, 0, 0, 1);
    }
    

    Result:
    The radar flashes once I press the key and the mouse cursor appear for a single frame.


    Been trying the exact way it is found in the decompiled scripts and still not working.

    Does anyone had success with this before?

    Ps: I know i can recreate this easily with other method and already have. Just wondering why i can't seem to make it work.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.