[Bug] onResourceStart event handler working wrong #113
pushkart2
started this conversation in
[BUG] FiveM for GTAV Enhanced
Replies: 3 comments
|
Thanks, we are looking into this. |
0 replies
|
A fix for this bug has been implemented and is available in Hotfix 5. Please try again and let us know if the issue persists. Thanks for your help! |
0 replies
|
@Gogsi I think my bug was misinterpreted. |
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
onResourceStart event handler is only supposed to be triggered on active clients when the resource is started but in Enhanced, any resource that uses onResourceStart event handler actually triggers the event after the player is loaded causing bunch of resources to break because most of the time that event handler is used to repopulate cache/data when the script is restarted on live server
Issue type
Both / Unsure
Repro rate
Always
Server build version
FXServer-early-access b90 win32
OS
Windows 11
CPU
Ryzen 9
GPU
RTX 5080
RAM
64gb
Storage type
SSD NVMe
Connection type
Ethernet
ISP and bandwidth
1Gig up/down
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
AddEventHandler('onResourceStart', function(resourceName)
if GetCurrentResourceName() ~= resourceName then return end
Wait(2000)
print("onResourceStart triggered for resource: " .. resourceName)
end)
Add this in any client side file and loading into the server, you will see the print.
Expected Behavior
Only see the print on clients that are loaded when the script is restarted/ensured
Actual Behavior
sees it everytime when you load into the server
Evidence
No response
Additional Context
No response
All reactions