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

refactor: replace client-side event with server-side RemoveWeaponComponentFromPed native #1596

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: typo
btwlouis committed Jan 16, 2025
commit 3f3f9257cb3a2cea4d82dd2cd2b641dac9e69dd2
2 changes: 1 addition & 1 deletion [core]/es_extended/server/classes/player.lua
Original file line number Diff line number Diff line change
@@ -690,7 +690,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
local playerPed <const> = GetPlayerPed(self.source)

if not playerPed then
return error("xPlayer.removeWeapon ^5invalid^1 player ped!")
return error("xPlayer.removeWeaponComponent ^5invalid^1 player ped!")
end

if weapon then