Skip to content

Exception with blip natives #3307

Open
Open
@freedy69

Description

@freedy69

What happened?

If you pass -1 on any of the blip natives, there will be a native execution error.

Expected result

There shouldn't have been an error, same as when you pass a different invalid number to the functions

Reproduction steps

  1. Run this code print( DoesBlipExist(-1) ). Do note that this also happens with other blip natives such as SetBlipDisplay.

Importancy

There's a workaround

Area(s)

ScRT: Lua

Specific version(s)

3258 though i've seen in earlier builds too.

Additional information

The error happens both in JS and LUA. No idea about C#.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ScRT: LuaIssues/PRs related to the Lua scripting runtimebugtriageNeeds a preliminary assessment to determine the urgency and required action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions