Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add playerID feature to replace source ID #1171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TGIANN
Copy link

@TGIANN TGIANN commented Jan 29, 2025

This feature hides the player's source ID and replaces it with a persistent playerID, ensuring that each player's ID remains the same across sessions. The goal is to use playerID instead of source in QB scripts when performing actions on a player.

For example, replacing ban source with ban playerID or giveitem source with giveitem playerID. This ensures that each player has a unique, sequentially increasing ID.

Last Note: Many qb scripts need to be edited to fully utilize this feature

This feature hides the player's source ID and replaces it with a persistent playerID, ensuring that each player's ID remains the same across sessions. The goal is to use playerID instead of source in QB scripts when performing actions on a player.

For example, replacing `ban source` with `ban playerID` or `giveitem source` with `giveitem playerID`. This ensures that each player has a unique, sequentially increasing ID.
@TGIANN
Copy link
Author

TGIANN commented Jan 29, 2025

Since I don't use default QB, I have adapted some scripts to be compatible with this new system.

Copy link

@SinisterDevelopment SinisterDevelopment left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the concept works good and the files edited function properly. Just would need to remove the GetPlayer function and only use GetPlayerByPlayerId

@Friskky1
Copy link

Friskky1 commented Feb 3, 2025

upvote +1 this change is needed for QB tbh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants