Skip to content

refactor(esx_identity): use static player methods#1708

Closed
ghost wants to merge 3 commits intodevfrom
unknown repository
Closed

refactor(esx_identity): use static player methods#1708
ghost wants to merge 3 commits intodevfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Aug 21, 2025

Add static ESX.ExtendedPlayers

Update main.lua

Add static ESX.ExtendedPlayers

Update main.lua
Wait(0)
end

local xPlayers = ESX.GetExtendedPlayers()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Each static xPlayer is passed as an arg to the checkIdentity function. In that function it attempts to access player properties, which is not possible with static xPlayers. The function has to be refactored, it won't work like this.

@Kenshiin13 Kenshiin13 changed the base branch from main to dev August 23, 2025 17:39
@Kenshiin13 Kenshiin13 changed the title Identity refactor(esx_identity): use static player methods Aug 23, 2025
Static player object
Copy link
Copy Markdown
Contributor

@Kenshiin13 Kenshiin13 left a comment

Choose a reason for hiding this comment

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

SetPlayerData still uses xPlayer.source

xPlayer.getSource() to xPlayer.src
@Kenshiin13
Copy link
Copy Markdown
Contributor

Already done

@Kenshiin13 Kenshiin13 closed this Aug 31, 2025
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.

1 participant