fix/client: fix for the new canSteal state to Allow if player is police or canSteal#35
Conversation
fix for the new canSteal state to Allow if player is police or canSteal
unitysync
left a comment
There was a problem hiding this comment.
Your logic on client is fine, however this will not work as-is, since the server purely checks the canSteal state without regard for police group status.
Lines 289 to 297 in 29b32e0
Please update the server to also check whether the user has the police group.
|
ahh okay could i just do this with the server.hasGroup? like how its done for evidence? |
update callback for cansteal and job group police
|
Whats the need? Police can handcuff the person and search him aftewards. I see no point in bypassing the canSteal state |
|
Line 181 in 29b32e0 the issue me and other ppl seem to be having was with this line even if your police u cannot open inventory and the cansteal was never working as indented you would always get cannot open this inventory even tho the canopentarget reqs were true |
this fix handles the /steal command only working for police, with this pull request it will work as intended for both police and players that have canSteal = true