Skip to content

feat(es_extended): Add xPlayer.executeCommand Function#1659

Merged
Kenshiin13 merged 5 commits into
esx-framework:mainfrom
Meyndflay:ExecuteCommand
Jul 6, 2025
Merged

feat(es_extended): Add xPlayer.executeCommand Function#1659
Kenshiin13 merged 5 commits into
esx-framework:mainfrom
Meyndflay:ExecuteCommand

Conversation

@Meyndflay

Copy link
Copy Markdown

Description

This PR adds another method to xPlayer that lets you use ExecuteCommand() on the xPlayer's client.

Motivation

This lets you run the ExecuteCommand() on a player's client from your server scripts so that you don't have to manually run ExecuteCommand() on the client script.

Implementation Details


Usage Example

local xPlayer = ESX.GetPlayerFromId(1)

xPlayer.executeCommand("dv 500")

PR Checklist

  • My commit messages and PR title follow the Conventional Commits standard.
  • My changes have been tested locally and function as expected.
  • My PR does not introduce any breaking changes.
  • I have provided a clear explanation of what my PR does, including the reasoning behind the changes and any relevant context.

@github-project-automation github-project-automation Bot moved this to 🆕 To be Discussed in ESX Roadmap Jun 17, 2025
Comment thread [core]/es_extended/client/modules/events.lua Outdated
@github-project-automation github-project-automation Bot moved this from 🆕 To be Discussed to In-Development in ESX Roadmap Jun 17, 2025

@Mycroft-Studios Mycroft-Studios left a comment

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.

LGTM

@github-project-automation github-project-automation Bot moved this from In-Development to Ready for Next Update in ESX Roadmap Jun 17, 2025
Comment thread [core]/es_extended/client/modules/events.lua Outdated
Comment thread [core]/es_extended/server/classes/player.lua Outdated
Comment thread [core]/es_extended/client/modules/events.lua
Comment thread [core]/es_extended/server/classes/player.lua
@github-project-automation github-project-automation Bot moved this from Ready for Next Update to In-Development in ESX Roadmap Jun 17, 2025
@Meyndflay Meyndflay requested a review from Kenshiin13 June 18, 2025 10:48
@github-project-automation github-project-automation Bot moved this from In-Development to Ready for Next Update in ESX Roadmap Jun 20, 2025
@iSentrie

Copy link
Copy Markdown
Contributor

Maybe add a command for admins, so they could easily execute commands on players?

@Kenshiin13 Kenshiin13 left a comment

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.

LGTM, thanks!

@Kenshiin13

Copy link
Copy Markdown
Contributor

esx-framework/esx-legacy-documentation@978541a

@Kenshiin13 Kenshiin13 merged commit 5e4827f into esx-framework:main Jul 6, 2025
1 check passed
@Meyndflay Meyndflay deleted the ExecuteCommand branch July 7, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready for Next Update

Development

Successfully merging this pull request may close these issues.

5 participants