[Bug] Crash with GetGamePool for CObject near a map #133
pushkart2
started this conversation in
[BUG] FiveM for GTAV Enhanced
Replies: 4 comments 6 replies
|
Thanks for the report, here's a temporary workaround local objects = {}
local handle, object = FindFirstObject()
if handle == -1 then return objects end
local success = true
while success do
if object and object ~= 0 and DoesEntityExist(object) then
objects[#objects + 1] = object
end
success, object = FindNextObject(handle)
end
EndFindObject(handle)
return objects |
0 replies
|
Another person reported that it also sometimes crashes with 'CPed'. Likely same reason because the code is similar. |
1 reply
|
Hi, I have just tested with b98 client+server. This doesn't appear to be fixed, interiors tested:
Brief edit, seems like a certain way to cause this even if an interior initially works fine is to leave and enter again. |
5 replies
|
A fix for this bug has been implemented and is available in the August 4 patch. 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.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Whenever you try to call the GetGamePool('CObject') when near the default GTA 5 Mlo's like MRPD or even the Franklin house or whatever near Grove street, it will cause a crash. Calling that away from any MLO will not crash but triggering it near MLO would crash
Issue type
Client
Repro rate
Always
Server build version
FXServer-early-access b94 win32
OS
No response
CPU
No response
GPU
No response
RAM
No response
Storage type
None
Connection type
None
ISP and bandwidth
No response
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
add this client side.. Run the command near the mlo and away from the mlo.
Coords to test - vector3(426.75, -976.52, 30.71)
Expected Behavior
Should not crash
Actual Behavior
Crashes
Evidence
[22-07-2026 12:27:11] [ info] [ interact_repro] [interact_repro] calling GetGamePool CVehicle
[22-07-2026 12:27:11] [ info] [ interact_repro] [interact_repro] CVehicle returned 70 handles, no natives called
[22-07-2026 12:27:11] [ info] [ interact_repro] [interact_repro] calling GetGamePool CPed
[22-07-2026 12:27:11] [ info] [ interact_repro] [interact_repro] CPed returned 19 handles, no natives called
[22-07-2026 12:27:11] [ info] [ interact_repro] [interact_repro] calling GetGamePool CObject
-- Crashed after this
Additional Context
No response
All reactions