Skip to content

fix: Guard SetEntityDrawOutline behind a DoesEntityExist check - #69

Merged
ChatDisabled merged 1 commit into
Qbox-project:mainfrom
Gogsi:fix/decoration-outline
Sep 26, 2026
Merged

ChatDisabled merged 1 commit into
Qbox-project:mainfrom
Gogsi:fix/decoration-outline

Conversation

@Gogsi

@Gogsi Gogsi commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Description

In FiveM for GTAV Enhanced, calling SetEntityDrawOutline on an invalid entity throws an error and ends execution of the function, breaking the decoration customization.

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Breaking change

Testing

Tested on FiveM for GTAV Enhanced build 153. Before adding a new object threw this error in the console, after the change it's gone

[27-09-2026 00:12:07] [ warning] [                ] Unable to execute Native SetEntityDrawOutline: "No entity was found for ID 0."
^3> SetEntityDrawOutline^5
^3> ToggleDecorating^5 (qbx_properties/client/decorating.lua:106)
^3> func^5 (qbx_properties/client/property.lua:144)
^3> [global chunk]^5 (scheduler.lua:363)
^3> pcall^5
^3> [global chunk]^5 (scheduler.lua:362)

Checklist

In FiveM for GTAV Enhanced, calling SetEntityDrawOutline on an invalid entity throws an error and ends execution of the function, breaking the decoration customization.
@ChatDisabled
ChatDisabled merged commit 9bbdb43 into Qbox-project:main Sep 26, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants