content
stringlengths
5
1.05M
function requestPlayerData(plr) local ip = plr.ip or "N/A" local serial = plr.serial or "N/A" if (isPlayerAdmin(plr)) then if (isPlayerOwner(plr) and not isPlayerOwner(client)) then ip = "Hidden" serial = "Hidden" end end local version = plr.version or "N/A" local bank = exports.UCDaccounts:GAD(plr, "bankbalanc...
--|> SIMPLEX | Easy-to-use interaction system <|-- -- ShutoExpressway -- Registers global variables for the client. -- Side note: _G IS NOT BAD IN MOST CASES WeirdChamp local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local SIMPLEX_FOLDERS = { shared = Replic...
local endlesstower = { [100] = {ID=100,Number=1,Monster="300101;300102;",Reward="",Money=100,BUFF=0,Trap=0,Map=0,Quantity=5}, [101] = {ID=101,Number=2,Monster="300201;",Reward="",Money=100,BUFF=0,Trap=0,Map=0,Quantity=5}, [102] = {ID=102,Number=3,Monster="300301;300302;",Reward="",Money=100,BUFF=0,Trap=0,Map=0,Quantity...
local att = {} att.name = "md_cz52silver" att.displayName = "Silver and Black" att.displayNameShort = "Silver" att.isBG = true att.statModifiers = {} if CLIENT then att.displayIcon = surface.GetTextureID("atts/md_cz52silver") end function att:attachFunc() if SERVER then return end if self.CW_VM then self.CW...
require('utils') local image = require("../image") local item = require("../item") return { name = "Meet a cat", amount = 5, weight = 0.1, condition = function (state) return not (table.contains(state.items, item.cat)) and state.coins >= 5 end, description = "How cute, a furry little brown cat is purri...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: gui_highlight_unit.lua -- brief: highlights the unit/feature under the cursor -- author: Dave Rodgers -- -- Copyright (C) 2007. -- Lice...
minetest.register_on_newplayer(function(player) local pos = player:get_pos() minetest.add_item(pos, "nodes:rail_straight 99") minetest.add_item(pos, "nodes:rail_turn 99") minetest.add_item(pos, "minecart:minecart 99") end) --potential: minecarts pushing minecarts, minecart trains, furnace minecart local mine...
fx_version 'bodacious' game 'gta5' author 'Badland v3.0 - E&G Vendas' contact 'Edu#6055 or https://github.com/badlandproject' version '1.0.0' ui_page 'nui/badland.html' client_scripts { 'client-side/*.lua' } server_scripts { 'server.lua' } files { 'nui/badland.html', 'nui/badland.js', '...
-- Code by LucasL.#1024 -- coded for LifeV Config, Locale = {}, {} Config.locale = "de" -- Command Config.Cmd = "startdelvehicles" -- ESX ja/nein Config.ESX = true -- Set this to true if you use ESX -- Wird nicht bei ESX benötigt, ESX greift auf die Gruppen zu (superadmin, admin etc.) -- Admin Lists: steam: |...
SWEP.Base = "arccw_base" SWEP.Spawnable = true -- this obviously has to be set to true SWEP.Category = "ArcCW - Black Ops II" -- edit this if you like SWEP.AdminOnly = false SWEP.PrintName = "Saiga 12K" SWEP.Trivia_Class = "Combat Shotgun" SWEP.Trivia_Desc = "12 gauge semi automatic combat shotgun based on the AK plat...
--// IDU Module Script --// Script:
local api = vim.api local function get_standup_content(daysBack) daysBack = daysBack or 1 local result = vim.api.nvim_command_output('!git standup -c -d ' .. daysBack) result = vim.split(result, '\n') for i, line in ipairs(result) do result[i] = string.gsub(line, '\\n', '') end return result end loc...
object_mobile_dressed_dark_jedi_elder_male_rodian_02 = object_mobile_shared_dressed_dark_jedi_elder_male_rodian_02:new { } ObjectTemplates:addTemplate(object_mobile_dressed_dark_jedi_elder_male_rodian_02, "object/mobile/dressed_dark_jedi_elder_male_rodian_02.iff")
local util = require 'xlua.util' App = CS.FairyEditor.App ProjectType = CS.FairyEditor.ProjectType fprint = function(msg) App.consoleView:Log(tostring(msg)) end function printLeakingReferences() local str = 'These references from Lua to C# have not been released: \n' local registry = debug.getregistry() ...
local unionfind, sizekey = {}, {} local tree = require "tree" or error ("unionfind module requires tree", 2) local meta = {__index = unionfind} function meta.__len (t) return t[sizekey] end local metaset = {__len = function(t) return t.size end} local function setnew(v) local r = {rank = 0, size = 1} local t ...
object_ship_ixiyen_s03_tier10 = object_ship_shared_ixiyen_s03_tier10:new { } ObjectTemplates:addTemplate(object_ship_ixiyen_s03_tier10, "object/ship/ixiyen_s03_tier10.iff")
-- OpenComputers Lib local cm = require("component") local os = require("os") -- My Lib local EventLoop = require("lib/event_loop") -- Components local gpu = cm.gpu -- Internal Variables local buttons = {} local max_x, max_y = gpu.maxResolution() -- Functions local function create_button(id, callback, x1, y1, x2, y...
return { name = "Magicks/tourmaline-framework", version = "0.1.0", dependencies = { 'SinisterRectus/discordia@2.0.0-indev' }, tags = {'discord'}, license = 'MIT', author = 'Magicks', files = {'**.lua'} }
require('abilities/invoker_base/invoker_base') function invoker_wex_datadriven_on_spell_start(keys) invoker_replace_orb(keys, "particles/units/heroes/hero_invoker/invoker_wex_orb.vpcf") end
object_tangible_quest_jawa_droid_r4_powerdown = object_tangible_quest_shared_jawa_droid_r4_powerdown:new { } ObjectTemplates:addTemplate(object_tangible_quest_jawa_droid_r4_powerdown, "object/tangible/quest/jawa_droid_r4_powerdown.iff")
--[[ Script for testing a human activity estimator. Available/valid datasets: UCF Sports Action. --]] require 'paths' require 'torch' require 'string' require 'optim' local tnt = require 'torchnet' local Logger = optim.Logger --------------------------------------------------------------------------------...
--[[ Copyright (c) 2016 by Marco Lizza (marco.lizza@gmail.com) This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including...
-- -- created with TexturePacker (http://www.codeandweb.com/texturepacker) -- -- $TexturePacker:SmartUpdate:eb673e0a4c7c2ba5196c6a10c06fb10f:21555c5bf2b2d178c8166fbd454d81c4:18cc0faedb801f0310f07fa32ca9fcf5$ -- -- local sheetInfo = require("mysheet") -- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI...
chung_ryongs_rage = { cast = function(player) if (not player:canCast(1, 1, 0)) then return end local aethers = 120000 local duration = 938000 if player.gmLevel ~= 0 then aethers = 0 end player:removeDuras(lesserFuries) if (player:hasDuration("chung_ryongs_rage") == true and player.rage == 8) ...
errinj = box.error.injection fiber = require('fiber') -- During this test we verify that if dump process is throttled -- due to error, DDL operations in window between dumps won't -- break anything. -- s = box.schema.space.create('test', {engine = 'vinyl'}) _ = s:create_index('pk') errinj.set('ERRINJ_VY_RUN_WRITE', t...
return {'ersatz','ersatzkoffie','ersoy'}
local gc = collectgarbage local SysTime = SysTime local limit, die = 1 / 300, 0, 0 local create, yield, resume = coroutine.create, coroutine.yield, coroutine.resume local timerCreate = timer.Create local running = false local function _gc() while gc('step', 1) do if SysTime() > die then yield() end end end ...
-- Load and set namespace local addonName, core = ... core.Config = {} local Config = core.Config local f -- Create the config frame function Config:Create() core:Debug("Config: Create") -- Create ConfigFrame f = CreateFrame("Frame", "DutyConfigFrame", UIParent) -- Add to Blizzard Interface Options f.name = "D...
circle = { x=0, y=0} k = math.random() * math.pi function love.draw() love.graphics.shear(k, k) love.graphics.circle("fill", circle.x, circle.y, 2, 20) end function love.mousepressed(nx, ny, button) if button == "l" then circle.y = (ny - nx * k) / (1 - k * k) circle.x = (nx - ny * k) / (1 ...
require 'tclient.tests.single-mode' require 'tclient.tests.library-ignore-limit' require 'tclient.tests.multi-workspace'
local Assert = require("api.test.Assert") local Activity = require("api.Activity") local Feat = require("api.Feat") function test_Activity_create__params_validation() Assert.throws_error(function() Activity.create("elona.searching", {feat=42}) end, "base.activity 'elona.searching' received invalid value for p...
--[[ Name: sv_phone.lua For: TalosLife By: TalosLife ]]-- GM.Phone = {} function GM.Phone:GeneratePlayerNumber( pPlayer ) local saveTable = GAMEMODE.Char:GetCurrentSaveTable( pPlayer ) if not saveTable then return end saveTable.PhoneNumber = util.CRC( pPlayer:SteamID().. pPlayer:GetCharacterID() ) GAMEMODE.SQ...
-- Library for the Helium Atom on-board lps22hb sensor i2c = he.i2c lps22hb = { DEFAULT_ADDRESS = 0x5C, WHO_AM_I = 0x8F, CTRL_REG2 = 0x11, CTRL_REG2_ONESHOT = 0x11, PRESS_OUT_XL = 0x28, TEMP_OUT_L = 0xAB } function lps22hb:new(address) address = address or lps22hb.DEFA...
--[[ Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
vim.g.matchup_matchparen_deferred = 1 vim.g.matchup_matchparen_deferred_hide_delay = 300 vim.g.matchup_matchparen_offscreen = { method = 'popup' }
object_tangible_quest_empire_day_crash_site_05_crate_04_container = object_tangible_quest_empire_day_shared_crash_site_05_crate_04_container:new { } ObjectTemplates:addTemplate(object_tangible_quest_empire_day_crash_site_05_crate_04_container, "object/tangible/quest/empire_day/crash_site_05_crate_04_container.iff")
function Utils:ShowHorseSelection() self.ChooseHorseVisible = true BeginScaleformMovieMethod(self.Scaleform, 'SHOW_SCREEN') ScaleformMovieMethodAddParamInt(1) EndScaleformMovieMethod() end function Utils.AddHorses(scaleform) for i = 1, 6 do local name = Utils.GetRandomHorseName() ...
#!/usr/bin/env lua5.4 local function _split(str, on, set) local ret = {}; local s, e; while str:find(on) do s, e = str:find(on); local result = str:sub(0, s - 1); if set then ret[result] = ""; else table.insert(ret, result); end ...
-- Run this Lua script from the project root. local lxsh = require 'lxsh' local delete_intermediates = true local function readfile(path) local handle = assert(io.open(path)) local data = assert(handle:read '*a') assert(handle:close()) return data end local function writefile(path, data) local handle = ass...
----------------------------------------- -- ID: 4762 -- Scroll of Aero -- Teaches the black magic Aero ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(154) end function onItemUse(target) target:addSpell(154) end
-- -- Created by IntelliJ IDEA. -- User: macbookair -- Date: 20/04/17 -- Time: 14:43 -- To change this template use File | Settings | File Templates. -- local Observable = require("lib.util.observable") GeoLocation = Observable:extend("GeoLocation") local instance = GeoLocation() GeoLocation.instance = instance instan...
-- LuaRocks configuration for use with Lua 5.3 lua_interpreter = "lua5.3" variables = { LUA_DIR = "/usr", LUA_INCDIR = "/usr/include/lua5.3", LUA_LIBDIR = "/usr/lib/x86_64-linux-gnu", LUA_BINDIR = "/usr/bin", }
local Networking = script:GetCustomProperty("Networking"):WaitForObject() local Objects = script:GetCustomProperty("Objects"):WaitForObject() local Triggers = script:GetCustomProperty("Triggers"):WaitForObject() local IceVFX = script:GetCustomProperty("IceVFX") local IceSound = script:GetCustomProperty("IceSound") loc...
return function(rt) --@sec: Style --@def: type Style --@doc: Style manages the properties of an object by applying values according -- to a particular Theme. local Style = {__index={}} --@sec: Style.new --@ord: -1 --@def: Style.new(theme: Theme): Style --@doc: new returns a new Style that applies styles according to *...
-- Load scripts required by this pack ScriptHost:LoadScript("scripts/settings.lua") ScriptHost:LoadScript("scripts/access.lua") ScriptHost:LoadScript("scripts/area.lua") if _VERSION == "Lua 5.3" then ScriptHost:LoadScript("scripts/autotracking.lua") else print("Auto-tracker is unsupported by your tracker ...
data:extend( { { type = "technology", name = "miner-2", icon = "__DyTech-Mining__/graphics/technology/miner.png", effects = { { type = "unlock-recipe", recipe = "basic-mining-drill-mk2" }, { type = "unlock-recipe", recipe = "rotor1" }, ...
-- https://zzamboni.org/post/my-hammerspoon-configuration-with-commentary/ hs.loadSpoon("SpoonInstall") spoon.SpoonInstall.use_syncinstall = true Install=spoon.SpoonInstall Install:andUse("URLDispatcher", { config = { url_patterns = { {"zoom.us/j/", "us.zoom.xos"} -- { "https?://3.basecamp...
local screenWidth, screenHeight = guiGetScreenSize() dxConfig = { color = { ["button"] = { Rectangl = tocolor(0,0,0,100); Rectangl_move = tocolor(0,0,0,100); Line = tocolor(255,255,255,190); Line_move = tocolor(246,194,32,190); Text = tocolor(255,255,255,255); Text_move = tocolor(246,194,32,255);...
function check_if_transport_entity(entity) if (entity.type == "transport-belt" or (entity.type == "entity-ghost" and entity.ghost_type == "transport-belt")) or (entity.type == "underground-belt" or (entity.type == "entity-ghost" and entity.ghost_type == "underground-belt")) or (entity.type == "splitter" or (entity.t...
object_building_content_imperial_theme_park_itp_emperor_merc_bunker = object_building_content_imperial_theme_park_shared_itp_emperor_merc_bunker:new { } ObjectTemplates:addTemplate(object_building_content_imperial_theme_park_itp_emperor_merc_bunker, "object/building/content/imperial_theme_park/itp_emperor_merc_bunker.i...
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- local MYSQL_DATABASE_PROVISION = 2 wOS = wOS or {} wOS.ALCS = wOS.ALCS or {} wOS.ALCS.Character = wOS.ALCS.Cha...
local ffi = require("ffi") local noise = require("noise") local map = { scale = 1; dx = 0; dy = 0; sizeX = 64; sizeY = 64; elevation = ffi.new("float[64][64]") } -- generate noise for i = -1,1, 0.001 do print(noise(i, 0, 0)) end --[[ for x=0,map.sizeX-1 do for y=0,map.sizeY-1 d...
local skynet = require "skynet" local command = {} function command.PING(hello) return hello end function command.HELLO() skynet.sleep(100) return "hello" end function command.EXIT() skynet.exit() end function command.ERROR() error "throw an error" end skynet.start(function() skynet.dispatch("lua", functio...
--this = SceneNode() function destroy() end function create() return false end function update() return false end
-- This is a part of uJIT's testing suite. -- Copyright (C) 2020-2022 LuaVela Authors. See Copyright Notice in COPYRIGHT -- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT ujit.dump.bc()
local InputController = { --plugin = nil } function InputController:init(plugin) self.plugin = plugin end return InputController
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by KK47. --- DateTime: 2019/9/9 22:36 --- ---练习3.1 以下哪些值是有效的数值常量?它们的值分别是多少? -- .0e12 有效 0.0 -- .e12 无效 '.' unexpected -- 0.0e 无效 malformed number near '0.0e' -- 0x12 有效 18 -- 0xABFG 无效 syntax error -- 0xA 有...
-------------------------------------------------------------------------------- -- The base class for all display objects. <br> -- To inherit MOAIPropUtil, you can use the convenience function. <br> -- To inherit EventDispatcher, you can use the event notification. <br> -- <br> -- Use the MOAIProp class. <br> -- By ch...
LibRoot.Sqlite = SrcDir() .. "r0.data/sqlite3" -- ============================================================================== ModuleRefInclude["sqlite3"] = function() includedirs { LibRoot.Sqlite, } defines { "SQLITE_ENABLE_FTS5", "SQLITE_ENABLE_JSON1" } end -- ==========================...
local PackageManager = require 'packagemanager/init' local xrc = require 'packagemanager-gui/xrc' local utils = require 'packagemanager-gui/utils' local Event = require 'packagemanager-gui/Event' local MainView = require 'packagemanage...
include('shared.lua') ENT.OrigMat = "" function ENT:Initialize() self.Entity:StartMotionController() self.Entity:AddToMotionController(self.Entity:GetPhysicsObject()) end function ENT:Think() if !self.OrigMat then self.OrigMat = self.Entity:GetMaterial() end end function ENT:Draw() local myteam = self:...
local lspconfig = require("lspconfig") local on_attach = function(client, bufnr) local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc") -- Mapping...
-- a basic tattooshop implementation local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy") vRPts = {} vRP = Proxy.getInterface("vRP") vRPclient = Tunnel.getInterface("vRP","vrp_tattoos") TSclient = Tunnel.getInterface("vrp_tattoos","vrp_tattoos") Tunnel.bindInterface("vrp_tattoos",vRPts) ...
require('lspconfig').texlab.setup{ on_attach = require('plugs.nvim-lspconfig').on_attach }
return { mine_medium = { areaofeffect = 150, craterboost = 0, cratermult = 0, edgeeffectiveness = 0.6, explosiongenerator = "custom:FLASHMEDIUMBUILDING", impulseboost = 0, name = "MediumMine", range = 480, reloadtime = 3, soundhit = "xplomed1", soundstart = "largegun", weaponvelocity = 250, d...
yatm_fluid_pipes:require("nodes/inserter_fluid_pipe.lua") yatm_fluid_pipes:require("nodes/extractor_fluid_pipe.lua") yatm_fluid_pipes:require("nodes/transporter_fluid_pipe.lua")
function onStart() STATS = {} STATS.thread = MOAICoroutine.new() local nIdx = 0 local node = {0} local action = {0} local sim = {0} local render = {0} local buffer = 10 STATS.thread:run( function() while true do local _, a, n, s, r = MOAISim.getPerformance() nIdx = (nIdx + 1) % buffer action[nIdx +...
place = {"pravu", "polupravu", "duž"}
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local component = require "moonpie.ui.components.component" component("p", function(props) local txt if type(props) == "string" then txt = props else txt = props...
local Controller = require 'charon.Controller' local test = {} -- Mock local env = {} env.requestMethod = function() return 'GET' end env.queryString = function() return '' end test.should_return_http_status_500_if_errors = function() local c = Controller.new{ _env = env } local object = { id = 1, name = '...
local Module = {} function Module.GetPointOnPath(nodeList, progress) -- catmull-rom cubic hermite interpolation if progress == 1 then return nodeList[#nodeList] end local index1 = math.floor(1 + progress * (#nodeList - 1)) local index2 = index1 + 1 local point1 = nodeList[index1] local point2 = nodeList[index2...
local PLUGINGUI_INPUT_CAPTURER_ZINDEX = 100000 local SLIDER_HEIGHT = 36 local KNOB_HEIGHT = 44 local UserInputService = game:GetService("UserInputService") local SliderRoot = script.Parent local CoreRoot = SliderRoot.Parent local UIBloxRoot = CoreRoot.Parent local Packages = UIBloxRoot.Parent local Roact = require(P...
local Stdin = {} function Stdin.new() return setmetatable({pos = 1, chars = {}, cmds = {}, cmdpos = 1}, {__index = Stdin}) end function Stdin:tostring() return table.concat(self.chars) end function Stdin:reset() self.chars = {} self.pos = 1 end function Stdin:deletechar(dir) local delpos = self.pos if di...
local Animation = require 'prefabs/player/playeranimstate' local State = {} local DASH_DISTANCE = 60 local DASH_SPEED = 300 local function get_move_dir() local move_x = Input:keydown('d') - Input:keydown('a') local move_y = Input:keydown('s') - Input:keydown('w') return Vec2(move_x, move_y) end State.MOVING = ...
local numberAdded = false local secondMissionDone = false local secondMissionStarted = false local secondMissionIntroDone = false --- Event handler for messages sent to the blocked contact (second mission) RegisterNetEvent(eventNamespace .. blockedContact.namespace) AddEventHandler(eventNamespace .. blockedContact.nam...
local geometry = require "hs.geometry" function moveToCenterOfWindow(window) -- local window = hs.window.focusedWindow() local frame = window:frame() hs.mouse.setAbsolutePosition(geometry.rectMidPoint(frame)) end
require 'nn' require './SReLU' function ShiftedReLU(val, inplace, constant) val = val or -1 constant = constant or false if inplace == nil then inplace = true end local m = nn.Sequential() if constant then m:add(nn.Threshold(val,val,inplace)) else m:add(nn.SReLU(val...
-- Script by amaurea, andymac and feos for FCEUX 2.2.0 and earlier versions. -- Allows customizable recording of Frame, Lag, Timer and Input display to AVI dump. -- Drag and drop HUD items with mouse, use Numpad 1-6 to switch them on/off. print("Drag and drop HUD items with mouse, use Numpad 1-6 to switch them on/off....
local K, C, L = unpack(KkthnxUI) local Module = K:GetModule("Infobar") local _G = _G local string_format = _G.string.format local COMBAT_ZONE = _G.COMBAT_ZONE local CONTESTED_TERRITORY = _G.CONTESTED_TERRITORY local C_Map_GetBestMapForUnit = _G.C_Map.GetBestMapForUnit local FACTION_CONTROLLED_TERRITORY = _G.FACTION_C...
local modpath = minetest.get_modpath("news") local md5 = dofile(modpath .. "/md5.lua") local news = {} local checksum local caracteres_max = 5000 local pages_players = {} local seen_checksum function load_news() local newsfile = io.open(minetest.get_worldpath().."/news.txt","r") local content if newsfile ~= nil t...
-- Items.Lua -- Item definitions for LoveExtension library -- Copyright (c) 2011 Robert MacGregor local Items = { } Items.imageManager = require("scripts/Image.lua") -- Shield1 -- 1/15 chance from enemies local Shield1 = { Name = "Shield1", EnemyPickup = false, PlayerPickup = true, Animation = { } ...
nssm:register_mob("nssm:manticore", "Manticore", { type = "monster", hp_max = 55, hp_min = 34, collisionbox = {-0.8, -0.85, -0.8, 0.8, 1.9, 0.8}, visual = "mesh", mesh = "manticore.x", textures = {{"manticore.png"}}, visual_size = {x=4, y=4}, makes_footstep_sound = true, view_ran...
local VehicleUI = { rootPath = "plugins.cyber_engine_tweaks.mods.cityhack.", LightStateCurrent = 0, LightStates = {"Off", "Normal", "High Beams"}, ValidVehicleTypes = { "vehicleCarBaseObject", "vehicleBikeBaseObject", "vehicleAVBaseObject" } } local Theme = require(Vehicl...
Hive.kSpecksEffect = PrecacheAsset("cinematics/alien/hive/specks_heavy.cinematic") Hive.kIdleMistEffect = PrecacheAsset("cinematics/alien/hive/idle_mist_far.cinematic")
object_static_structure_military_military_rebel_clone_tent_large = object_static_structure_military_shared_military_rebel_clone_tent_large:new { } ObjectTemplates:addTemplate(object_static_structure_military_military_rebel_clone_tent_large, "object/static/structure/military/military_rebel_clone_tent_large.iff")
function Parse(tokens) local root = {id = nil} for i,t in pairs(tokens) do if t.id == "CMD" then local cmdNode = {bin = "", args = {}, children = {}} cmdNode.id = "CMD" cmdNode.bin = t.value cmdNode.args = t.args if root.id == "AND" or root.i...
function isCoordInPolygon( x, y, boundaryTable, numEdges ) numEdges = numEdges or #boundaryTable + 1 local c, j = 0, numEdges - 1 for i=0, numEdges - 1, 1 do if i ~= 0 then j = i - 1 end if leftIntersect( x, y, boundaryTable[i].x, boundaryTable[i].y, boundaryTable[j].x, boundaryTable[j].y ) then c = c + 1 end ...
----------------------------------- -- Area: Metalworks -- NPC: Unlucky Rat -- Starts & Finishes Quest: Mean Machine ----------------------------------- require("scripts/globals/quests") require("scripts/globals/settings") local ID = require("scripts/zones/Metalworks/IDs") ----------------------------------- function...
--Script Name : jlp_Add track separator --Author : Jean Loup Pecquais --Description : Add track separator --v1.0.0 local libPath = reaper.GetExtState("Reaper Evolution", "libPath") if not libPath or libPath == "" then reaper.MB("Reaper Evolution library is not found. Please refer to user guide", "Library not found...
-- Copyright 2006-2020 Mitchell. See LICENSE. -- MediaWiki LPeg lexer. -- Contributed by Alexander Misel. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S, B = lpeg.P, lpeg.S, lpeg.B local lex = lexer.new('mediawiki') -- Comments. lex:add_rule('comment', token(lexer.C...
if nil == cc.XMLHttpRequest then return end -- This is the DeprecatedNetworkClass DeprecatedNetworkClass = {} or DeprecatedNetworkClass --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --WebSocket...
fx_version 'adamant' game 'gta5' version '1.0.0' client_scripts { 'config.lua', 'client.lua' } server_scripts { '@mysql-async/lib/MySQL.lua', 'server.lua' } dependencies { 'esx_vehicleshop' }
--[[ --------MASTER/CONTROLLER Prog. Board Setup: Connect/link the databank that is connected to the worker/slave boards, connect the core (don't forget this, or no custom names shall show up!), and displays (connect one display per worker/slave board that you'll use/define; and NAME THEM! or use the de...
--- @ignore local tableCopy = table.Copy local virtualSubmenus = {} CLGAMEMODEMENU.base = "base_gamemodemenu" CLGAMEMODEMENU.icon = Material("vgui/ttt/vskin/helpscreen/changelog") CLGAMEMODEMENU.title = "menu_changelog_title" CLGAMEMODEMENU.description = "menu_changelog_description" CLGAMEMODEMENU.priority = 100 f...
local Elona122Map = require("mod.elona_sys.map_loader.Elona122Map") local util = require("mod.elona.data.map_archetype.util") local Item = require("api.Item") local MapEntrance = require("mod.elona_sys.api.MapEntrance") local HomeMap = require("mod.elona.api.HomeMap") local Calc = require("mod.elona.api.Calc") local En...
--- Performs bone merge on client side EF_BONEMERGE = 1 --- For use with EF_BONEMERGE. If this is set, then it places this ents origin at its parent and uses the parent's bbox + the max extents of the aiment. Otherwise, it sets up the parent's bones every frame to figure out where to place the aiment, which is ineffici...
-- Put your information here as the modlue owner/developer -- print( "Example-Module Updated Last on 12/3/2018") moduleName = "ExampleTest" yourNameHere = "OwnerName"--This can also be a group of people yourContactInfoHere = "OwnerContact" versionNameOrNumber = "ReleaseVersionExample" print("[PZ-API] Module: "...
-- boats/documentation.lua -----Load documentation via doc_helper------------------------ local MP = minetest.get_modpath(minetest.get_current_modname()) local docpath = MP .. DIR_DELIM .. "doc" doc.add_category("boats", { name = "_Boats_", description = "Boats Documentation", build_formspec = doc.entry_builders.te...
local GUI = LibStub('NetEaseGUI-2.0') local View = GUI:NewEmbed('Refresh', 1) if not View then return end local function Refresh(self) self:SetScript('OnUpdate', nil) self:Update() if type(self.Fire) == 'function' then self:Fire('OnRefresh') end if type(self._Select_OnRefresh) == 'functi...
local onAttach = require'lsp/lsp-attach' require'lspconfig'.tsserver.setup{ on_attach = onAttach }