content
stringlengths
5
1.05M
object_mobile_npc_dressed_corellia_genetech_syndicate_menagerie_bioll = object_mobile_shared_npc_dressed_corellia_genetech_syndicate_menagerie_bioll:new { } ObjectTemplates:addTemplate(object_mobile_npc_dressed_corellia_genetech_syndicate_menagerie_bioll, "object/mobile/npc_dressed_corellia_genetech_syndicate_menager...
-- Inheritance LUA Doc: http://www.lua.org/pil/16.2.html RGE_Item = {} function RGE_Item:New(bagId, slotIndex) obj = {} setmetatable(obj, self) self.__index = self obj:Init(bagId, slotIndex) return obj end function RGE_Item:Init(bagId, slotIndex) self.bag = bagId self.slot = slotIndex self.link = GetItemLink...
local function close_redis(red) if not red then return end local ok, err = red:close() if not ok then ngx.say("close redis error : ", err) end end local redis = require("resty.redis") --创建实例 local red = redis:new() --设置超时(毫秒) red:set_timeout(1000) --建立连接 local ip = "127.0.0.1" local...
-- This file is part of SA MoonLoader package. -- Licensed under the MIT License. -- Copyright (c) 2018, BlastHack Team <blast.hk> -- DEBUG if not getWorkingDirectory then local ffi = require 'ffi' ffi.cdef [[unsigned long GetCurrentDirectoryA(unsigned long nBufferLength, char* lpBuffer);]] function getWorkingDirec...
-------------------------------------------------------------------------------------------------- -- : by Kirill -- : single unit human combat pipes -- -------------------------------------------------------------------------------------------------- function PipeManager:OnInitSingle() --run to target and do melee...
local COMMAND = Command.new('forcegetup') COMMAND.name = 'ForceGetUp' COMMAND.description = 'command.force_getup.description' COMMAND.syntax = 'command.force_getup.syntax' COMMAND.permission = 'assistant' COMMAND.category = 'permission.categories.roleplay' COMMAND.arguments = 1 COMMAND.player_arg = 1 COMMAND.aliases = ...
local defaults = { tab_format = " #{n}: #{b}#{f} ", buffer_id_index = false, icon_colors = true, start_hidden = false, auto_hide = false, disable_commands = false, go_to_maps = true, flags = { modified = " [+]", not_modifiable = " [-]", readonly = " [RO]", }, ...
--[[ # Element: ComboPoints Handles the visibility and updating of the player's combo points. ## Widget ComboPoints - A `table` consisting of 5 StatusBars as the maximum return of [UnitPowerMax](http://wowprogramming.com/docs/api/UnitPowerMax.html). ## Notes A default texture will be applied if the sub-...
ServerOptions = {} ServerOptions.getOption = function(name) return "" end ServerOptions.getBoolean = function(name) return true end
local function updateAgenda(ply, agenda, text) local txt = hook.Run("agendaUpdated", ply, agenda, text) agenda.text = txt or text local phrase = DarkRP.getPhrase("agenda_updated") for _, v in ipairs(player.GetAll()) do if v:getAgendaTable() ~= agenda then continue end v:setSelfDarkRPV...
-- 初始化DangerZone的外框 (碰撞) function InitDangerZone() DangerZone = World:newRectangleCollider(0, 550, 800, 50, { collision_class = 'DangerZone'}) DangerZone:setType('static') end
local args = ... local player = args.Player local profile_data = args.ProfileData local scroller = args.Scroller local scroller_item_mt = LoadActor("./ScrollerItemMT.lua") -- I tried really hard to use size + position variables instead of hardcoded numbers all over -- the place, but gave up after an hour of questioni...
require("stategraphs/commonstates") local actionhandlers = { ActionHandler(ACTIONS.GOHOME, "gohome"), ActionHandler(ACTIONS.EAT, "eat"), } local events= { CommonHandlers.OnLocomote(true,true), CommonHandlers.OnSleep(), CommonHandlers.OnFreeze(), CommonHandlers.OnAttack(), CommonHandlers....
local PLUGIN = PLUGIN if (SERVER) then function PLUGIN:searchPlayer(client, target) if (IsValid(target:GetNetVar("searcher")) or IsValid(client.nutSearchTarget)) then return false end if (!target:GetChar() or !target:GetChar():GetInv()) then return false end local inventory = target:GetChar():GetInv...
--Create the two global tables which will be used to create the replications and their technologies later on repl_table = {} --[[ Repltech (table): items (array of the following table): name cost (either a number or an array where each entry is either a number or the following table): target type (...
LogColors = { Default = 'white', Error = 'red', Warning = 'yellow', Success = 'green', Event = 'teal' } ThingCategory = { CategoryItem = 0, CategoryCreature = 1, CategoryEffect = 2, CategoryMissile = 3, CategoryInvalid = 4 } ThingCategories = { ThingCategory.CategoryIte...
--- Query library inspired by LINQ. -- @module moony.query local class = require('moony.class') local M, MT = {}, {} local Iterable = class() local setmetatable = _G.setmetatable local assert = _G.assert local ipairs = _G.ipairs local pairs = _G.pairs local type = _G.type local yield = coroutine.yield local wrap = ...
Talk(86, "我是”青城四秀”中的侯人雄.师父常说五岳剑派算什么,等到我们拿到”辟邪剑谱”后,就要他们好看.", "talkname86", 0); do return end;
--[[ _______ ______ ______ _____ _ _ _______ ______ ______ _____ _ _ | |______ |_____] |_____/ | |____/ |_____| |_____] |_____/ | | |____/ |_____ |______ |_____] | \_ __|__ | \_ | | |_____] | \_ |_____| | \_ ...
--- Templates for various terminal configuration formats vim.cmd("packadd lush.nvim") local lush = require("lush") local uv = vim.loop -- Reload melange module local function get_colorscheme(variant) package.loaded["melange"] = nil vim.opt.background = variant return require("melange") end -- Get the dir...
object_draft_schematic_furniture_wod_pro_sm_tree_06 = object_draft_schematic_furniture_shared_wod_pro_sm_tree_06:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_wod_pro_sm_tree_06, "object/draft_schematic/furniture/wod_pro_sm_tree_06.iff")
local csi = require('luabox.util').csi --- module Allows for switching between the main and alternative screen buffers --- --- This buffer only exists on xterm compatible terminals ---@class screen ---@field public toAlternative string Switch to the alternative screen ---@field public toMain string Switch to the main ...
local a function test() a = 10 end jit("compile", test) test() assert(a == 10) --[[ function <../tests/9_OP_SETUPVAL.lua:2,4> (3 instructions at 0x9f2600) 0 params, 2 slots, 1 upvalue, 0 locals, 1 constant, 0 functions 1 [3] LOADK 0 -1 ; 10 2 [3] SETUPVAL 0 0 ; a 3 [4] RETURN 0 1 constants (1) for 0x9f...
local Area = require("api.Area") local TestUtil = require("api.test.TestUtil") local Map = require("api.Map") local ElonaCommand = require("mod.elona.api.ElonaCommand") local Assert = require("api.test.Assert") local Feat = require("api.Feat") local IFeat = require("api.feat.IFeat") disable("Flaky due to items blockin...
local ThroneRoom = File:extend() function ThroneRoom:new(text) ThroneRoom.super.new(self, "castle") Art.new(self, "throne_room") self.player.health = 100 self:setText([[[username] открыла две большие двери, и она обнаружила себя внутри огромной комнаты. В конце комнаты стоял трон, на котором сидел скелет. Скелет...
local skynet = require 'skynet.manager' local log = require 'utils.log' local rtc = require 'hwtest.other.rtc' local leds = require 'hwtest.leds' local ping = require 'hwtest.ethernet.ping' local master_slave = require 'hwtest.stream.master_slave' local serial = require 'hwtest.stream.serial' local tests = {} functi...
local match_record_pin_map = require("qnFiles/qnPlist/hall/match_record_pin"); local match_hall_record_share_layout= { name="match_hall_record_share_layout",type=0,typeName="View",time=0,x=0,y=0,width=1280,height=720,visible=1,nodeAlign=kAlignTopLeft,fillParentWidth=1,fillParentHeight=1, { name="contentBg",type=0,t...
--[[ Copyright (c) 2009 Bart Bes 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, publish, distribute, sub...
local skynet = require "skynet" require "skynet.manager" -- import skynet.register local roomList = {} local CMD = {} function CMD.getRoomList() skynet.ret(skynet.pack(roomList)) --return roomList end skynet.start(function() local LandlordRoom = skynet.newservice("LandlordRoom") skynet.error("start LandlordRoom...
return {'wereldbank','werelddierendag','wereldgezondheidsorganisatie','wereldhandelsorganisatie','wereldomroep','wereldvoetbalbond','werd','wereld','wereldatlas','wereldbedrijf','wereldbeeld','wereldbeheerser','wereldbekend','wereldbekendheid','wereldbeker','wereldbekercircuit','wereldbekercyclus','wereldbekerfinale','...
math.randomseed(os.time()) dofile("NeuralNetwork.lua") network = NeuralNetwork.create(2,1,2,4,0.3) print("Training the neural network:") attempts = 10000 -- number of times to do backpropagation for i = 1,attempts do network:backwardPropagate({0,0},{0}) network:backwardPropagate({1,0},{1}) network:backw...
loadval = math.random(0.05,0.4) print("Loading Process Initiated!") os.sleep(1) local component = require "component" print("Components Initialized!") os.sleep(loadval) local computer = require "computer" print("Computer Variable Loaded!") os.sleep(loadval) local gpu = component.gpu print("GPU Variable Loaded!") os.sl...
if ( !sql.TableExists( "cookies" ) ) then sql.Query( "CREATE TABLE IF NOT EXISTS cookies ( key TEXT NOT NULL PRIMARY KEY, value TEXT );" ) end module( "cookie", package.seeall ) local CachedEntries = {} local BufferedWrites = {} local BufferedDeletes = {} local function GetCache( key ) if ( BufferedDeletes[ key...
--[[ this was inspired by and takes some code from https://github.com/SmallJoker/noisetest WTFPL License bf_ = Biome Function Biome Functions are called by a tg_ Terrain Generator to map biomes to parms.share.surface This is really a left over from some of my earlier experimentation with biomes. I've kept it just to...
local E, L = unpack(ElvUI) -- Import Functions/Constants, Config, Locales --Title: UnitPrice --Author: xbeeps --Version: 1.20 --Modify by cadcamzy at 2015.04.27 local FauxScrollFrame_GetOffset = FauxScrollFrame_GetOffset local GetAuctionItemInfo = GetAuctionItemInfo local GetAuctionItemLink = GetAuctionItemLink local ...
local function include_cl(f) if (SERVER) then AddCSLuaFile(f) elseif (CLIENT) then include(f) end end console = console or {} include_cl('colors.lua') include_cl('overwrites.lua') include_cl('funcs.lua') include_cl('menu.lua') local msg = { [[ _____ _ ]], [[ / ____| ...
local playsession = { {"DaCluwn", {251910}}, {"Timfee", {249115}}, {"Houdi", {227521}}, {"seer", {251267}}, {"WorldofWarIII", {250489}}, {"KIRkomMAX", {128943}}, {"Xakep_SDK", {212140}}, {"Firkys", {211423}}, {"NezoxEx", {18378}}, {"jagger23", {210721}}, {"Nikkichu", {199507}}, {"benw91ne", {190296}}, {"da...
--Desk form script. require("ud_widgets") --Create designer desk form. function create_desk_fm(ui, left, top, width, height) local ud = k_global("ud") --Create top dialog. local desk_fm = ui:Create("FlatForm") desk_fm.Name = "desk_fm" desk_fm.Left = left desk_fm.Top = top desk_fm.Width = width ...
--[[ This is a socket listener for running Jester sequences via the FreeSWITCH event system. It is experimental, use at your own risk. To start listener, set it as a startup script in conf/autoload_configs/lua.conf.xml: <param name="startup-script" value="jester/socket.lua [server] [port] [password]"/> ...
local gui = require("__flib__.control.gui") local translation = require("__flib__.control.translation") return { ["0.2.0"] = function() gui.init() translation.init() global.__lualib = nil global.flags.iterating_ltn_data = false global.flags.updating_guis = false local tick = game.tick f...
-- Free FatCow-Farm Fresh Icons -- http://www.fatcow.com/free-icons ico = { } ico.note_go = iup.imagergba{ width = 24, height = 24, pixels = { 167, 117, 45, 26, 208, 149, 59, 233, 210, 152, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, ...
local Wait = Wait local clock = os.clock RegisterCommand("perftest", function() local idx = 0 local test = function(name) idx = idx + 1 local eventName = "perf:test" .. idx local results = {} local start RegisterNetEvent(eventName, function(i, total) if i == ...
led = require("led") lan = require("network") D = require("fakedisplay") pm25led=require("pm25led") ffuctrl=require("ffuctrl") PMS = { PM2_5 = 20, PM1_0 = 30, PM10 = 50, T = 15, H = 25, TM = 1509537739, active = function() end, suspend = function() end } Dcl = 1000 FFUcl=10 -- envir...
local ITEM = Clockwork.item:New("armor_clothes_base"); ITEM.name = "PSZ-9d Duty Armored Suit"; ITEM.uniqueID = "duty_psz9d_suit"; ITEM.actualWeight = 6; ITEM.invSpace = 8; ITEM.radiationResistance = 0.4; ITEM.maxArmor = 100; ITEM.protection = 0.6; ITEM.hasGasmask = true; ITEM.business = false; ITEM.replacement = "model...
-- See LICENSE for terms function OnMsg.LoadGame() local rules = g_CurrentMissionParams.idGameRules or empty_table local GameRulesMap = GameRulesMap for rule_id in pairs(rules) do -- if it isn't in the map then it isn't a valid rule if not GameRulesMap[rule_id] then rules[rule_id] = nil end end end
-- -- Copyright (c) 2015 rxi -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the MIT license. See LICENSE for details. -- local position = { x = 0, y = 0 } local buttonsDown = {} local buttonsPressed = {} function sol.mouse._onEvent(e) if e.type == "mousemove" t...
workspace "Mewtle" architecture "x64" configurations{ "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "Mewtle" location "Mewtle" kind "StaticLib" language "C++" cppdialect "C++17" staticruntime "on" targetdir("bin/" .. outputdir .. "/%{prj.name}") ...
local uci = require("simple-uci").cursor() local wireless = require 'gluon.wireless' package 'gluon-web-wifi-config' if wireless.device_uses_wlan(uci) then entry({"admin", "wifi-config"}, model("admin/wifi-config"), _("WLAN"), 20) end
----------------------------------- -- Area: Gusgen Mines -- NPC: ??? - 17580347 -- Spawns Aroma Fly - RSE Satchets ----------------------------------- local ID = require("scripts/zones/Gusgen_Mines/IDs") require("scripts/globals/npc_util") ----------------------------------- function onTrade(player, npc, trade) end ...
function picnicFlag(n) local pool = {} local lastCard = {0,0} for i, v in pairs(ROUND.chair[n].hand) do if v[1] == lastCard[1] and v[2] == lastCard[2] then table.insert(pool, i) else lastCard = v end end if #pool > 0 then local image = {tfm.exec.addImage(IMG.misc.genericLayer, "!1000", 0, 0, ROUND.ch...
----------------------------------- -- Area: Uleguerand Range -- NPC: Zebada -- Type: ENM Quest Activator -- !pos -308.112 -42.137 -570.096 5 ----------------------------------- local ID = require("scripts/zones/Uleguerand_Range/IDs") require("scripts/globals/keyitems") ----------------------------------- function on...
local _CUR = ... local _M = { Role = cc.import(".Role", _CUR), } return _M
local MOCK_STUDIO = { ThemeChanged = Instance.new("BindableEvent").Event, Theme = { GetColor = function() end, }, } local function useTheme(hooks: any) local studio = hooks.useMemo(function() local success, result = pcall(function() return (settings() :: any).Studio end) return if success then result e...
local function enum(tbl) local call = {} for k, v in pairs(tbl) do if call[v] then return error(string.format('enum clash for %q and %q', k, call[v])) end call[v] = k end return setmetatable({}, { __call = function(_, k) if call[k] then return call[k] else return error('invalid enumeration:...
function VBJOB.RegisterJob(teamIdentifier, jobTable, inheritedJob) if inheritedJob then VBJOB.JobTable[teamIdentifier] = table.Copy(VBJOB.JobTable[inheritedJob]) for k, v in pairs(jobTable) do VBJOB.JobTable[teamIdentifier][k] = v end else VBJOB.JobTable[teamIdentifier] = jobTable end end ...
-- See LICENSE for terms -- nil is close enough to false AreDomesCapped = empty_func
local b = {} b.find = function(_, list, index, val) local lower = 1 local upper = #list local found = false while not found do local check = lower + math.floor(((upper - lower) / 2) + 0.5) if list[check][index] == val then found = check break end ...
local size = CCDirector:sharedDirector():getWinSize() local scheduler = CCDirector:sharedDirector():getScheduler() local kTagTileMap = 1 local function createTileDemoLayer(title, subtitle) local layer = CCLayer:create() Helper.initWithLayer(layer) local titleStr = title == nil and "No title" or title ...
#include 'include/config.lua' namespace('Teams') ShpRegisterItem { id = 'team', field = 'ownedTeam', onBuy = function(player, val) if(val) then return false end local pdata = Player.fromEl(player) local teamInfo, err = updateItem{name = pdata:getName(), tag = '', aclGroup = false, color = '#...
local app = require('app') local path = require('path') local fs = require('fs') local lpm = require('lpm') local exec = require('child_process').exec ------------------------------------------------------------------------------- -- exports local exports = lpm -- 返回所有需要后台运行的应用 local fun...
-- Test handling of not_cursed in item curse status generation. local niters = 2500 local item_type = "dagger not_cursed" local place = dgn.point(20, 20) local curse_count = 0 local function test_item (place, item_type) dgn.create_item(place.x, place.y, item_type) local item = dgn.items_at(place.x, place.y)[1...
-- The Computer Language Benchmarks Game -- http://shootout.alioth.debian.org/ -- contributed by Mike Pall local EXPECT_CKSUM = 1616 local MAX_N = 8 function run_iter(n) for i=1,n do inner_iter() end end function inner_iter() n = MAX_N local p, q, s, sign, maxflips, sum = {}, {}, {}, 1, 0, 0 for i=1,n ...
local Voting = false local Voting_Tbl local SelectedMapPerPlayer = {} local Votes = {} function table_count(ta) local count = 0 for k, v in pairs(ta) do count = count + 1 end return count end Events.Subscribe("SelectMap", function(ply, map) local ply_id = ply:GetID() local Selected_map = Selecte...
local redis_client = require "services.redis_client" local fmt = string.format local function get_uid_by_token(user_token) --[[ string user_token --]] local client = redis_client:new() local uid = client:run("get", fmt("user_token(%s):uid", user_token)) return tonumber(uid) end local function context(...
JSON = (loadfile "json.lua")() ChefClient = require "api" -- works like PHP's print_r(), returning the output instead of printing it to STDOUT -- daniel speakmedia com function dump(data) -- cache of tables already printed, to avoid infinite recursive loops local tablecache = {} local buffer = "" loca...
---@diagnostic disable: lowercase-global -- awesome_mode: api-level=4:screen=on pcall(require, "luarocks.loader") local gears = require("gears") local awful = require("awful") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") local ruled = require("ruled") local m...
------------------------------------------------------------------------------- -- Copas - Coroutine Oriented Portable Asynchronous Services -- -- Copas Wrapper for socket.http module -- -- Written by Leonardo Godinho da Cunha ------------------------------------------------------------------------------- require "co...
-- IMPORTANT NOTE : This is the user config, can be edited. Will be preserved if updated with internal updater local M = {} M.ui, M.options, M.plugin_status, M.mappings, M.custom = {}, {}, {}, {}, {} -- non plugin ui configs, available without any plugins M.ui = { italic_comments = true, -- theme to be used, t...
------------------------------------------------ -- Copyright © 2013-2020 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ local model = {} -- local Model = Model --config data model.has_connection = false --是否已经连接过 model.guide_taskid = 200 model.units=nil --Unit Config...
class("RaceManagerJoinable") function RaceManagerJoinable:__init(args) ; EGUSM.SubscribeUtility.__init(self) self.labels = nil self.rows = nil self:AddToRaceMenu() self:QueuedRaceCreate(args.raceInfo) self:EventSubscribe("RaceCreate") self:EventSubscribe("RaceEnd") self:NetworkSubscribe("QueuedRa...
local colors = require 'colors' local utils = require 'utils' local sceneManager = require 'src/sceneManager' local soundManager = require 'soundManager' local snake = {} local foodSound = love.audio.newSource("assets/sfx/good3.wav", "static") local snake = {} local TILE_SIZE = 10 local snakeDirection = 'right' lo...
if _G['AI'] ~= nil then error("_AI.lua: Name colision, there's another 'AI' symbol at the global scope, library will not be loaded.") return false end --[[ @namespace AI @description This table serves as a namespace for all the classes and utility functions in the package. ]] local AI = { --[[@function Creates...
object_tangible_loot_creature_loot_kashyyyk_loot_decomposed_fish_02 = object_tangible_loot_creature_loot_kashyyyk_loot_shared_decomposed_fish_02:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_decomposed_fish_02, "object/tangible/loot/creature_loot/kashyyyk_loot/decomposed_fish_02...
print ("printwarp zonehandler lua") function OnStartTouch(keys) print ("printwarp zonehandler OnStartTouch") local hTrigger = keys.caller local hActivator = keys.activator print(hTrigger) local index = hActivator.Orders.index local Waypoint = hActivator.Orders.Waypoints[index] print(index) if Waypoint....
-- Prosody IM -- Copyright (C) 2017 Atlassian -- function get_log() local log = { _version = "0.1.0" } log.usecolor = true log.outfile = nil log.level = "trace" local modes = { { name = "trace", color = "\27[34m", }, { name = "debug", color = "\27[36m", }, { name = "info", color = "\27[32m", }, { name =...
--- --- ForceField.lua --- --- Copyright (C) 2018 Xrysnow. All rights reserved. --- local mbg = require('util.mbg.main') ---@class mbg.ForceField local ForceField = {} mbg.ForceField = ForceField local function _ForceField() ---@type mbg.ForceField local ret = {} ret['ID'] = 0 ret['层ID'] = 0 ret[...
hook.Add( "Think", "AimBot", function() local ply = LocalPlayer() local trace = ply:GetEyeTrace() local target = trace.Entity if IsValid( target ) then local eyes = target:GetAttachment( target:LookupAttachment( "eyes" ) ) if eyes then ply:SetEyeAngles( ( eyes.Pos - ply:GetShootPos() ):Angle() ) end end e...
--[[ luaide 模板位置位于 Template/FunTemplate/NewFileTemplate.lua 其中 Template 为配置路径 与luaide.luaTemplatesDir luaide.luaTemplatesDir 配置 https://www.showdoc.cc/web/#/luaide?page_id=713062580213505 author:darklost time:2021-09-02 01:19:50 ]] local ASTNode = class("ASTNode") function ASTNode:ctor() end --父...
local t = require 'datasets/transforms' local M = {} local LungROIDataset = torch.class('resnet.LungROIDataset', M) function LungROIDataset:__init(imageInfo, opt, split) assert(imageInfo[split], split) self.imageInfo = imageInfo[split] self.split = split end function LungROIDataset:get(i) local image = ...
fileSystem = fs _G.os = {} if _G.isDisk then fileSystem = computer:getFloppyFs(_G.diskIndex) end function os.loadLibrary(lib) local content = fileSystem:readFile("lib/"..lib..".lua") local func, err = load(content) if func then local ok, i = pcall(func) if not ok then prin...
local L = Apollo.GetPackage("Gemini:Locale-1.0").tPackage:NewLocale("Gear_Armory", "enUS", true) if not L then return end L["GP_FLAVOR"] = "Export 'Gear' profile to 'Wildstar Armory'." L["GP_O_SETTINGS"] = "Wildstar Armory" L["GP_ARMORY_INFO"] = "Click the 'Copy' button to export this profile to 'Wild...
-- TODO: make not shit if SERVER then local time = {} hook.Add("KeyPress", "sbv_afktimer", function(ply, key) time[ply] = 0 end) timer.Create("sbv_afktimer", 1, 0, function() for k, ply in pairs(player.GetAll()) do time[ply] = (time[ply] or 0)+1 ply:SetNWInt("sbv_afktimer", time[ply]) end end)...
package.path = package.path..';.luarocks/share/lua/5.2/?.lua;.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath..';.luarocks/lib/lua/5.2/?.so' redis = require("redis") redis = redis.connect('127.0.0.1', 6379) function dl_cb(arg, data) end function get_admin () if redis:get('TGADS-IDadminset') then r...
ti9_effect = class({}) function ti9_effect:GetDuration() return -1 end function ti9_effect:GetEffectName() return "particles/econ/events/ti9/ti9_emblem_effect.vpcf" end function ti9_effect:GetEffectAttachType() return PATTACH_ABSORIGIN_FOLLOW end function ti9_effect:AllowIllusionDuplicate() return t...
local playsession = { {"remarkablysilly", {1639092}}, {"Freakneek", {2521251}}, {"BlkKnight", {1149670}}, {"Kleticx", {194902}}, {"cogito123", {1569234}}, {"OmegaLunch", {4676175}}, {"Foldi", {1451947}}, {"avatarlinux", {783438}}, {"ManuelG", {888579}}, {"hommedelaroche", {1717658}}, {"KIRkomMAX", {326287}},...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local package = script.Parent.Parent local packages = package.Parent local Maid = require(packages:WaitForChild("maid")) return function (coreGui) local maid = Maid.new() local module = require(script.Par...
local AddonName, AddonTable = ... AddonTable.trade = { 52078, 52325, 52326, 52327, 52328, 52329, 69237, }
-- made by ELF#0001 <- my discord -- -- 3dme made by Elio -- -- wfc settings -- local duffle = true -- do not use wip not working -- change if you dont want weapons out of a duffle-bag -- list of weapons to be taken out of a car bigweaponslist = { "WEAPON_MICROSMG", "WEAPON_MINISMG", ...
Jobs = {} CJob = {} function CJob:constructor(iID, sName, sKoords) self.ID = iID self.Name = sName self.Koords = sKoords Jobs[self.ID] = self end function CJob:destructor() end addEvent("onClientRequestJobs", true) addEventHandler("onClientRequestJobs", getRootElement(), function() triggerClientEvent(cli...
return function(state, player) local playerKey = "player_"..player.UserId if not state.players then return end return state.players[playerKey] end
local Computicle = require("Computicle"); local comp = Computicle:createFromFile("DaytimeServer.lua"); comp:waitForFinish();
local screenX, screenY = guiGetScreenSize( ) function showUniformUI( faction ) local skins = nil if ( faction == 1 ) then -- LSPD skins = { 280, 281, 265, 211, 285, 284 } elseif ( faction == 2 ) then -- LSFD skins = { 277, 278, 279, 274, 275, 276 } end if ( not isElement(uniformWin) ) then loca...
require("@vue/compiler-dom") require("@vue/compiler-dom/NodeTypes") require("compiler-ssr/src/ssrCodegenTransform") require("compiler-ssr/src/runtimeHelpers") local ssrTransformFor = createStructuralDirectiveTransform('for', processFor) function ssrProcessFor(node, context) local needFragmentWrapper = #node.children...
local composer = require("composer") local scene = composer.newScene() function scene:show( event ) local sceneGroup = self.view local phase = event.phase if ( phase == "will" ) then display.newRoundedRect(sceneGroup, display.contentCenterX, 50, display.actualContentWidth, 100, 10):setFillColor(un...
SWEP.Base = "weapon_fw_base" SWEP.PrintName = "Item Ejector" SWEP.Primary.ClipSize = 5 SWEP.Primary.DefaultClip = 100 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "357" SWEP.Secondary.ClipSize = -1 SWEP.Secondary.DefaultClip = -1 SWEP.Secondary.Automatic = false SWEP.Secondary.Ammo = "357" ...
cpphttplib = { source = path.join(dependencies.basePath, "cpp-httplib"), } function cpphttplib.import() cpphttplib.includes() end function cpphttplib.includes() includedirs { cpphttplib.source } end function cpphttplib.project() project "cpp-httplib" language "C++" cpphttplib.includes() warnings "Off"...
local t = require "tests.luaunit" -- Device Files module tests local userdata = require "openLuup.userdata" TestUserData = {} function TestUserData:test_save_load () -- test save -- local scene = {user_table = function () return {a=1, b= 2, c = "42"} end} -- local x = {rooms = {"room1", nil, "room3"}, scenes =...
require("ak.core.eep.EepSimulator") EEPSaveData(1, 0) -- Speichere den Zähler auf 0 - muss vor dem Skript aufgerufen werden -- Laden das Haupt-Skripts require("ak.demo-anlagen.testen.Andreas_Kreuz-Lua-Testbeispiel-main") assert(1 == EEPMain()) -- EEPMain muss 1 zurückgeben! assert (4 == EEPGetSignal(1)) -- Der Zaeh...
os.loadAPI("button") m = peripheral.wrap("left") m.clear() rednet.open("bottom") local page = 1 local pages = 0 local names = {} local turtles = {} local remove = false local prankActive = true local prankNames = {"Soaryn", "Lord_of_2012" } --Who you want to prank local PlayersInRange = {} local sens = peripheral.wrap(...
data:extend({ { type = "bool-setting", name = "AA_enable-SSP4Plutonium", setting_type = "startup", default_value = false, order = "a-a" }, { type = "bool-setting", name = "AA_enable-UraniumExtraction", setting_type = "startup", default_value = false, order = "a-bc" }, { type = "st...