Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

disable melee on rank 1 #8

Open
nathanaelgerald05 opened this issue Jul 10, 2022 · 3 comments
Open

disable melee on rank 1 #8

nathanaelgerald05 opened this issue Jul 10, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@nathanaelgerald05
Copy link

i use qb

can you help me make disable melee (like punching) on rank 1, bcs i dont want new player punching everybody on the server D:

i made a thread that check player's rank and if its under 2, it will use disablecontrolaction native, it works if the player has relogged after he registered new character.

the problem is if a new player register on the server freshly, the thread isnt working (its like it give nil value when checking player's rank or smthing else is making it not working) and this new player can still punch until he relogged from the server

@Mobius1 Mobius1 added the bug Something isn't working label Jul 10, 2022
@Mobius1
Copy link
Owner

Mobius1 commented Jul 10, 2022

I'll have to investigate further. This script listens for the 'QBCore:Client:OnPlayerLoaded' event which is fired whenever a player is loaded in whether it's a current or new character.

@nathanaelgerald05
Copy link
Author

alright, thanks for the respond! im waiting for the update 😃

@Mobius1
Copy link
Owner

Mobius1 commented Jul 11, 2022

Right, I tried this on a fresh install with the QBCore recipe and loaded in as a new and current character and I can't reproduce the bug you're experiencing.

  • Are you using the standard qb-multicharacter?
  • Are you using the latest version of xperience?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants