FPSUnlocker (*js)

This is FPSUnlocker (From 0.3.7 R1 - 0.3.7 R3 + 0.3.DL - R1). You can use it on new cleo extension Cleo Redux: https://re.cleo.li/.

Resource:
JavaScript:
/*
    FPSUnlocker for 0.3.7 - R1, 0.3.7 - R2, 0.3.DL - R1, 0.3.7 - R3 SAMP versions.

    FPSUnlocker function is reading the SAMP version from memory address + Library(samp.dll)
    which creates an address with which we can turn off the "NO_GAME_PAUSING" function which,
    as you assume, excludes the fps limit...

    Author: Fr0z3n - https://ugbase.eu/members/frozen.57428/
    ---------------------------------------------------------------
    get_samp_version_id - https://ugbase.eu/threads/snippet-get-samp-version-js.22844/
*/


// Pre-conf.
/// <reference path=".config/sa.d.ts" />
/// <reference no-default-lib="true" />


// Pre-defines
var v3 = DynamicLibrary.Load("samp.dll");
Int16Array = id;

FPSUnlock();

while(true) {

    wait(250);
}

function FPSUnlock()
{
    get_samp_version_id();

    switch(id){
        case 1: var v4 = v3 += 0x9d9d0; // 0.3.7 - R1
        case 2: var v4 = v3 += 0x9DB00; // 0.3.7 - R2
        case 3: var v4 = v3 += 0xA2400; // 0.3.DL - R1
        case 4: var v4 = v3 += 0xA1F60; // 0.3.7 - R3
    }
    Memory.Write(v4, 4, 0x5051FF15, 1);
}



function get_samp_version_id()
{
    x = Int8Array;
    y = Int8Array;
    if ( x = DynamicLibrary.Load("samp.dll") ) {
        x += 0x128
        y = Memory.Read(x, 4, true);

        switch(y){
            case 0x5542F47A: id = /*0.3.7 - R1*/1;
            case 0x59C30C94: id = /*0.3.7 - R2*/2;
            case 0x5A6A3130: id = /*0.3.DL - R1*/3;
            x -= 8 // samp.dll + 0x120
            y = Memory.Read(x, 4, true);
            case 0x5C0B4243: id = /*0.3.7 - R3 - 1*/4;
            case 0x5DD606CD: id = /*0.3.7 - R4 - 1*/5;
            case 0x6094ACAB: id = /*0.3.7 - R4 - 2*/6;
        }
    }
}

Note: I didnt put for versions 0.3.7 - R4 - 1 and 0.3.7 - R4 - 2 because I could not find the addresses for these versions, if anyone has, write to me in dm, I will be happy to change ....
 

Attachments

  • FPSUnlocker.rar
    826 bytes · Views: 27

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,386
Solutions
4
Reaction score
893
Location
Israel
It will be interesting to see the cleo redux on the new gta
 
Top