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

GetIsTaskActive does not recognize CTaskCombatRoll #2401

Closed
ook3D opened this issue Feb 25, 2024 · 2 comments
Closed

GetIsTaskActive does not recognize CTaskCombatRoll #2401

ook3D opened this issue Feb 25, 2024 · 2 comments
Assignees
Labels
bug enhancement Feature or other request that adds functionality or improved usability

Comments

@ook3D
Copy link
Contributor

ook3D commented Feb 25, 2024

What happened?

im trying to make a simple script to check if / when a player has combat rolled, and the GetIsTaskActive native seems to work for other index values, such as aiming on foot (index 4), but doesnt seem to work with index 3.

simple test script i used:

Citizen.CreateThread(function()
    while true do
        local LocalPlayerPed = GetPlayerPed(-1)
        local CombatRoll = GetIsTaskActive(LocalPlayerPed, 3)
        
        if CombatRoll then
            print("Player is combat rolling")
        else
            print("Player is not combat rolling")
        end
        
        Citizen.Wait(100)
    end
end)

Expected result

returned true

Reproduction steps

GetIsTaskActive(LocalPlayerPed, 3)

index 3 returns false even when the player IS combat rolling.

Importancy

Slight inconvenience

Area(s)

FiveM, Natives, ScRT: Lua

Specific version(s)

FiveM/2802/Windows

Additional information

No response

@ook3D ook3D added bug triage Needs a preliminary assessment to determine the urgency and required action labels Feb 25, 2024
@github-actions github-actions bot added the ScRT: Lua Issues/PRs related to the Lua scripting runtime label Feb 25, 2024
@gottfriedleibniz
Copy link
Contributor

From my understanding much of CTaskCombatRoll was deprecated/changed from IV to V and this a remnant of that. Supporting this for V will require something similar to the CTaskMotionTennis natives (i.e., checking that specific task-tree)

@gottfriedleibniz gottfriedleibniz added enhancement Feature or other request that adds functionality or improved usability and removed triage Needs a preliminary assessment to determine the urgency and required action ScRT: Lua Issues/PRs related to the Lua scripting runtime labels Feb 26, 2024
@gottfriedleibniz gottfriedleibniz self-assigned this Feb 26, 2024
@ook3D
Copy link
Contributor Author

ook3D commented Mar 19, 2024

thanks you guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug enhancement Feature or other request that adds functionality or improved usability
Projects
None yet
Development

No branches or pull requests

2 participants