☠️SA-CHARACTERKILL
Script for RolePlay servers to kill player's character
This script removes the player’s character from DB. Don’t worry this script works with CitizenID so it doesn’t remove his other characters if there are any.
In default is the command
/ck [ID/CID] [Player ID/CitizenID] | It removes the player’s character from DB. Whenever it doesn't matter if it is online or offline. /wipe | It wipes whole server
Configuration
You will find everything you need in config.lua
config.lua
Config = {
Debug = false, -- Command for me to debug script. It print to console passes trough conditions. true/false
Rights = 'admin', -- Here you can set a rights for this command
CharKill = "ck", -- Name of command which will remove your character from database (Through ID Player/Citizen ID) ------ (ck)
-----------------------------------------------------------------
Wipe = 'wipe', -- Removes all players
WipeRights = 'god', -- Rights for wipe command
WipeSecureWord = 'NeverGonnaGiveYouUp', -- This word you have to use to confirm wipe /wipe NeverGonnaGiveYouUp
-----------------------------------------------------------------
-- This message shows up to players that was on server and they were kicked out due wipe
WipeMessage = 'Server is currently wiping all of your hard gained stuff :Wink:. See ya after blackout.' ,
-----------------------------------------------------------------
VersionCheck = true,
}
Delete = {
'players', -- Remove Player from DB
'player_vehicles', -- Remove Player vehicles from DB
'player_outfits', -- Remove Player outfits from DB
'player_contacts', -- Remove Player contacts from DB
'player_houses', -- Remove Player houses from DB
'player_mails', -- Remove Player mails from DB
'apartments', -- Remove Player apartments from DB
'bank_accounts', -- Remove Player bank accounts from DB
'bank_statements', -- Remove Player bank statements from DB
--To add own remove just follow format (Removes thanks to CitizenID if isn't CID in the table it wouldn't remove anything)
--'name_of_the_DB'
}
--THIS FEATURE IS UNDER DEVELOPMENT
--[[ Item = {
enabled = true, --This option disables/enables players to do CK with the item with the authorization of the admin.
Radius = 5.0, --Radius how far can people do a CK
----------------------------------------------------------------------------------------------------------------------
ItemCreation = true, --This option disable the fuse. Disable it only if you are getting errors in console. (Older QB-Core)
name = 'black_bag',
label = 'Black Bag',
weight = 0,
type = 'item',
image = 'blackbag.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Just a black bag, maybe for body? or rubbish :)',
----------------------------------------------------------------------------------------------------------------------
}
]]
Language /locale/en.lua
en.lua
local Translations = {
notify = {
notfound = "Player not found.",
deleted = 'Character was successfully removed from server',
InvalidFormat = 'This is invalid format.',
WrongSecureWord = 'Wrong secure word',
},
utils = {
descriptions = "Kill/Remove player character (Permanent)",
IDPlayer = "ID (Player ID) / CID (Citizen ID)",
WriteIn = "Here write an ID or CitizenID. Depends on what did you choose.",
kickreason = 'You have been kicked because we are removing your character from server',
SecretWord = 'Here write secret word Wink',
},
}
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true
})
To change notify system /server/functions.lua
functions.lua
function Notify(event, data)
if event == 'NotFound' then
TriggerClientEvent('QBCore:Notify', data, Lang:t('notify.notfound'), 'error')
elseif event == 'InvalidFormat' then
TriggerClientEvent('QBCore:Notify', data, Lang:t('notify.InvalidFormat'), 'error')
elseif event == 'WrongSecureWord' then
TriggerClientEvent('QBCore:Notify', data, Lang:t('notify.WrongSecureWord'), 'error')
elseif event == 'Deleted' then
TriggerClientEvent('QBCore:Notify', data, Lang:t('notify.deleted'), 'success')
end
end
Features
Resmon - 0.00ms
Configurable - locale/language, config (command)
0 Threads
Easy-to-Configure!
We are using Asset Escrow system
Last updated