Advertisement
Musiker15

MSK Whitelist Config

Dec 3rd, 2022 (edited)
829
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.89 KB | None | 0 0
  1. Config = {}
  2. ----------------------------------------------------------------
  3. Config.Locale = 'de'
  4. Config.VersionChecker = true
  5. Config.Debug = true
  6. ----------------------------------------------------------------
  7. -- Add the Webhook Link in server_discordlog.lua
  8. Config.DiscordLog = true
  9. Config.botColor = "6205745" -- https://www.mathsisfun.com/hexadecimal-decimal-colors.html
  10. Config.botName = "MSK Scripts"
  11. Config.botAvatar = "https://i.imgur.com/PizJGsh.png"
  12. ----------------------------------------------------------------
  13. -- !!! This function is clientside AND serverside !!!
  14. -- Look for type == 'client' and type == 'server'
  15. Config.Notification = function(src, action, xPlayer, message) -- xPlayer = ESX.GetPlayerFromId(src)
  16.     if action == 'client' then -- clientside
  17.         MSK.Notification(message) -- replace this with your Notify
  18.     elseif action == 'server' then -- serverside
  19.         MSK.Notification(src, message) -- replace this with your Notify
  20.     end
  21. end
  22. ----------------------------------------------------------------
  23. Config.Locations = {
  24.     -- !!! admin_outside = 'last_position' ONLY works if you use OneSync !!!
  25.  
  26.     einreise = vector3(-1042.46, -2745.62, 21.36),
  27.     admin_inside = vector3(-1082.14, -2826.92, 27.71),
  28.     admin_outside = 'last_position', -- 'last_position' or vector3(-1042.46, -2745.62, 21.36)
  29.     player_back_in = vector3(-1129.47, -2788.55, 27.71), -- Position were the Player get teleported back if the Player is not whitelisted
  30.     bell = {enable = true, distance = 10.0, size = 0.5, location = vector3(-1084.69, -2831.37, 27.60)} -- Postition for a bell where new players can Notify Admins
  31. }
  32.  
  33. Config.NameTags = {
  34.     enable = true, -- Set false to deactive Nametags // With admin_inside Command it will be activated and with Command admin_outside it will be deactivated
  35.     distance = 10.0, -- Distance between you and the Player to show ID and Name
  36.     showHealth = true, -- Set false to deactivate Healthbar
  37.     showOwnID = true -- Set to false if you don't want to show your own ID and Name
  38. }
  39.  
  40. Config.TPBackDistance = 150
  41. Config.AdminGroups = {'superadmin', 'admin'}
  42.  
  43. Config.Commands = {
  44.     einreise = 'einreise', -- Whitelist someone // Usage: /einreise ID
  45.     admin_inside = 'rein', -- Enter the Bordercontrol // Usage: /rein ID (ID is optional)
  46.     admin_outside = 'raus', -- Leave the Bordercontrol // Usage: /raus ID (ID is optional)
  47.     ausreise = {
  48.         command = 'ausreise', -- Sets the Whitelist to false in database // Usage: /ausreise ID
  49.         teleport = true, -- Teleports the Player back to player_back_in Location
  50.         clear_inventory = true, -- Removes all Items
  51.         clear_weapons = true, -- Removes all Weapons
  52.         clear_money = true, -- Set money to Default Money [es_extended config]
  53.     }
  54. }
  55.  
  56. Config.BanPlayer = false -- Ban Player if he try to get out of the TPBackDistance Range
  57. Config.BanString = 'Banned by MSK Einreise (tried to glitch out of Airport)'
  58. Config.BanFunction = function(xPlayer, banString)
  59.     -- !!! This funtion is SERVERSIDE !!!
  60.  
  61.     DropPlayer(xPlayer.source, banString) -- Replace this Event with your own
  62. end
  63. ----------------------------------------------------------------
  64. Config.Marker = {
  65.     enable = true, -- Displays a marker
  66.     type = 27,
  67.     size = {a = 1.0, b = 1.0, c = 1.0},
  68.     color = {a = 255, b = 255, c = 255},
  69.     distance = 10.0,
  70.     text3d = {enable = true, string = '~g~E~w~ - Einreisen', size = 1.0,},
  71.     coords = { -- You can set multiple markers
  72.         vector3(-1065.74, -2798.57, 27.71)
  73.     },
  74.     hotkey = 38 -- default: 38 = E
  75. }
  76. ----------------------------------------------------------------
  77. Config.Admin = {
  78.     enable = true, -- Checks if a admin is online and then deactivates the Marker and draws another 3DText if Marker and tex3d is enabled
  79.     enableMarker = true, -- Displays a Marker if no Admin is online
  80.     text3d = {
  81.         enable = true, -- Set false to deactivate the 3D Text
  82.         string_adminOnline = '~g~Beamte im Dienst~w~ - Es wird sich gleich um dich gekümmert',
  83.         string_adminOffline = '~g~Kein Beamter da!~w~ - Lauf hier lang zum Marker',
  84.         size = 0.8,
  85.         distance = 10.0,
  86.         coords = { -- You can set multiple markers
  87.             vector3(-1084.69, -2831.37, 27.71)
  88.         }
  89.     },
  90. }
  91. ----------------------------------------------------------------
  92. Config.AdminProtection = {
  93.     setArmor = 100, -- Set false to deactivate it or set to a number between 1 and 100
  94.     setGodmode = true, -- Set false to deactivate it
  95.     disableCanRagdoll = true, -- Set to true means disabled Ragdoll
  96.     disableCanBeDamaged = true, -- Set to true means disabled Damage
  97. }
  98.  
  99. Config.Clothing = {
  100.     enable = true, -- Set false to deactivate this feature
  101.  
  102.     male = {
  103.         ['tshirt_1'] = 15,  ['tshirt_2'] = 0,
  104.         ['torso_1'] = 287,  ['torso_2'] = 2,
  105.         ['decals_1'] = 0,   ['decals_2'] = 0,
  106.         ['arms'] = 3,
  107.         ['pants_1'] = 114,  ['pants_2'] = 2,
  108.         ['shoes_1'] = 78,   ['shoes_2'] = 2,
  109.         ['helmet_1'] = -1,  ['helmet_2'] = 0,
  110.         ['mask_1'] = 135,   ['mask_2'] = 2,
  111.         ['chain_1'] = 0,    ['chain_2'] = 0,
  112.         ['ears_1'] = 0,     ['ears_2'] = 0,
  113.         ['bags_1'] = 0,     ['bags_2'] = 0,
  114.         ['hair_1'] = 0,     ['hair_2'] = 0,
  115.         ['bproof_1'] = 0,   ['bproof_2'] = 0
  116.     },
  117.     female = {
  118.         ['tshirt_1'] = 15,  ['tshirt_2'] = 0,
  119.         ['torso_1'] = 300,  ['torso_2'] = 9,
  120.         ['decals_1'] = 0,   ['decals_2'] = 0,
  121.         ['arms'] = 8,
  122.         ['pants_1'] = 121,  ['pants_2'] = 9,
  123.         ['shoes_1'] = 82,   ['shoes_2'] = 9,
  124.         ['helmet_1'] = 23,  ['helmet_2'] = 0,
  125.         ['mask_1'] = 135,   ['mask_2'] = 9,
  126.         ['chain_1'] = 0,    ['chain_2'] = 0,
  127.         ['ears_1'] = 0,     ['ears_2'] = 0,
  128.         ['bags_1'] = 0,     ['bags_2'] = 0,
  129.         ['hair_1'] = 0,     ['hair_2'] = 0,
  130.         ['bproof_1'] = 0,   ['bproof_2'] = 0
  131.     }
  132. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement