67 lines
		
	
	
		
			No EOL
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			No EOL
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
WS_S = {}
 | 
						|
 | 
						|
WS_S.banTime = 48 -- in hours
 | 
						|
WS_S.loadDelay = 0 -- in secs, 0 to disable
 | 
						|
 | 
						|
WS_S.action = {
 | 
						|
    ShowIdentity = function(playerId)
 | 
						|
        print("ShowIdentity: " .. playerId)
 | 
						|
    end,
 | 
						|
    ShowSkinMenu = function(playerId)
 | 
						|
        print("ShowSkinMenu: " .. playerId)
 | 
						|
    end,
 | 
						|
    BanPlayer = function(playerId, reason)
 | 
						|
        -- TriggerEvent("EasyAdmin:BanPlayer", playerId, reason, (WS_S.banTime * 60 * 60 * 1000))
 | 
						|
    end,
 | 
						|
    OnDuty = function(xPlayer, state) -- onDuty state
 | 
						|
        print("OnDuty: " .. xPlayer.PlayerData.id .. " - " .. tostring(state))
 | 
						|
    end,
 | 
						|
}
 | 
						|
 | 
						|
WS_S.protect = {
 | 
						|
    enabled = true,
 | 
						|
    -- ONLY ONE OF THE FOLLOWING TWO OPTIONS CAN BE TRUE
 | 
						|
    -- removeAll removes all entitys that are spawned by the player while in airport
 | 
						|
    -- useMax removes the oldest entitys if the player spawns more than max entitys
 | 
						|
    mode = { removeAll = true, useMax = false },
 | 
						|
    max = 5, -- max entitys per player, only used if mode.useMax = true
 | 
						|
    -- checks the airport area for entitys and removes them
 | 
						|
    -- this disables the other two options above
 | 
						|
    checkArea = { 
 | 
						|
        enabled = true,
 | 
						|
        coords = WS.positions["airport_middle"], -- vector3(0, 0, 0)
 | 
						|
        radius = 100
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
WS_S.teamReward = {
 | 
						|
    enabled = true,
 | 
						|
    actions = {
 | 
						|
        ["whitelist"] = { 
 | 
						|
            reward = true,
 | 
						|
            type = "money", -- "money", "bank", "black_money" 
 | 
						|
            amount = 1000
 | 
						|
        },
 | 
						|
        ["ban"] = { 
 | 
						|
            reward = false,
 | 
						|
            type = "money", -- "money", "bank", "black_money" 
 | 
						|
            amount = 1000
 | 
						|
        },
 | 
						|
        ["kick"] = { 
 | 
						|
            reward = false,
 | 
						|
            type = "money", -- "money", "bank", "black_money" 
 | 
						|
            amount = 1000
 | 
						|
        },
 | 
						|
        -- valid actions: "whitelist", "ban", "kick", "skin", "char", "dimension"
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
WS_S.discord = {
 | 
						|
    enabled = true,
 | 
						|
    servername = "web.services.io",
 | 
						|
    url = "https://web-services.io/",
 | 
						|
    icon = "https://tobias.isfucking.pro/4zzE5A.png",
 | 
						|
    color = "3447003",
 | 
						|
    username = "WS - EINREISE",
 | 
						|
    webhook = "https://discord.com/api/webhooks/1378778398096232539/NTwMgiUpt6HAc4f0R7cOa6EE9Q96t4ynhq9Ws0jKi7662AoUB04R5vY_4Jh0-OBNWYUq"
 | 
						|
} |