content
stringlengths
5
1.05M
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( 'shared.lua' ) ENT.Models = { "models/props_debris/concrete_column001a_chunk01.mdl", "models/props_debris/concrete_column001a_chunk02.mdl", "models/props_debris/concrete_column001a_chunk03.mdl", "models/props_debris/concrete_column001a_chunk04.mdl", ...
-- supporting testfile; belongs to 'cl_spec.lua' nothing here, it should just fail when it is being compiled.
PERK.name = "Medic (Intelligence)" PERK.description = "Treating wounds." PERK.shortname = "Medic (INT)" PERK.parent = "intelligence"
qjs_inc_dir = path.getabsolute("../../deps/txiki.js/deps/quickjs/include") qjs_lib_dir = path.getabsolute("../../deps/txiki.js/deps/quickjs/include") workspace "qjs" configurations { "release" } location "gen" symbols "On" optimize "Off" project "test" kind "SharedLib" language "C+...
object_draft_schematic_chemistry_component_shared_stimpack_load_charger = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/chemistry/component/shared_stimpack_load_charger.iff" } ObjectTemplates:addClientTemplate(object_draft_schematic_chemistry_component_shared_stimpack_load_...
slot4 = import(slot1) slot1 = class(".Effect", "EffectProduce") slot1.ctor = function (slot0) slot3 = slot0 slot0.super.ctor(slot2) slot4 = DNTGLK_EFFECT_TYPE.PRODUCE slot0.SetEffectType(slot2, slot0) slot0.m_nParamCount = 4 end slot1.GetParamSize = function (slot0) return slot0.m_nParamCount end slot1.Exe...
local log=require 'log' local sched = require 'sched' local socket = require 'socket' --local pipes = require 'pipes' local streams = require 'stream' --get locals for some useful things local setmetatable, ipairs, table, type = setmetatable, ipairs, table, type local CHUNK_SIZE = 1480 --65536 local recvt, sendt={...
workspace "hardpython" configurations { "Debug", "Release" } project "hardpython" kind "WindowedApp" language "C++" targetdir "bin/%{cfg.buildcfg}" links { "SDL2", "dl" } files { "**.h", "**.cpp" } --[[postbuildcommands { "{COPY} content/* bin/%{cfg.buildcfg}/content" }--]] filter "configurati...
-- --------------------------------------------- -- Shader.lua 2014/06/05 -- Copyright (c) 2013-2014 Jun Mizutani, -- released under the MIT open source license. -- --------------------------------------------- local ffi = require("ffi") local gl = require("gles2") require("Object") Shader = Object:new() ...
function Print(param) reaper.ShowConsoleMsg(param.."\n") end track = reaper.GetSelectedTrack(0, 0) -- Get current track if track ~= nil then Print("") local track_name, track_flags = reaper.GetTrackState(track) Print("Track Name: " .. track_name) Print("Track Flags: " .. track_flags) lo...
local function fails(str, exp) local ok, err = loadstring("return " .. str, "=x") assert(not ok) if err ~= exp then error(("Expected %s,\n got %s"):format(exp, err), 2) end end local function ok(str) assert(loadstring("return " .. str, "=x")) end fails("1a", "x:1: malformed number near '1a'") fails("0..0", "x:1: ...
util.AddNetworkString("ixVoiceMenu") function PLUGIN:InitializedPlugins() RunConsoleCommand("mp_show_voice_icons", "0") end function PLUGIN:PlayerLoadedCharacter(client, character) timer.Simple(0.25, function() client:SetLocalVar("voiceRange", 2) end) end /* function PLUGIN:ShowSpare1(client) ...
local K, C = unpack(select(2, ...)) local _G = _G local table_insert = _G.table.insert table_insert(C.defaultThemes, function() if not C["Skins"].WorldMap then return end local WorldMapFrame = _G.WorldMapFrame WorldMapFrame.BorderFrame:Hide() WorldMapZoneDropDown:Hide() WorldMapContinentDropDown:Hide() Wor...
--Fixes all local bugged sleepers in adventure mode. --[====[ adv-fix-sleepers ================ Fixes :bug:`6798`. This bug is characterized by sleeping units who refuse to awaken in adventure mode regardless of talking to them, hitting them, or waiting so long you die of thirst. If you come accross one or more bugged...
Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] =...
--This file should contain all commands meant to be used by mappings. local vim = vim local fs = require('neo-tree.sources.filesystem') local fs_actions = require('neo-tree.sources.filesystem.fs_actions') local utils = require('neo-tree.utils') local M = {} M.add = function(state) local tree = state.tree lo...
local Side = require 'actors/side' local State = require 'states/state' require 'colors' require 'buttons' local Menu = {} for k, v in pairs(State) do Menu[k] = v end Menu.__index = Menu setmetatable(Menu, { __index = State, __call = function (cls, ...) local self = setmetatable({}, cls) self:...
local os_utils = require("nvdope.utils.os") for exe, _ in pairs(Cfg.nvdope.dependencies) do if (os_utils.assert_executable(exe)) then print("NVDope [EH1]: The dependency " .. exe .. " was not found. Make sure you do have it installed and is available in your $PATH") end end
local find = require('modutram.helper.find') describe('find', function () it ('finds value in a table', function () local table1 = { 2, 4, 6, 8 } local table2 = { a = 1, b = 2, c = 3} assert.are.equal(2, find(table1, 4)) assert.are.equal('b', find(table2, 2)) ass...
local actions = {} local atexit if _VERSION >= 'Lua 5.2' then atexit = function (fn) actions[#actions+1] = setmetatable({}, { __gc = fn }) end else local newproxy = newproxy local debug = debug local assert = assert local setmetatable = setmetatable local function gc(fn) local p = assert(newproxy()) assert...
--[[-------------------------------------------------------------------------- -- -- File: UTActivity.Ui.Title.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: July 26, 2010 -- ----------------------------------...
-- This sets up the table of C functions local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local abi = require ...
local Image = { } Image.x = 0 Image.y = 0 Image.width = 100 Image.height = 100 Image.autoSize = false Image.file = "" Image.backgroundColor = lui.theme.color.paneBackground Image.borderColor = lui.theme.color.borderInactive Image.borderWidth = 0 ----------------------------------------...
local lfs = require"lfs" local function writeTable(tbl, out, tabs, printed) tabs = tabs or 0 printed = printed or {} local indention = string.rep("\t",tabs) for k,v in pairs(tbl) do if type(v) == "table" then if not printed[v] then out:write(indention,tostring(k),"\n") out:write(indention,"{\n") ...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local _, ns = ... local B, C, L, DB, P = unpack(ns) local G = P:GetModule("GUI") local extraGUIs = {} local function toggleExtraGUI(guiName) for name, frame in pairs(extraGUIs) do if name == guiName then B:TogglePanel(frame) else frame:Hide() end end end local function hideExtraGUIs() for _, frame in p...
local commands = { jsondetect = { { "BufNewFile,BufRead", "*.cjsn", "setfiletype jsonc" }, { "BufNewFile,BufRead", "*.cjson", "setfiletype jsonc" }, { "BufNewFile,BufRead", "*.jsonc", "setfiletype jsonc" }, { "BufNewFile,BufRead", ".eslintrc.json", "setlocal filetype=jsonc" }, { "BufNewFile,BufRea...
-- Numbers are for GUI buttons -- If a number is not there, it means it is false -- Permissions are inherited from the rank below -- local permissions = { [1] = { [1] = true, -- warp to player [2] = true, -- punish [3] = true, -- spectate [4] = true, -- warp player to [5] = true, -- reconnect [6] = true, ...
-- Copyright Alex Zhang (tokers) local util = require "resty.http2.util" local hpack = require "resty.http2.hpack" local h2_error = require "resty.http2.error" local h2_frame local new_tab = util.new_tab local clear_tab = util.clear_tab local children_update local pairs = pairs local is_num = util.is_num local is_tab...
bolle_bol_female = Creature:new { objectName = "@mob/creature_names:bolle_bol_female", socialGroup = "bol", faction = "", level = 32, chanceHit = 0.39, damageMin = 290, damageMax = 300, baseXp = 3188, baseHAM = 8800, baseHAMmax = 10800, armor = 0, resists = {20,20,20,20,150,20,150,-1,-1}, meatType = "meat_...
PayNSprays = {} CPayNSpray = inherit(CMarker) function CPayNSpray:constructor(iID, iGaragenID, sPos, sBPos, Chain, iOwner, iFilliale) self.ID = iID self.Garage = iGaragenID self.Pos = sPos self.BPos = sBPos self.iChain = Chain; self.iFilliale = iFilliale; self.Blip = createBlip(gettok(self.BPos, 1,...
do local _ = { ['artillery-flare'] = { icon = '__base__/graphics/icons/artillery-targeting-remote.png', initial_vertical_speed = 0, icon_mipmaps = 4, type = 'artillery-flare', shots_per_flare = 1, initial_frame_speed = 1, fl...
require "lunit" local _G = _G local eressea = eressea local default_ship = config.ships[1] local default_building = config.buildings[1] module('tests.eressea.orders', package.seeall, lunit.testcase) local r, f, u function setup() eressea.free_game() r = _G.region.create(0, 0, "mountain") f = _G.faction....
--[[ A map from Route objects (given by the server) to Roblox instances (created by the plugin). ]] local function hashRoute(route) return table.concat(route, "/") end local RouteMap = {} RouteMap.__index = RouteMap function RouteMap.new() local self = { _map = {}, _reverseMap = {}, _connectionsByRbx = {},...
require("core/dict"); require("util/TableLib"); require("util/ImageCache"); require("gameData/gameData"); require("hall/php/phpSocketCmd"); require("hall/moreGames/data/moreGamesConstants"); require("gameData/clientInfo"); -- 更多游戏列表数据 local MoreGamesListConfig = class(GameData); MoreGamesListConfig.Delegat...
local S = farming.intllib -- wild cotton as a source of cotton seed and a chance of cotton itself minetest.register_node("farming:cotton_wild", { description = S("Wild Cotton"), drawtype = "plantlike", waving = 1, tiles = {"farming_cotton_wild.png"}, inventory_image = "farming_cotton_wild.png", wield_image = "f...
Locations = {} exports.chat:RegisterCommand("a:tp", function(source, args, command, cb) local x, y, z, w = table.unpack(args) x = x and x:gsub(",", "") y = y and y:gsub(",", "") z = z and z:gsub(",", "") w = w and w:gsub(",", "") if tonumber(x) then x = tonumber(x) y = tonumber(y) z = tonumber(z) w = t...
id = 'V-38584' severity = 'low' weight = 10.0 title = 'The xinetd service must be uninstalled if no network services utilizing it are enabled.' description = 'Removing the "xinetd" package decreases the risk of the xinetd service\'s accidental (or intentional) activation.' fixtext = [=[The "xinetd" package can be unins...
local M = {} local log = require 'lumen.log' local selector = require 'lumen.tasks.selector' M.new = function (rong, handler) local udp_in, udp_out local conf = assert(rong.conf) local last_bcast --for filtering out own broadcast receives local net = {} log('RONG', 'INFO', 'UDP listening on %s:%s', ...
local capiunto = require 'capiunto' local box = capiunto.create( { title = 'Infobox Data Test!' } ) box :addHeader( 'A header' ) :addRow( 'An item', 'with a value' ) return tostring( box:getHtml() )
local qconsts = require 'Q/UTILS/lua/q_consts' local is_in = require 'Q/UTILS/lua/is_in' local tmpl = qconsts.Q_SRC_ROOT .. "/ML/DT/lua/cum_for_dt.tmpl" local valid_f_types = { "I1", "I2", "I4", "I8", "F4", "F8" } local valid_g_types = { "I1", "I2", "I4", "I8" } return function ( f_qtype, g_qtype ) ...
if SERVER then return end gsdraw = gsdraw or {} gsdraw.func = gsdraw.func or {} gsdraw.func.SetupSafeScroll = function(menu) local safe_scroll = vgui.Create( "DScrollPanel", menu ) safe_scroll:Dock( FILL ) safe_scroll:GSDrawScrollBar(Color(36,36,36), Color(46,46,46), 8) return safe_scroll end gsdraw...
return function() local vect = {} vect.__index = vect local sqrt,sin,cos,tau,pi = math.sqrt,math.sin,math.cos,math.pi*2,math.pi local new = function(x,y) return setmetatable({x=x or 0,y=y or 0},vect) end vect.isvect = true vect.print = function(v) return 'vect('..v.x..','..v.y..')' end vect.unpack ...
-- rPlayerFrame: core -- zork, 2019 ----------------------------- -- Variables ----------------------------- local A, L = ... local RAID_CLASS_COLORS,FACTION_BAR_COLORS = RAID_CLASS_COLORS,FACTION_BAR_COLORS ----------------------------- -- Init ----------------------------- --using code from Semlar (https://www....
level = { [0] = 3310, 1, 2, 3, 4, 5, 6, 7 }
local function make_fine_text(text_gui) local x, y, w, h = text_gui:text_rect() text_gui:set_size(w, h) text_gui:set_position(math.round(text_gui:x()), math.round(text_gui:y())) end local function fit_text_height(text_gui) local _, y, _, h = text_gui:text_rect() text_gui:set_h(h) text_gui:set_y(math.round(text...
local log = require "nvim-lsp-installer.log" local process = require "nvim-lsp-installer.process" local platform = require "nvim-lsp-installer.platform" local USER_AGENT = "nvim-lsp-installer (+https://github.com/williamboman/nvim-lsp-installer)" local HEADERS = { wget = { "--header", ("User-Agent: %s"):format(US...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
local Prop = {} Prop.Name = "Bazaar Shop 6" Prop.Cat = "Stores" Prop.Price = 250 Prop.Doors = { Vector( -13553, -10661, 359 ), Vector( -13697, -10890, 359 ), } GM.Property:Register( Prop )
--Copyright 2018 Ibispi --the main file function love.load() defaultCanvas = love.graphics.newCanvas (1024,768) --^ add a canvas to draw on require "theAbsoluteWorstClicker" --load the module exampleUICanvas = ui.newCanvas(0,0,1024,768) --make a UI canvas ui.setCanvas (exampleUICanvas) --set the canvas in or...
local helpers = require('test.functional.helpers')(after_each) local clear, eq, eval, next_msg, ok, source = helpers.clear, helpers.eq, helpers.eval, helpers.next_msg, helpers.ok, helpers.source local command, funcs, meths = helpers.command, helpers.funcs, helpers.meths local sleep = helpers.sleep local spawn, nvim...
E2VguiCore = { ["vgui_types"] = {}, ["defaultPanelTable"] = {}, ["e2_types"] = {}, ["callbacks"] = {}, ["Trigger"] = {}, ["Buddies"] = {}, ["BlockedPlayers"] = {}, ["LinkedVehicles"] = {} } util.AddNetworkString("E2Vgui.CreatePanel") util.AddNetworkString("E2Vgui.NotifyPanelRemove") uti...
id = 'V-38446' severity = 'medium' weight = 10.0 title = 'The mail system must forward all mail for root to one or more system administrators.' description = 'A number of system services utilize email messages sent to the root user to notify system administrators of active or impending issues. These messages must be f...
require 'Decode/Decoder' require 'logroll' local logger = logroll.print_logger() local BackwardModel = torch.class('BackwardModel') -- torch.factory(name) returns the *factory function* for the class with *name*. -- A factory function creates an *empty* object of a class -- ideal for our *external initialization* use...
old = rconsoleprint rconsoleprint = function(...) e = {...} if e[2] then e[2] = e[2]:upper() old("@@"..e[2].."@@") else old("@@WHITE@@") end old(e[1]) end rconsoleprint([[ ___ /\__\ /:/ _/_ /:/ /\__\ /:/ /:/ _/_ /:/_/:/ /\__\ \:\/:/ /:/ / \::/_/:/ / ...
local wibox = require('wibox') local awful = require('awful') local gears = require('gears') local beautiful = require('beautiful') local dpi = beautiful.xresources.apply_dpi local builder = require('widget.notif-center.build-notifbox.notifbox-ui-elements') local notifbox_core = require('widget.notif-center.build-not...
AddEvent("OnPackageStart", function() CreateObject(256, 195071.625, 209471.109375, 1212.8002929688, 0.65263819694519, -0.36135864257813, 90.038497924805, 0.9997735619545, 0.9997735619545, 1.3225631713867) CreateObject(256, 195371.90625, 209469.46875, 1212.8002929688, 0.65263819694519, -0.36135864257813, 90.0384979248...
local codec = require('websocket-codec') local base64 = _G.luvitwsrequire('./modules/base64') local json = _G.luvitwsrequire("./modules/json") local sha1 = _G.luvitwsrequire('./modules/sha1') local packets = {} local insert, remove, concat = table.insert, table.remove, table.concat local fmod, floor, frexp = math.fmod...
math.randomseed(os.time()) local hue = math.random(0, 360); local wezterm = require 'wezterm' local function font_with_fallback(name, params) local names = { name, "Noto Color Emoji", "FiraCode Nerd Font" } return wezterm.font_with_fallback(names, params) end -- local SOLID_LEFT_ARROW = utf8.char(0xe0b2) local ...
EditMeshVariation = EditMeshVariation or class(EditUnit) function EditMeshVariation:editable(unit) local mesh_variations = table.merge( managers.sequence:get_editable_state_sequence_list(unit:name()) or {}, managers.sequence:get_triggable_sequence_list(unit:name()) ) local materials = self:g...
local t = Def.ActorFrame{ LoadActor(THEME:GetPathB("ScreenLogo","background")); }; return t;
uart.setup(0, 115200, 8, 0, 1, 0) --uart.on(1) --uart.write(0, "page 3") val = 65 while 1 do uart.write(0, string.char(val), "\r\n") val = val + 1 if val > 90 then val = 65 end tmr.delay(1000000) end
pfUI:RegisterSkin("Tooltips", 20400, function () local border = tonumber(C.appearance.border.default) local alpha = tonumber(C.tooltip.alpha) for _, tooltip in pairs({GameTooltip, ItemRefTooltip, ShoppingTooltip1, ShoppingTooltip2}) do CreateBackdrop(tooltip, nil, nil, alpha) end HookScript(WorldMapTool...
-- @description Search Tracks for FX -- @author Aaron Cendan -- @version 1.0 -- @metapackage -- @provides -- [main] . > acendan_Search all tracks for FX by name.lua -- @link https://aaroncendan.me -- @about -- # Search Tracks for FX -- By Aaron Cendan - July 2020 -- -- * Prompts user for fx name, then searches ...
local API_P = require(script:GetCustomProperty("APIProjectile")) local API_D = require(script:GetCustomProperty("APIDamage")) local PROJECTILE_TEMPLATE = script:GetCustomProperty("ProjectileTemplate") local BASE_DAMAGE = 25.0 local DAMAGE_MULTIPLIER = 0.7 local PROJECTILE_SPEED = 2400.0 local HEAL_RANGE = 600...
describe('scan', function() local scan = require 'scan.scan' local Token = require 'scan.Token' local function input(s) return { should_generate_tokens = function(expected) assert.are.same(expected, scan(s, load'')) end } end it('should scan an empty string', function() input...
local cfg = module("cfg/survival") local lang = vRP.lang -- api function vRP.getHunger(user_id) local data = vRP.getUserDataTable(user_id) if data then return data.hunger end return 0 end function vRP.getThirst(user_id) local data = vRP.getUserDataTable(user_id) if data then return data.thirst ...
local L = BigWigs:NewBossLocale("Ancient Protectors", "ptBR") if not L then return end if L then L[83892] = "|cFF00CCFFGola|r" L[83893] = "|cFF00CC00Telu|r" L.custom_on_automark = "Marca automaticamente os chefes" L.custom_on_automark_desc = "Automaticamente marca Gola com {rt8} e Telu com {rt7}, requer promovido ...
VFS.Include("LuaGadgets/gadgets.lua",nil, VFS.BASE)
--[[------------------------------------------ ============================ LAG DETECTION MODULE ============================ Developer informations : --------------------------------- Used variables : lagTrigger = { value = 75, desc = "% difference between current lag and average lag."} lagsCount = { val...
--!strict -- Streamable -- Stephen Leitnick -- March 03, 2021 local Janitor = require(script.Parent.Janitor) local Signal = require(script.Parent.Signal) type StreamableWithInstance = { Instance: Instance?, [any]: any, } --[=[ @within Streamable @prop Instance Instance The current instance represented by the S...
--[[ TheNexusAvenger Plays a sound for hitting a player. --]] local Players = game:GetService("Players") return function () local HitSound = Players.LocalPlayer:FindFirstChild("HitSound") if not HitSound then HitSound = Instance.new("Sound") HitSound.Name = "HitSound" HitSound.SoundId...
local httpclient = require'http.request' local monotime = require "cqueues".monotime local uri_parse = require'uriparse' local idn = require'idn' local zlib = require'zlib' local lconsole = require'logging.console' local log = lconsole() -- Change to DEBUG if you want to see full URL fetch log log:setLevel('INFO') lo...
cc = cc or {} ---FlipX object ---@class FlipX : ActionInstant local FlipX = {} cc.FlipX = FlipX -------------------------------- --- init the action ---@param x bool ---@return bool function FlipX:initWithFlipX(x) end -------------------------------- --- Create the action.<br> ---param x Flips the sprite horizontally...
local devmode = settings.startup["durni:startup:dev-mode"].value local recipe = { type = "recipe", name = "durni:compressed-air-pipe", result = "durni:compressed-air-pipe", ingredients = { {"copper-plate", 1} }, enabled = devmode } data:extend {recipe}
slot0 = class("CatteryStyleCard") slot0.Ctor = function (slot0, slot1) slot0._go = slot1 slot0._tf = slot1.transform slot0.styleIcon = slot0._tf:Find("mask/icon"):GetComponent(typeof(Image)) slot0.lockTF = findTF(slot0._tf, "lock") slot0.mark = findTF(slot0._tf, "mark") end slot0.Update = function (slot0, slot1,...
--[[ Vote Panel ------------------------------------------------------------------------------ --]] local panel = {} --panel settings panel.Name = "vote" panel.Settings = { CenterHorizontally = "center_horizontally", } --[[ Create vote panel --]] function panel:Init() self:BaseInit({ Padding = true, Decla...
surface.CreateFont("HUDNumber5", {font = "Trebuchet MS", size = 45, weight = 900}); include ("shared.lua"); function ENT:Initialize() self.m_iLastSpark = CurTime(); self.m_iNextSparkTime = 0; end function ENT:Draw() self:DrawModel(); local pos = self:LocalToWorld(self:OBBCenter()); local ang = sel...
CustomizableWeaponry:addFireSound("CW_TMG_FIRE", "weapons/tmg/tmg_1.wav", 1, 50, CHAN_STATIC) CustomizableWeaponry:addReloadSound("CW_TMG_MAGOUT", "weapons/tmg/tmg_magout.mp3") CustomizableWeaponry:addReloadSound("CW_TMG_MAGIN", "weapons/tmg/tmg_magin.mp3") CustomizableWeaponry:addReloadSound("CW_TMG_BOLTCOCK", "weapo...
package.path = "../../?.lua;" .. package.path function love.conf(t) io.stdout:setvbuf('no') t.version = '11.2' t.console = false t.window.title = 'Modern Examples - Love2D' t.window.x = 25 t.window.y = 25 t.window.width = 500 t.window.height = 500 ...
local K, C, L, _ = select(2, ...):unpack() if C["Aura"].cast_by ~= true then return end local format = string.format local select = select local pairs = pairs local match = string.match local GetUnitName = GetUnitName local hooksecurefunc = hooksecurefunc local UnitClass = UnitClass local CUSTOM_CLASS_COLORS = CUSTOM_...
local events = require('core').Emitter local initialized = false local connections = { onConnect = nil, onDisconnect = nil, onMessage = nil, onListen = nil, emit = function (self, ...) events:emit(...) end, sendAll = function (self, data) error("Websocket is not initialized") end, disconnect = function (s...
NOMSU_VERSION = { 7, 0, 1 } local clibtype = package.cpath:match("?%.(so)") or package.cpath:match("?%.(dll)") if NOMSU_PREFIX then package.path = tostring(NOMSU_PREFIX) .. "/share/nomsu/" .. tostring(table.concat(NOMSU_VERSION, ".")) .. "/?.lua;" .. package.path package.cpath = tostring(NOMSU_PREFIX) .. "/li...
------------------------CREDITS------------------------ -------- Script made by Vlad, DevStudios Owner -------- -- Script made for StreamForce Romania RP -- -- Site: https://devstudios.store -- -- Forum: http://forum.devstudios.store -- -- Copyright 2019 ©DevStudios. All rig...
Object = { x = 0, y = 0, width = 0, height = 0 } function Object:new(x,y,width,height) obj = {} obj.x = x obj.y = y obj.width = width obj.height = height return obj end function Object:draw(obj) x, y, width, height print(x,y,width,height) end Object:new(50,50,20,20) function...
-- ./skynet /mnt/e/Code/CVIP/code/skynet/test.conf local skynet = require "skynet" local socket = require "skynet.socket" local function event_loop(clientfd) while true do local data = socket.readline(clientfd)--从网络获取 以\n为分隔符的数据包 if not data then return end print(client...
local wibox = require("wibox") local awful = require("awful") local button = require("utils.button") local font = require("utils.font") local shape = require("gears.shape") local surface = require("gears.surface") local noti = require("utils.noti") local progressbar = require("utils.progressbar") local helpers = requir...
local structure = FindInTable(StructureSpawnerManager.StructureCategories, "category", "tent") structure.abandonedTimer = 2630000 -- 1 month
---@class love.filesystem ---Provides an interface to the user's filesystem. local m = {} --region File ---@class File ---Represents a file on the filesystem. A function that takes a file path can also take a File. local File = {} ---Closes a File. ---@return boolean function File:close() end ---Flushes any buffered ...
local AM = luajava.bindClass("com.theincgi.advancedMacros.AdvancedMacros") local mc = AM:getMinecraft() log(getProfile()) log(mc.field_71439_g.field_70138_W) mc.field_71439_g:func_71004_bE()
SMT_DB = { }
--- Riak counter object. Can only be used with resty.riak created client. -- These are generally just wrappers around the low level -- @{resty.riak.client} functions -- @see resty.riak -- @module resty.riak.counter local riak_client = require "resty.riak.client" local helpers = require "resty.riak.helpers" local setme...
local PauseMenu = {} -- pause menu -- ┏━┓┏━┓╻ ╻┏━┓┏━╸ ┏┳┓┏━╸┏┓╻╻ ╻ -- ┣━┛┣━┫┃ ┃┗━┓┣╸ ┃┃┃┣╸ ┃┗┫┃ ┃ -- ╹ ╹ ╹┗━┛...
local M = {} local function get_base(cp, config) cp.none = "NONE" return { Comment = { fg = cp.gray, style = config.styles.comments }, -- just comments ColorColumn = { bg = cp.gray2 }, -- used for the columns set with 'colorcolumn' Conceal = { fg = cp.bg }, -- placeholder characters substitute...
local playersProcessingExtap = {} local playersProcessingExta = {} RegisterServerEvent('esx_illegal:pickedUpMdma') AddEventHandler('esx_illegal:pickedUpMdma', function() local xPlayer = ESX.GetPlayerFromId(source) local xItem = xPlayer.getInventoryItem('extamdma') if xItem.limit ~= -1 and (xItem.count + 10) > xIte...
-- -- Copyright (C) 2017-2020 DBotThePony -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, pub...
return {[3000320]=true,[2]=true,[311300]=true,[303110]=true,[1032200]=true,[213002]=true,[11]=true,[12302]=true,[2013200]=true,[20]=true,[23]=true,[213020]=true,[2132000]=true,[3113000]=true,[301100]=true,[301103]=true,[1022000]=true,[2302001]=true,[1022003]=true,[2102]=true,[2003000]=true,[1030202]=true,[2003003]=true...
------------------------------------------------------------------------------- -- Various utilities module( ..., package.seeall ) require "pack" function str2array( s, first ) first = first or 1 local a = {} for i = 1, #s do a[ first + i - 1 ] = s:byte( i, i ) end return a end function generate_acces...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Structures\Marine\Armory\shared.lua -- - Dragon function Armory:GetItemList(forPlayer) return { kTechId.Welder, kTechId.LayMines, kTechId.Shotgun, kTechId.GrenadeLauncher, kTechId.Flamethrower,...
local scenes = {} RegisterNetEvent('nh-scenes:fetch', function() local src = source TriggerClientEvent('nh-scenes:send', src, scenes) end) RegisterNetEvent('nh-scenes:add', function(coords, message, color, distance) table.insert(scenes, { message = message, color = color, distance ...