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

DeleteStuntJump Native not working #2455

Closed
ArdentLeKhey opened this issue Apr 12, 2024 · 2 comments
Closed

DeleteStuntJump Native not working #2455

ArdentLeKhey opened this issue Apr 12, 2024 · 2 comments
Labels
bug ScRT: Lua Issues/PRs related to the Lua scripting runtime

Comments

@ArdentLeKhey
Copy link

What happened?

This Native don't delete Stunt Jump

Expected result

Delete the stunt jump

Reproduction steps

  • Create a stunt jump and get the return value
  • Use Native DeleteStuntJump on this return value

Repeat it 65 time and you will have a pool error because max Stunt Jump pool is 64

Importancy

Slight inconvenience

Area(s)

FiveM, Natives, ScRT: Lua

Specific version(s)

FiveM 7990 (and other versions)

Additional information

No response

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

Testing this with ADD_STUNT_JUMP and ADD_STUNT_JUMP_ANGLED both don't cause the CStuntJump pool to fill up for me (when properly deleting the stunt jump entry after adding it).

for i = 1, 128 do
    local stuntjump = AddStuntJump(
        vector3(-963.1714, -2778.506, 14.47828), 
        vector3(-965.7361, -2777.121, 19.46395),
        vector3(-988.8297, -2830.789, 11.96478),
        vector3(-1027.989, -2895.436, 16.95805),
        vector3(-967.196, -2811.716, 14.5521),
        150,
        0,
        0
    )
    print(i .. ": Stunt jump added, id: " .. stuntjump)
    DeleteStuntJump(stuntjump)
    Wait(0)
end

So, maybe you did something different here?

@ArdentLeKhey
Copy link
Author

Ok i know what i did ^^
i used id 1 to 64
But stuntjumps id are : 2 + (i - 1) * 256

Thank you for your time

@github-actions github-actions bot removed the triage Needs a preliminary assessment to determine the urgency and required action label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ScRT: Lua Issues/PRs related to the Lua scripting runtime
Projects
None yet
Development

No branches or pull requests

2 participants