txAdmin icon indicating copy to clipboard operation
txAdmin copied to clipboard

[BUG] Frozen players can unfreeze by spawning a vehicle.

Open FireFlame403 opened this issue 1 year ago • 8 comments

txAdmin/FXServer versions: tx: v7.3.2

Describe the bug When frozen you can get yourself out of it when you spawn a vehicle.

FireFlame403 avatar Oct 20 '24 09:10 FireFlame403

Hmm I see that this is kinda like a bug in the code, but... does it matter? As I understand, this means that this only impacts admins, and if they are admins, then does it matter if they can bypass a freeze?

tabarra avatar Oct 20 '24 23:10 tabarra

Thats fine if it only does that for admins

FireFlame403 avatar Oct 20 '24 23:10 FireFlame403

But, is it the case? Or did I miss something?

tabarra avatar Oct 20 '24 23:10 tabarra

It lets people drive away when they spawn a car even if they aren't staff

FireFlame403 avatar Oct 20 '24 23:10 FireFlame403

It lets people drive away when they spawn a car even if they aren't staff

@FireFlame403 But people that aren't staff should not be able to spawn cars, right?

yorick2002 avatar Oct 21 '24 15:10 yorick2002

It lets people drive away when they spawn a car even if they aren't staff

@FireFlame403 But people that aren't staff should not be able to spawn cars, right?

Lots of servers let normal players spawn vehicles, pretty normal tbh especially with roleplay servers that are menu based

Gravxd avatar Oct 22 '24 18:10 Gravxd

Yeah I can see how that can be an issue... I'll classify this as a bug.
But I will probably not work on fixing this for the next few months.

If anyone is interested in trying to fix it, feel free: https://github.com/tabarra/txAdmin/blob/master/resource/menu/client/cl_freeze.lua

tabarra avatar Oct 22 '24 19:10 tabarra

Wouldn't the menu the player is using when spawning a vehicle unfreeze the player? I don't think this would be txadmin issue. The menu that spawns the vehicle should check if player is frozen first and not unfreeze them when doing any action in the menu.

mtgtnt avatar May 08 '25 09:05 mtgtnt