-
Notifications
You must be signed in to change notification settings - Fork 244
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
added send to swim command #222
base: main
Are you sure you want to change the base?
Conversation
added send to swim feature for admins
@@ -145,3 +145,10 @@ RegisterNetEvent('qb-admin:client:maxmodVehicle', function() | |||
local vehicle = GetVehiclePedIsIn(PlayerPedId()) | |||
PerformanceUpgradeVehicle(vehicle) | |||
end) | |||
|
|||
RegisterNetEvent('qb-admin:client:sendtoswim',function(id,reason) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the id param
@@ -145,3 +145,10 @@ RegisterNetEvent('qb-admin:client:maxmodVehicle', function() | |||
local vehicle = GetVehiclePedIsIn(PlayerPedId()) | |||
PerformanceUpgradeVehicle(vehicle) | |||
end) | |||
|
|||
RegisterNetEvent('qb-admin:client:sendtoswim',function(id,reason) | |||
local ped = PlayerPedId(id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove ID from here
@@ -269,6 +269,7 @@ local Translations = { | |||
report_toggle = 'Toggle Incoming Reports (Admin Only)', | |||
kick_all = 'Kick all players', | |||
ammo_amount_set = 'Set Your Ammo Amount (Admin Only)', | |||
sendtoswim = "Send player to swimming (Admin Only)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Send player to ocean would be better wording
@@ -521,6 +521,12 @@ QBCore.Commands.Add('heading', 'Copy heading to clipboard (Admin only)', {}, fal | |||
TriggerClientEvent('qb-admin:client:copyToClipboard', src, 'heading') | |||
end, 'admin') | |||
|
|||
QBCore.Commands.Add('sendtoswim', Lang:t('commands.sendtoswim'), { { name = 'id', help = 'Player id' }, { name = 'Reason', help = 'Reason to send to swim' }, }, true, function(_, args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sendtoocean
would be better
added send to swim feature for admins
Describe Pull request
Added send to swim command in adminmenu this will be helpfull for the admins to send problematic players to the ocean to swim back to the land
If your PR is to fix an issue mention that issue here
Questions (please complete the following information):