Limelight Forums
CityRP Laws not showing - Printable Version

+- Limelight Forums (https://limelightgaming.net/forums)
+-- Forum: Feedback (https://limelightgaming.net/forums/forum-612.html)
+--- Forum: Bugs (https://limelightgaming.net/forums/forum-243.html)
+---- Forum: Archive (https://limelightgaming.net/forums/forum-244.html)
+---- Thread: CityRP Laws not showing (/thread-26256.html)



Laws not showing - bimkx - Nov 4, 2019

ID: 5dc07c6e6edc8f4426451c58

Server [EU Live/EU Build/US Live/US Build/Event]:
Live
Description:
laws dont show in F1 upon connection, you have to do /laws to see them, happens maybe 50% of the time
Bug observed since:
week or two
Images/Screenshots:
N/A

Steps to Reproduce:
Connect and you'll see the bug sometimes, seems like it's common among many players



- Limelight Gaming - Nov 4, 2019

Thank you for your bug-report, livkx!

It will be reviewed as soon as possible by our Developers.


RE: Laws not showing - Limelight Gaming - Nov 7, 2019

Ticket Status Updated

Changed from New to Awaiting Confirmation


RE: Laws not showing - Burnett - Jan 1, 2020

I was not able to reproduce this issue but I have found a couple of flaws in the code.

@Developers
cl_laws.lua#L33 calls `` PANEL:Init() `` where it initializes the panel while calling `` net.Receive() `` (cl_laws.lua#L232) and `updateguilaws() `(cl_laws.lua#L239). The intial call to `updateguilaws() ` could potentially lead to race condition since ``net.Receive()`` is run in asynchronous context, causing the laws table to be void.

I'll leave this open until we get more reports on this.


RE: Laws not showing - Judge Rage - Jan 3, 2020

Seen it happen a few times, disappears from F1 and you have to type /laws to get the laws - not sure I can provide anything valuable but I've seen it happen


RE: Laws not showing - Jen - Jan 3, 2020

From what I've seen, laws in the F1 menu don't work when you connect unless if one is added/removed


RE: Laws not showing - goigle - May 20, 2020

Fixed. The issue was the laws weren't sent on initial spawn (which is weird, because they are sent on _every_ spawn so I'm frankly not sure why it didn't work).


RE: Laws not showing - Burnett - May 21, 2020

#692