[Bug] GetVehicleFuelLevel and other custom vehicle natives hard fail when the vehicle doesn't exist #304
Closed
Gogsi
started this conversation in
[BUG] FiveM for GTAV Enhanced
Replies: 3 comments
|
Smae problem. |
0 replies
|
Thanks for the report, I was able to reproduce this issue and it will fixed in a future patch. |
0 replies
|
A fix for this bug has been implemented and is available in Hotfix 6. Please try again and let us know if the issue persists. Thanks for your help! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
In FiveM Legacy, calling
GetVehicleFuelLevelwith a non-existent vehicle ID just printed a warning in the console and returned 0.In FiveM for GTA V Enhanced, it raises an exception and stops execution
Issue type
Client
Repro rate
Always
Server build version
98
OS
Windows 11 25H2
CPU
Intel i5-12400f
GPU
AMD Radeon RX 6600
RAM
No response
Storage type
SSD NVMe
Connection type
Ethernet
ISP and bandwidth
500/500
DxDiag
No response
Network graph
No response
Platform
None
OS version / distribution
No response
CPU
No response
RAM
No response
Using txAdmin?
None
Hosting provider
None
Machine type
None
/perf endpoint output
No response
DDoS protection
No response
ulimit -n value (Linux only)
No response
Docker Compose file (Docker only)
No response
Steps to Reproduce
GetVehicleFuelLevel(1234)Expected Behavior
The native prints a warning about
No such entityand returns 0. Execution continuesActual Behavior
An exception stack trace is printed in the console and the function calling the native stops being executed
Evidence
No response
Additional Context
No response
All reactions