Back to Main Page


From time to time I might add a small script here that does something pointlesss or insignificant.

Take it, change it, use it as you wish, just credit the source if you're a decent enough person to actually credit your sources if you use it in a mod.

There won't be more of these pages, the content of this page will change.

 

Free Script - Something for nothing that probably does nothing


Annoyed by the camera locking onto those off-road races as you drive around the map? This script is for you...

It simply checks if a gameplay hint is active and cancels it if there is... that's it.

using System;

using GTA;
using GTA.Native;

namespace FreeScript
{
    public class cBlockGameplayHints : Script
    {
        public cBlockGameplayHints()
        {
            Tick += onTick;
            Interval = 0;
        }

        private void onTick(object sender, EventArgs e)
        {
            if (Function.Call<bool>(Hash.IS_GAMEPLAY_HINT_ACTIVE)) Function.Call(Hash.STOP_GAMEPLAY_HINT, true);
        }
    }
}

STOP_GAMEPLAY_HINT can also have the additional parameter set to false. No idea what setting it to false does, setting it to true worked fine for me.