Tebex [3,50€]: https://www.msk-scripts.de/package/5406127
Description
- Whitelist new Players Ingame before they can play at the server
Config
Code
Config = {}
----------------------------------------------------------------
Config.Locale = 'de'
Config.VersionChecker = true
Config.Debug = true
----------------------------------------------------------------
-- Add the Webhook Link in server_discordlog.lua
Config.DiscordLog = true
Config.botColor = "6205745" -- https://www.mathsisfun.com/hexadecimal-decimal-colors.html
Config.botName = "MSK Scripts"
Config.botAvatar = "https://i.imgur.com/PizJGsh.png"
----------------------------------------------------------------
-- !!! This function is clientside AND serverside !!!
-- Look for type == 'client' and type == 'server'
Config.Notification = function(src, action, xPlayer, message) -- xPlayer = ESX.GetPlayerFromId(src)
if action == 'client' then -- clientside
MSK.Notification(message) -- replace this with your Notify
elseif action == 'server' then -- serverside
MSK.Notification(src, message) -- replace this with your Notify
end
end
----------------------------------------------------------------
Config.Locations = {
-- !!! admin_outside = 'last_position' ONLY works if you use OneSync !!!
einreise = vector3(-1042.46, -2745.62, 21.36),
admin_inside = vector3(-1082.14, -2826.92, 27.71),
admin_outside = 'last_position', -- ['admin_outside'] = 'last_position' or vector3(-1042.46, -2745.62, 21.36)
player_back_in = vector3(-1129.47, -2788.55, 27.71) -- Position were the Player get teleported back if the Player is not whitelisted
}
Config.NameTags = {
enable = true, -- Set false to deactive Nametags // With admin_inside Command it will be activated and with Command admin_outside it will be deactivated
textSize = 0.5,
id = '~y~ID: ',
name = '~o~Name: '
}
Config.TPBackDistance = 150 -- Set the max Distance between player_back_in and the new Player
Config.AdminGroups = {'superadmin', 'admin', 'mod'}
Config.Commands = {
einreise = 'einreise', -- Command um Leute einreise zu lassen
admin_inside = 'rein', -- Um als Admin das Gebäude zu betreten
admin_outside = 'raus', -- Um als Admin das Gebäude zu verlassen
ausreise = {
command = 'ausreise', -- Sets the Whitelist to false in database
teleport = true, -- Teleports the Player back to player_back_in Location
clear_inventory = true, -- Removes all Items
clear_weapons = true, -- Removes all Weapons
clear_money = true -- Set money to Default Money [es_extended config]
}
}
Config.BanPlayer = false -- Ban Player if he try to get out of the TPBackDistance Range
Config.BanString = 'Banned by MSK Einreise (tried to glitch out of Airport)'
Config.BanFunction = function(xPlayer, banString)
-- !!! This funtion is SERVERSIDE !!!
-- Add your Event here
end
----------------------------------------------------------------
Config.Marker = {
enable = true, -- Displays a marker
type = 27,
size = {a = 1.0, b = 1.0, c = 1.0},
color = {a = 255, b = 255, c = 255},
distance = 10.0,
text3d = {enable = true, string = '~g~E~w~ - Einreisen', size = 1.0,},
coords = { -- You can set multiple markers
vector3(-1065.74, -2798.57, 27.71)
},
hotkey = 38 -- default: 38 = E
}
----------------------------------------------------------------
Config.Admin = { -- Requested when a player joins the server
enable = true, -- Checks if a admin is online and draws another 3D Text
enableMarker = true, -- Displays a marker if no admin is online
text3d = {
enable = true,
string_adminOnline = '~g~Beamte im Dienst~w~ - Es wird sich gleich um dich gekümmert',
string_adminOffline = '~g~Kein Beamter da!~w~ - Lauf hier lang zum Marker',
size = 1.0,
distance = 10.0,
coords = { -- You can set multiple markers
vector3(-1084.69, -2831.37, 27.71)
}
},
}
Alles anzeigen
Requirements