content
stringlengths
5
1.05M
--[[------------------------------------------------------------------ Weapon icons rendering. ]]-------------------------------------------------------------------- GSRCHUD.weapon = {} -- namespace local BUCKET = 'bucket' local MISSING_ICON = '%s icon' local DEFAULT_ALPHA = 255 --[[-------------------------------...
-- {"Description", OrderType, 'UnitID'}, -- entry 1 is a description text not used by code -- entry 2 is the order given to this unit (1 for move, 2 for attack move, 3 for patrol) -- entry 3 is the blueprint id and can be added multiple times as needed -- when a unit table is randomly selected for spawn ONE unit from ...
for index, force in pairs(game.forces) do local technologies = force.technologies local recipes = force.recipes if recipes["burger"].enabled then recipes["burger"].enabled = false end if technologies["burger"].researched then recipes["burger"].enabled = true end end
description = [[ Tries to identify the physical location of an IP address using the Geobytes geolocation web service (http://www.geobytes.com/iplocator.htm). The limit of lookups using this service is 20 requests per hour. Once the limit is reached, an nmap.registry["ip-geolocation-geobytes"].blocked boolean is set so ...
local Robase = require(script.Robase) local HttpService = game:GetService("HttpService") local RobaseService = { } RobaseService.BaseUrl = nil RobaseService.AuthKey = nil RobaseService.__index = RobaseService local function fixTrailingSlashes(url) local foundTrailingSlashes = url:match("/+$") url = foundTrai...
if not modules then modules = { } end modules ['back-pdf'] = { version = 1.001, comment = "companion to back-pdf.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- we could do \pdfmatr...
#!/usr/bin/env tarantool local test = require("sqltester") test:plan(6) --!./tcltestrunner.lua -- 2008 August 12 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive o...
-- Copyright (c) 2016 John Schember <john@nachtimwald.com> -- -- 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, ...
-- Copyright (C) 2016 Gernot Riegler -- Institute for Computer Graphics and Vision (ICG) -- Graz University of Technology (TU GRAZ) -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- 1. Redistributions of source code m...
CurrentCops = 0 RegisterNetEvent('police:SetCopCount') AddEventHandler('police:SetCopCount', function(amount) CurrentCops = amount end) -- Code function DrawText3D(x, y, z, text) SetTextScale(0.35, 0.35) SetTextFont(4) SetTextProportional(1) SetTextColour(255, 255, 255, 215) SetTextEntry("STRING...
-- local PlayerCount = 0 -- local list = {} -- RegisterServerEvent("train:playerActivated") -- function ActivateTrain() -- if (PlayerCount) == 1 then -- TriggerClientEvent("Trainroute", GetHostId()) -- else -- SetTimeout(15000, ActivateTrain) -- end -- end -- AddEventHandler( -- "train:playerActivate...
local StateBase = require(script:GetCustomProperty("StatesStateBase")) local SPRINT_KEY = script:GetCustomProperty("SprintKey") local NewState = {} NewState.__index = NewState setmetatable(NewState, StateBase) NewState.KeyBinding = nil NewState.name = "Walk" NewState.weaponSwapEvent = nil NewState.UpdateEquipment = ...
Config = {} Config.Locale = 'en' Config.Accounts = { bank = _U('account_bank'), black_money = _U('account_black_money'), money = _U('account_money') } Config.StartingAccountMoney = {bank = 50000} Config.EnableSocietyPayouts = false -- pay from the society account that the player is employed at? Requirement: esx_s...
-- totally new universal neural network; version 04; 2020-12-29 -- license: MIT https://opensource.org/licenses/MIT -- Copyright 2020 darkfrei -- 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 Softw...
local cluster_devices = assert(yatm.cluster.devices) local cluster_energy = assert(yatm.cluster.energy) local FluidStack = assert(yatm.fluids.FluidStack) local FluidUtils = assert(yatm.fluids.Utils) local FluidMeta = assert(yatm.fluids.FluidMeta) local fluid_registry = assert(yatm.fluids.fluid_registry) local combusti...
return { id = 79, furnitures_1 = { { id = 79306, parent = 0, y = 12, dir = 1, x = 24, child = {} }, { id = 79307, parent = 0, y = 14, dir = 1, x = 24, child = {} }, { id = 79116, parent = 0, y = 14, dir = 1, x = 15, child = {} }, { id = 79123, ...
Rotator = ScriptObject() function Rotator:Start() print("iniciando el scrip") end function Rotator:SetRotationSpeed(var) print(var) end function Rotator:Update(timeStep) print("este es el bucle de actualizacion") end
----------------------------------- -- Area: King Ranperres Tomb -- NM: Cemetery Cherry -- !pos 33.000 0.500 -287.000 190 ----------------------------------- local ID = require("scripts/zones/King_Ranperres_Tomb/IDs") require("scripts/globals/titles") ----------------------------------- function spawnSaplings() ...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local common = ReplicatedStorage.common local util = common.util local lib = ReplicatedStorage.lib local component = script:FindFirstAncestor("component") local Dictionary = require(util.Dictionary) local Roact = require(lib.Roact) local ScreenScaler = r...
local file = io.open("minified.lua", "r") local data = file:read("*a") file:close() local lzss = require("lzss") local file = io.open("cyan.comp", "w") file:write(lzss.getSXF(lzss.compress(data), true))
local BasePlugin = require "kong.plugins.base_plugin" local JSON = require "kong.plugins.middleware-plugin.json" local string_format = string.format local kong = kong local error = error local CheckPermissionsHandler = BasePlugin:extend() CheckPermissionsHandler.VERSION = "1.0.0" CheckPermissionsHandler.PRIORITY =...
-- -- Please see the license.html file included with this distribution for -- attribution and copyright information. -- function action(draginfo) local aParty = {}; for _,v in pairs(window.list.getWindows()) do local rActor = ActorManager.getActor("pc", v.link.getTargetDatabaseNode()); if rActor then ...
--[[ Copyright 2019 Manticore Games, Inc. 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, distrib...
-- all icons collections in webp format wpkconf = { -- result package name label = "hms-all", -- default skin ID if nothing was selected defskinid = "neon", -- default icons collection ID if nothing was selected deficonid = "junior", } -- enable/disable progress log logrec = false logdir = false dofile(path.j...
----------------------------------- -- Area: Qufim Island -- Mob: Dancing Weapon -- Note: PH for Trickster Kinetix ----------------------------------- local ID = require("scripts/zones/Qufim_Island/IDs") require("scripts/globals/mobs") ----------------------------------- function onMobDeath(mob, player, isKiller) end...
-- Copyright (c) 2015-2016, r. brian harrison. All rights reserved. local LIB_NAME = "InstanceLocations-1.0" assert(LibStub, string.format("%s requires %s", LIB_NAME, "LibStub")) -- inlined: -- local MapMap = LibStub:GetLibrary("MapMap-1.0") -- assert(MapMap, string.format("%s requires MapMap-1.0", LIB_NAME))...
MapFramework = MapFramework or BeardLib:Class(FrameworkBase) MapFramework._loaded_instances = {} MapFramework._ignore_detection_errors = false MapFramework._ignore_folders = {backups = true, prefabs = true} MapFramework._directory = BeardLib.config.maps_dir MapFramework.type_name = "Map" MapFramework.menu_color = Color...
return {'bulgaar','bulgaars','bulgaarse','bulgarije','bul','bulderaar','bulderbaan','bulderbast','bulderen','bulderlach','bulderstem','buldog','bulgur','bulhond','bulk','bulkboek','bulkcarrier','bulkchemicalien','bulkchemie','bulken','bulkgoed','bulkgoederen','bulkleverancier','bulkmarkt','bulkmarkten','bulkomzetten','...
--======================================= -- filename: entities/decorations/f_lamp.lua -- author: Shane Krolikowski -- created: Apr, 2018 -- description: Floor lamp decoration entity. --======================================= local Decoration = require 'entities.decorations.decoration' local FLamp = D...
-- This function defines all compiler options and is called once for debug and once for release function defineCompilerOptions () includedirs ({ _SCRIPT_DIR .. "/include", _SCRIPT_DIR .. "/modules", _SCRIPT_DIR .. "/modules/imgui", _SCRIPT_DIR .. "/modules/imgui/backends", ...
while true do wait() game:GetService("ReplicatedStorage").Events.RebirthEvent:FireServer(1073790) end
CannonSprite = class("CannonSprite", function (...) return BuildingBaseSprite:create(...) end) CannonSprite.TAG = nil CannonSprite.subType = "ATKBuilding" Temple:initBuildingHP(CannonSprite) function CannonSprite:onEnter() self:adjustBarPosition(0, 20) end function CannonSprite:create() local cannonSprite = Can...
local ArrayBuffer = {} ArrayBuffer.__index = ArrayBuffer local ffi = require 'ffi' local gl = eiga.alias.gl() local BUFFER_LENGTH = 1024 -- 256 vertices, 4-component vectors local EFFECT_ATTRIBUTE_STRING = { v = "Position", n = "Normal", c = "Color", t = "TexCoord" } local BUFFER_DATA_TYPE = { i = gl.INT...
-------------------------------------------------------------------------- -- GTFO_Spells_MP.lua -------------------------------------------------------------------------- --[[ GTFO Spell List - Mists of Pandaria Author: Zensunim of Malygos ]]-- -- *************** -- * Scholomance * -- *************** GTFO.SpellID["...
domy={} local function usunDom(id) if isElement(domy[id].wyjscie) then destroyElement(domy[id].wyjscie) end if isElement(domy[id].wejscie) then destroyElement(domy[id].wejscie) end if isElement(domy[id].cs) then destroyElement(domy[id].cs) end if isElement(domy[id].text) then destroyElement(domy[id]...
local PersonalMediator = class("PersonalMediator",BaseMediator) local HeadUI = App.RequireHall("view.personal.HeadUI") local NameUI = App.RequireHall("view.personal.NameUI") function PersonalMediator:OnRegister() end function PersonalMediator:HandleNotification(notification) local name = notification.Name if...
-- Game Over Text local state = require('state') return function() local HALF = 2 local gameOverText = {} gameOverText.draw = function() if state.gameOver then love.graphics.print( {state.palette[4], 'Game Over!'}, love.graphics.getWidth() / HALF, love.graphics.getHeight() / HALF ) end end ...
workspace "Eagle" architecture "x64" startproject "Eagle-Editor" configurations { "Debug", "Release", "Dist" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" IncludeDir = {} IncludeDir["GLFW"] = "Eagle/vendor/GLFW/include" IncludeDir["Glad"] = "Eagl...
local helpers = require('test.functional.helpers')(after_each) local assert_log = helpers.assert_log local clear = helpers.clear local command = helpers.command local eq = helpers.eq local exec_lua = helpers.exec_lua local expect_exit = helpers.expect_exit local request = helpers.request local retry = helpers.retry de...
-- test_gesture.lua local gesture_ffi = require("gesture_ffi")
local sys = require "sys" local math = require "math" local table = require "table" local base = _G module("scramble") function scramble(text) local all_breaks = '/.-{}()[]<>|,;!?' local breaks = {} for idx = 1, #all_breaks do breaks[all_breaks:sub(idx, idx)]=true end -- print(#breaks) ...
requests = require 'requests' json = require 'cjson' payload = json.encode({ name = '', value = "<p>Test", pos = 0, description = '', }) payload = {name = '', type= 'html', value = "<p>Test", pos = 0, description = ''} -- print(payload) app_url = 'http://localhost:3000/api/v1/values' r = requests.pos...
local qr_TipsItem = require("view/kScreen_1280_800/hall/gameData/QRUtil/qr_TipsItem") local QRTipsItem = class(CommonGameLayer, false) QRTipsItem.s_RefuseTimer = 2000 local h_index = 0 local getIndex = function(self) h_index = h_index + 1 return h_index end QRTipsItem.s_controls = { icon = g...
require "Secretary" function love.update( dt ) -- Regulate the framerate to 60 fps local targetTime = love.timer.getTime() + (1/60 - dt) while love.timer.getTime() < targetTime do end -- Call step-based events rootSecretary:onPrePhysics() rootSecretary:onPhysics() rootSecretary:onPostPhysics() ro...
ENT.Base = "base_ai" ENT.Type = "ai" ENT.PrintName = "" ENT.Author = "" ENT.Contact = "" ENT.Purpose = "" ENT.Instructions = "" ENT.Category = "" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.AutomaticFrameAdvance = true function ENT:OnRemove() end function ENT:PhysicsCollide( data, physobj...
-- This software is copyright Kong Inc. and its licensors. -- Use of the software is subject to the agreement between your organization -- and Kong Inc. If there is no such agreement, use is governed by and -- subject to the terms of the Kong Master Software License Agreement found -- at https://konghq.com/enterpriseso...
return function(world) return function(scene, dt) for entity in pairs(scene:entities_with('add_to_world', 'position', 'size')) do world:add(entity, entity.position.x, entity.position.y, entity.size.width, entity.size.height) entity.add_to_world = nil entity.in_world = true end end end
local K, C = unpack(select(2, ...)) local Module = K:GetModule("ActionBar") local _G = _G local table_insert = table.insert local CreateFrame = _G.CreateFrame local NUM_POSSESS_SLOTS = _G.NUM_POSSESS_SLOTS local NUM_STANCE_SLOTS = _G.NUM_STANCE_SLOTS local RegisterStateDriver = _G.RegisterStateDriver local UIParent =...
require('lspkind').init({ preset = 'default', })
local registeredAreas = {} local playersAreas = {} function API.registerArea(areaId, ...) registeredAreas[areaId] = ... cAPI.RegisterArea(-1, ...) end function API.getPlayersAtArea(areaId) return playersAreas[areaId] or {} end RegisterNetEvent("FRP:AREA:PlayerEnteredArea") RegisterNetEvent("FRP:AREA:Pla...
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local setlang = {} local mattata = require('mattata') local redis = require('libs.redis') local json = require('dkjson') function setlang:init() setlang.commands = mattata.comm...
local M = {} local animation = {} local function IN(t, o) for _,v in pairs(t) do if v == o then return true end end end function M.to(node, params) local time = assert(params.time) local delay = params.delay local on_complete = params.on_complete local attr = {} for k,v in pairs(params) do if not ...
-- LUA bitwise operations: https://www.lua.org/manual/5.2/manual.html#6.7 -- constants local sid_dict_description = { [0x01] = "Show current data", [0x02] = "Show freeze frame data", [0x03] = "Show stored Diagnostic Trouble Codes", [0x04] = "Clear DTC (Emission related ECUs)", [0x05] = "Test Results...
mc_biomes = {} -- Parameters local REALM1_DEPTH = -4700 local TCAVE = 0.6 local nobj_cave = nil -- 3D noise local np_cave = { offset = 0, scale = 1, spread = {x = 384, y = 128, z = 384}, -- squashed 3:1 seed = 59033, octaves = 5, persist = 0.7 } -- Nodes minetest.register_node("mc_biomes:portal2", { descri...
describe("Prototype shallow version", function() local prototype = nil; setup(function() prototype = require("../prototypeShallow"); end) it("should shallow copy objects", function() local sharedValue = 10; local sharedValueModified = 123; local proto = prototype:new() proto.val = sharedVal...
--Created by Krock for the BitChange mod -- Something like a chest...experimental, have fun! --License: WTFPL function get_warehouse_tube_config(mode) if(bitchange.warehouse_pipeworks) then if(mode == 1) then return {cracky=1, level=2, tubedevice=1, tubedevice_receiver=1} else return { insert_object =...
-- -- -- ---------------------------------------------------------- -- Mosaic | OF Visual Patching Developer Platform -- -- Copyright (c) 2020 Emanuele Mazza aka n3m3da -- -- Mosaic is distributed under the MIT License. -- This gives everyone the freedoms to use Mosaic in any context: -- commercial or non-commercial, p...
if select(1,...) and select(1,...) == "-?" then printUsage("appdata","Open LIKO-12 appdata folder in the host os explorer") return end openAppData("/")
--[[ -- Copyright(c) 2018-2025, All Rights Reserved -- Created: 2018/12/21 -- -- @file l_on_exit.lua -- @brief 内置公共函数"l_on_exit", 只被内置在 llua主线程中 -- @version 0.1 -- @author 李绍良 -- @history 修改历史 -- \n 2018/12/21 0.1 创建文件 -- @warning 没有警告 --]] -- @brief 当系统在任何情况下的退出回调函数 -- @param [in] cb[function] 回调函数 -- @note ...
--[[ Copyright (c) 2009 Peter "Corsix" Cawley 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, dis...
--// Russian localization //-- local addon, ns = ... local L = ns.L if GetLocale() == "ruRU" then -- optionpanel general (or used across multiple panels) L["module Options"] = "module Options" L["Preview"] = "Preview" L["texture"] = "Texture" L["height"] = "Height" L["width"] = "Width" L["PosX"] = "PosX" L["...
----------------------------------- -- Area: Phomiuna_Aqueducts -- NPC: _0r9 (Ornate Gate) -- !pos 139.000 -25.500 60.000 27 ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) if player:getCharVar('X_MARKS_THE_SPOT') == 4 then player:startEvent(37) ...
require("config") require("framework.init") -- define global module game = {} game.DragonBonesDemo = require("DragonBonesDemo") game._DEMOS= { require("demos.DragonDemoEntry"), } function game.startup() CCFileUtils:sharedFileUtils():addSearchPath("res/") game._curDemo = 1 game._demoCount = #game._DEMOS ...
require "MQTTDevice" local temperature=0 local humidity=0 local pressure=0 local DHT_Pin=1 local BMP_SDA=5 local BMP_SCK=6 local device=MQTTDevice:new("WeatherStation","0001","user1","pwd") function init() device.debug=true device.properties["temprature"]={type="s"} device.properties["temprature"].r...
-- @Author: Ritesh Pradhan -- @Date: 2016-04-10 18:23:52 -- @Last Modified by: Ritesh Pradhan -- @Last Modified time: 2016-04-21 14:32:42 local physics = require("physics") local newBullet = require("classes.bullet").newBullet local collisionFilters = require('libs.collisionFilters') local _M = {} function _M.ne...
local div; local rank; local ITEM; for x = 0, (noOfDivisions - 1) do div = Division[x]; for y = 0, (noOfRanks - 1) do rank = Ranks[y]; if(!Clockwork.item:FindByID(div.."_"..rank.."_Uniform")) then ITEM = Clockwork.item:New("clothes_base"); ITEM.name = div.." "..rank.." Uniform"; else ITEM = Clockwork.i...
if redis.call("EXISTS", KEYS[1]) == 1 then local payload = redis.call("GET", KEYS[1]) return cmsgpack.unpack(payload)[ARGV[1]] else return nil end
-- Constant text local VERSION_STR = "v1.0.1" local AUTHOR = "Jaamosan" -- Localizable text local ADDON_NAME = "TitleLink" local DESCRIPTION = "Allows linking of titles from default UI" local ERROR_HOOK_TITLE_FRAME = ADDON_NAME.." error: cannot hook title frame" local ERROR_HOOK_CHAR_SHEET = ADDON_NAME.." error: c...
--[[ Name: "sh_hooks.lua". Product: "HL2 RP". --]] kuroScript.game.defaultWeapons = { ["weapon_357"] = 7, ["weapon_ar2"] = 7, ["weapon_smg1"] = 6, ["weapon_pistol"] = 5, ["weapon_shotgun"] = 8, ["weapon_crossbow"] = 8 }; -- Called when kuroScript has loaded all of the entities. function kuroScript.game:KuroScri...
require "scripts.variables.attributes" return CreateAttribute("agility")
local mycache = require("resty_lrucache") local count = mycache.get("count") or 0 count = count + 1 mycache.set("count", count, 10 * 60 * 60) --10分钟 ngx.say(mycache.get("count"))
local a, b a, b = a and b, a or b a, b = a or b, a and b a, b = b and a, b or a a, b = b or a, b and a a, b = x and y, x or y
net.Receive("GovBadgeID:UI", function() local ent = net.ReadEntity() local frame = XYZUI.Frame("Government Badge ID", GovBadgeID.Config.Color) frame:SetSize(ScrH()*0.6, 200) frame:Center() local shell = XYZUI.Container(frame) shell:DockPadding(10, 5, 10, 10) -- Get the user XYZUI.PanelText(shell, "N...
-- Copyright 2019 Xingwang Liao <kuoruan@gmail.com> -- Licensed to the public under the MIT License. local nixio = require "nixio" local util = require "luci.util" local json = require "luci.jsonc" local sys = require "luci.sys" local uci = require "luci.model.uci".cursor() module("luci.model.v2ray", package.seeall) ...
local Flux = require("lib.flux") local Timer = require("lib.timer") local Vector = require("lib.vector") local State = require("src.state") local Logo = require("src.logo") local Sequence = {} function Sequence.init(paddleUp, paddleLeft, paddleDown, paddleRight, ball, track, hits) Sequence.paddles = {} Sequ...
-- window.getVisibleBounds -- window.getVisibleSize -- window.getFrameSize -- window.setFrameSize -- window.getDesignSize -- window.setDesignSize -- window.convertToCameraSpace return require("cclua.window")
local BasePlugin = require "kong.plugins.base_plugin" local responses = require "kong.tools.responses" local HttpFilterHandler = BasePlugin:extend() function HttpFilterHandler:new() HttpFilterHandler.super.new(self, "http-to-https-redirect") end function HttpFilterHandler:access(conf) HttpFilterHandler.super.acc...
local ObjBase = require "ObjBase" local ObjSlope = Class.create("ObjSlope", ObjBase) function ObjSlope:create() self:addModule(require "modules.ModPhysics") self:addModule(require "modules.ModSpeedZone") self:createBody( "kinematic" ,true, false) self.shape = love.physics.newRectangleShape(self.width,self.height...
max_wanted = { community = 2, law = 1, criminal = 7 } jobRanks = { ['criminal'] = { [0] = "L.G", [50] = "L.Y.G", [75] = "Y.G", [120] = "OYG", [200] = "O.G", [310] = "G.C.L", [499] = "G.L", }, ['police officer'] = { [0] ="Officer", ...
-- ----------------------------------------------------------------------------- -- Parse -- ----------------------------------------------------------------------------- describe('Comment.parse', function() spec('short comments', function() assert.are.equal(' hello world', parse.Comment('-- hello world').value)...
local Runner = require("tests.indent.common").Runner -- local XFAIL = require("tests.indent.common").XFAIL local run = Runner:new(it, "tests/indent", { tabstop = 2, shiftwidth = 2, softtabstop = 0, expandtab = true, filetype = "javascript", }) describe("indent JavaScript:", function() describe("whole file...
#!/usr/bin/env lua -- require 'dbg' local SER_DEV = '/dev/ttyUSB0' local MSG_LEN_HEX = 460 local MSG_LEN_BIN = 288 local SML_START_SEQUENCE = '1B1B1B1B0101010176' function StringBytesToNumber(str) local hextxt = '' local len = #str for i = 1,len do ttt...
local behaviortree = {} -- a simple module that initialises the behavior tree specific to this project function behaviortree.EstablishTree() -- these functions take a 'agent' which is a table with properties e.g. agent.stamina -- functions will activate if some agent property meets a specified condition -- low p...
--[[ Copyright (C) 2018 Masatoshi Teruya 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, publis...
-- shelves/init.lua -- support for Minebase translation. local S = minetest.get_translator("shelves") local function update_bookshelf(pos) local meta = minetest.get_meta(pos) local invlist = meta:get_inventory():get_list("books") local sum_written, sum_empty = 0, 0 for _, stack in ipairs(invlist) do local met...
DEFINE_BASECLASS("base_wire_entity") -- Required to get the local BaseClass AddCSLuaFile("shared.lua") AddCSLuaFile("cl_init.lua") include("shared.lua") local ACF = ACF local Network = ACF.Networking function ENT:GetOriginalSize() local Data = self.ScaleData return Data:GetSize() end do -- Size and scale se...
--- --- @author Dylan MALANDAIN --- @version 2.0.0 --- @since 2020 --- --- RageUI Is Advanced UI Libs in LUA for make beautiful interface like RockStar GAME. --- --- --- Commercial Info. --- Any use for commercial purposes is strictly prohibited and will be punished. --- --- @see RageUI --- function math.round(num, n...
local L = GetLocale(): sub(1, 2) if L == 'en' then Ludwig_Items = { { { [18] = { [2] = { [0] = "0GGSSoul Pouch", }, [3] = { [0] = "0GGTFelcloth Bag_0GCQD'Sak's Big Sack_0GCRD'Sak's Sacktastic_0GCPD'Sak's Sack_0GG1D'Sak's Small bag", }, }, }, -- [1] { [18] = { ...
local telescope = require('telescope') telescope.setup({ -- Дефолтная конфигурация defaults = { prompt_prefix = '>> ', selection_caret = '▶ ', }, -- Расширения extensions = { -- Быстрый поиск с помощью fzy fzy_native = { override_generic_sorter = true, override_file_sor...
local m = {} local ba = require("flatbuffers.binaryarray") local bpack = ba.Pack local bunpack = ba.Unpack local type_mt = {} function type_mt:Pack(value) return bpack(self.packFmt, value) end function type_mt:Unpack(buf, pos) return bunpack(self.packFmt, buf, pos) end function type_mt:ValidNumber(n)...
local caps = require('st.capabilities') local utils = require('st.utils') local neturl = require('net.url') local log = require('log') local json = require('dkjson') local http = require('socket.http') local ltn12 = require('ltn12') local command_handler = {} function command_handler.new(_, device) local token = co...
-- hierarchy -- created on 2021/8/25 -- author @zoloypzuo local PanelWindow = require("ui.panel_window") local InputText = require("ui.widgets.input_text") local TreeNode = require("ui.layouts.tree_node") local DDTarget = require("ui.plugins.ddtarget") local DDSource = require("ui.plugins.ddsource") local HierarchyCon...
script.Parent.Head.Touched:connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player ~= nil then if player:WaitForChild("OwnsTycoon").Value == false then if script.Parent.Parent.Parent.Owner.Value == nil then if hit.Parent:FindFirstChild("Humanoid") then if hit.Paren...
Plugin.HasConfig = false -- Plugin.ConfigName = "rotatingeggspawns.json" local pityEggGivenWhen = {} function Plugin:ClientConfirmConnect(client) end -- function Plugin:CreateCommands() -- local killAllEggsCommand = self:BindCommand( "sh_killalleggs", nil, function(client) -- local eggs = GetEntitiesForTeam("Egg"...
function start (song) print("successfully played song Jeez") end function update (elapsed) tweenCameraZoom(1,(crochet * 4) / 1000) end function beatHit (beat) end function stepHit (beat) if curStep == 256 then resizeWindow(getScreenWidth(), getScreenHeight()) setWindowPos(0, 0); end ...
expose('Tests expose from file root', function() pl = require 'pl' _G.global_var = 'this global is in _G' it('loads global environment with "List"', function() assert.is_not_nil(pl) assert.is_not_nil(List) end) end)
function doesVehicleHaveNeon(vehicle) if vehicle and getElementType(vehicle) == "vehicle" and getElementData(vehicle, "neon") then local neons = getElementData(vehicle, "neon:neons") if neons and type(neons) == "table" then return true end end return false end function removeNeon(vehicle) if doesVehicle...
----------------------------------- -- Area: Silver_Sea_route_to_Al_Zahbi -- NPC: Shadeeu -- Notes: Tells ship ETA time -- !pos 0.340 -12.232 -4.120 58 ----------------------------------- local ID = require("scripts/zones/Silver_Sea_route_to_Al_Zahbi/IDs") require("scripts/globals/transport") -------------------------...
local vim = vim local uv = vim.loop local Job = {} Job.__index = Job local function close_safely(handle) if not handle:is_closing() then handle:close() end end local shutdown_factory = function (child) return function(code, signal) child:shutdown(code, signal) end end --- Create a new job --@param ...
local PartialIdWidth = 23 local RunService = game:GetService("RunService") local IsRunning = RunService:IsRunning() local IsServer = RunService:IsServer() --[[ Entity Masking: D = Domain V = Version I = Partial ID P = Pointer I+D = Entity ID VERSION ENTITY ID |-------| |---------------------------| VVV...