Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IV] Some natives don't seem to work? #109

Open
ZH-Hristov opened this issue Sep 5, 2024 · 0 comments
Open

[IV] Some natives don't seem to work? #109

ZH-Hristov opened this issue Sep 5, 2024 · 0 comments

Comments

@ZH-Hristov
Copy link

ZH-Hristov commented Sep 5, 2024

I've been messing around with random script ideas and for some of them I just need to use natives since they're not mapped as CLEO Redux functions. Thing is though, almost none of them seem to work?

Here's a test script:

/// <reference path="./.config/gta_iv.d.ts" />
import { KeyCode } from "./.config/enums"

FxtStore.insert("TestString", "Hello.", false)

const gCam = native("GET_GAME_CAM")

while (true) {
    if (Pad.IsKeyPressed(KeyCode.RightShift)) {
        Text.PrintHelp("TestString")

        let oldFOV = native("GET_CAM_FOV", gCam)
        log(oldFOV)

        native("SET_CAM_FOV", gCam, 150)
        while (Pad.IsKeyPressed(KeyCode.RightShift)) {
            wait(0)
        }

        native("SET_CAM_FOV", gCam, oldFOV)
    }

    wait(0)
}

The GET native does indeed return a value and log it correctly, but trying to set the FOV does nothing.

This could possibly be a FusionFix conflict, but there's also other natives that don't work, for example the PTFX ones like TRIGGER_PTFX. None of them seem to spawn any particles no matter what parameters I give them.

I am going off of this JulioNIB Particles Tutorial so I'm fairly sure I'm giving it all the correct parameters.

@ZH-Hristov ZH-Hristov reopened this Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant