Skip to content

Armor value above 100 client side bypasses max armor limit on server #3982

@Nico8340

Description

@Nico8340

Describe the bug

When setting an armor value greater than 100 on the client side, the value is synchronized with the server, bypassing the intended armor cap limit. However, the armor value is only synced up to a maximum of 127.5 on the server. On the client side, there is no armor limit applied, allowing players to exceed the maximum armor limit of 100.

Steps to reproduce

  1. crun setPedArmor(me, 9999)
  2. crun getPedArmor(me)
  3. srun getPedArmor(me)

Version

Client: v1.6.0-release-22920 (Windows 11, 64-bit)
Server: v1.6.0-release-22920 (Windows 11, 64-bit)

Additional context

No response

Relevant log output

Executing client-side command: setPedArmor(me, 9999)
Command results: true [boolean]
Executing client-side command: getPedArmor(me)
Command results: 9999 [number]
MaliciousBonnet47 executed command: getPedArmor(me)
Command results: 127.5 [number]

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions