content
stringlengths
5
1.05M
hook.Add("CanTool", "ToolAbuseRestrict", function(ply, _, tool) if tool == "duplicator" and not ply:IsAdmin() then ply:ChatPrint("We don't allow the duplicator to be used here at this point in time, sorry!") return false end if tool == "fading_door" and not table.HasValue(list.Get("FDoorMaterials"), ply:GetInf...
local rigel = require "rigel" rigel.MONITOR_FIFOS = false local R = require "rigelSimple" local types = require "types" local J = require "common" dofile("moduleparams_core.lua") local configs = {} local meta = {} configs.downsampleXSeq = J.cartesian{type=Type, size={IS}, V=NumP, scale={2,4,8} } meta.downsampleXSeq ...
package.cpath = "../?.dll;"..package.cpath local loop = require "znet".new() print("znet engine: "..loop.engine) local recv_count, recv_bytes = 0, 0 local send_count, send_bytes = 0, 0 local data = ("."):rep(1024) local count = arg[1] and arg[1]:match "client(%d*)" if count then count = count == "" and 1 or tonu...
bit = {} function bit.b(p) return 2 ^ (p - 1) -- 1-based indexing end -- Typical call: if bit.and(x, bit.b(3)) then ... function bit.band(x, p) return x % (p + p) >= p end function bit.setbit(x, p) return bit.band(x, p) and x or x + p end --[==[ BIT_FRAME_TITLE = 1 BIT_FRAME_CLOSE = 2 print(bit.setbit(B...
local fn = require('distant.fn') local Driver = require('spec.e2e.driver') describe('fn', function() local driver before_each(function() driver = Driver:setup() end) after_each(function() driver:teardown() end) describe('spawn_wait', function() local function to_tbl(r...
-- IupList Example in IupLua -- Creates a dialog with three frames, each one containing a list. The first is a simple list, the second one is a multiple list and the last one is a drop-down list. The second list has a callback associated. require( "iuplua" ) -- Creates a list and sets items, initial item and size l...
-- << utils local ipairs = ipairs local next = next local print = print local string = string local table = table local tostring = tostring local type = type local function split_comma(str) local result = {} local n = 1 for s in string.gmatch(str or "", "%s*[^,]+%s*") do if s ~= "" and s ~= "null" then result...
data:extend({ --- Bio Damage for new Ammo { type = "damage-type", name = "Biological" }, })
#!/usr/bin/env lua local sys = require"sys" local thread = sys.thread thread.init() -- Usage notes print[[ Press <Enter> to quit or any chars for feedback... ]] local stdin = sys.stdin -- Event Queue local evq = assert(sys.event_queue()) local worker -- Controller local controller do local function on_event...
--[[ -- added by wsh @ 2017-12-11 -- Lua侧带有可复用功能的UI组件,UIWrapGroup需要使用到 -- 注意: -- 1、这里只是作为一个接口文件来使用,具体功能需要自行继承并实现 --]] ---@class UIWrapComponent :UIBaseContainer local UIWrapComponent = BaseClass("UIWrapComponent", UIBaseContainer) ---@return UIBaseContainer local base = UIBaseContainer -- 组件被复用时回调该函数,执行组件的刷新 function ...
--Ai-Q function c101012073.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER) e1:SetCondition(c101012073.condition) c:RegisterEffect(e1) --maintain local e2=Effect.CreateEffect(c) e2:SetType(EFFEC...
function jtorch._saveCAddTableNode(node, ofile) -- Nothing to do for a CAddTable node end
return { include = function() includedirs { "../vendor/libuv/include/" } end, run = function() language "C" kind "SharedLib" includedirs { "../vendor/libuv/src/" } files_project '../vendor/libuv/' { 'include/uv.h', 'include/uv/tree.h', 'include/uv/errno.h', ...
AddCSLuaFile("shared.lua") local matWireFrame = Material( "models/wireframe" ) EFFECT.Time = 1 EFFECT.LifeTime = CurTime() EFFECT.percent = 0 EFFECT.invPer = 0 EFFECT.highPer = 0 EFFECT.height = 0 EFFECT.mins = 0 EFFECT.maxs = 0 EFFECT.AddDist = 0.2 EFFECT.ParticleDiff = Vector(0,0,0) EFFECT.Emitter = nil EFFECT.Si...
----------------------------------- -- Area: Mhaura -- NPC: Celestina -- Finish Quest: The Sand Charm -- Involved in Quest: Riding on the Clouds -- Guild Merchant NPC: Goldsmithing Guild -- !pos -37.624 -16.050 75.681 249 ----------------------------------- local ID = require("scripts/zones/Mhaura/IDs"); require("scri...
--- -- Radar rendering -- @class RADAR local surface = surface local math = math local GetTranslation local GetPTranslation local table = table local net = net local pairs = pairs local IsValid = IsValid local indicator = surface.GetTextureID("effects/select_ring") local c4warn = surface.GetTextureID("vgui/ttt/icon_c...
--[[ require'nvim-treesitter.configs'.setup { ensure_installed = "maintained", -- ignore_install = { "javascript" }, highlight = { enable = true, -- disable = { "c", "rust" }, }, incremental_selection = { enable = true, keymaps = { init_selection = "gnn", node_incremental = "grn", scope_incrementa...
-- Author: nakinor -- Created: 2011-12-14 -- Revised: 2016-03-19 -- 月齢を計算して求めるプログラム -- 数字をキーに出来ない? a_table = {Jan = 0, Feb = 2, Mar = 0, Apr = 2, May = 2, Jun = 4, Jul = 5, Aug = 6, Sep = 7, Oct = 8, Nov = 9, Dec = 10} a = ((os.date("%Y") - 11) % 19) * 11 b = a_table[os.date("%b")] c = os.date("%d") getsu...
function __shared__parse_data_action(data_action, damage) if type(data_action) == "table" then if type(data_action.action_delivery) == "table" and data_action.action_delivery.target_effects then __shared__parse_data_action_target_effects(data_action.action_delivery.target_effects, damage) else for...
local rndselect = require "lib.randomselect" local dijkstramap = require "lib.dijkstramap" return function(entity) entity.turn = function(self) if math.random() < 0.1 then self:move(rndselect{{-1,0}, {0, 1}, {0, -1}} ) return self end local guys = {} for guy...
dofile("table_show.lua") dofile("urlcode.lua") local urlparse = require("socket.url") local luasocket = require("socket") -- Used to get sub-second time local http = require("socket.http") JSON = assert(loadfile "JSON.lua")() local item_name_newline = os.getenv("item_name_newline") local item_dir = os.getenv('item_dir...
local Map = class() local instance local config_map = config('map') function Map:constructor() self.tiles = config('core.tiles') -- self.items = config('core.items') -- self.buildings = config('core.buildings') self:init() end ------------------------- -- STATIC METHODS -- ---------------------...
local OVALE, Ovale = ... local OvaleScripts = Ovale.OvaleScripts do local name = "icyveins_priest_discipline" local desc = "[7.1.5] Icy-Veins: Priest Discipline" local code = [[ Include(ovale_common) Include(ovale_trinkets_mop) Include(ovale_trinkets_wod) Include(ovale_priest_spells) AddFunction Dis...
local closeServer = TalkAction("/closeserver") function closeServer.onSay(player, words, param) if not player:getGroup():getAccess() or player:getAccountType() < ACCOUNT_TYPE_GOD then return true end if param == "shutdown" then Game.setGameState(GAME_STATE_SHUTDOWN) else Game.setGameState(GAME_STATE_CLOSED)...
-- Path of Building -- -- Module: Tree Tab -- Passive skill tree tab for the current build. -- local ipairs = ipairs local t_insert = table.insert local t_sort = table.sort local m_max = math.max local m_min = math.min local m_floor = math.floor local s_format = string.format local TreeTabClass = newClass("TreeTab", "...
local Task = require 'CompileMe.task' local Command = require 'CompileMe.command' local Project = require 'CompileMe.project' local upfind = require 'CompileMe.upfind' local class = require 'CompileMe.class' local function dirname(x) return vim.fn.fnamemodify(x, ':h') end -- This is a wrapper class so we can use ge...
local cursor = {} function cursor.set_stack(player, cursor_stack, player_table, item_name) local is_cheating = player.cheat_mode or (player.controller_type == defines.controllers.editor) local spawn_item = player_table.settings.spawn_items_when_cheating -- space exploration - don't spawn items when in the satel...
function love.conf(t) t.modules.audio = true t.modules.sound = true t.modules.keyboard = true t.modules.event = true t.modules.image = true t.modules.graphics = true t.modules.timer = true t.modules.thread = true t.modules.physics = true t.title = "Platformer training" t.win...
--[[ module: DataAccessObjectTest author: DylanYang time: 2021-02-24 13:04:38 idea: For the current example, it is only running in simulation. advance: ]] local StudentDaoImpl = require("patterns.j2ee.dataAccessObject.StudentDaoImpl") local super = require("patterns.BaseTest") local _M = Class("...
local libos = require "libos" local utils = require "utils" -- file templates local TEMPLATE_BODY = [[ return { %s } ]] local TEMPLATE_LABEL = [[ { type = "label", id = %d, export = "default_label", width = 200, height = 100, font = "", align = 0, size = 16, color = 0xffffffff, noedge = true, }, ]] local ...
------------------------------------------------------------------------------- -- Ɀeus' Enhanced Vita Snooper by ZeusOfTheCrows, based on work by Keinta15 -- -- Original work by Smoke5 -- ------------------------------------------------------------------------------- ...
--- -- Timer utils module -- Added in API_VER:6 -- local skynet = require 'skynet' local class = require 'middleclass' local timer = class('FreeIOE_Lib_Utils_Timer') --- -- span --- Time span in seconds -- function timer:initialize(cb, span, integral_time) self._cb = cb self._span = span self._integral_time = int...
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)...
require "control/window_manager.lua" require "control/movie_player_manager.lua" require "control/button_manager.lua" require "control/menu_manager.lua" require "control/toolbar_manager.lua" require "control/image_manager.lua" require "control/layout_manager.lua" require "control/listview_manager.lua" require "control/s...
function mixDrugs(drug1, drug2, drug1name, drug2name) -- 30 = Cannabis Sativa -- 31 = Cocaine Alkaloid -- 32 = Lysergic Acid -- 33 = Unprocessed PCP -- 34 = Cocaine -- 35 = Drug 2 -- 36 = Drug 3 -- 37 = Drug 4 -- 38 = Marijuana -- 39 = Drug 6 -- 40 = Drug 7 -- 41 = LSD -- 42 = Drug 9 -- 4...
#!@path_to_lua@/lua -- -*- lua -*- ----------------------------------------------------------------- -- addto: Add to a path like environment variable. -- -- Standard usage is Bash: -- -- $ unset FOO -- $ export FOO=$(addto --append FOO a b c) -- $ echo " FOO: %$FOO%" -- FOO: %a:b:c% -- $ export FOO=$(addto --a...
#!/bin/sh _=[[ . "${0%%/*}/regress.sh" exec runlua "$0" "$@" ]] require"regress".export".*" local co = coroutine.create(function() coroutine.yield() end) coroutine.resume(co) -- kick off coroutine coroutine.resume(co) -- resume a yield with no arguments local status = coroutine.status(co) check(status == "dead", "...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local S = E:GetModule('Skins') --Lua functions local _G = _G --WoW API / Variables local function MirrorTimer_OnUpdate(frame, elapsed) if frame.paused then return end if frame.timeSinceUpdate >= 0.3 then local ...
weapon[1]={} weapon[1].impulse=200 weapon[1].recul=weapon[1].impulse weapon[1].bulletnumber=0 weapon[1].bulletnumbermax=10 weapon[1].reloadingmagazinetime=70 weapon[1].reloadingbullettime=10 weapon[1].density=0.7 weapon[1].width=0.5*meter weapon[1].height=0.3*meter weapon[1].magazine=5 weapon[1].bullet={} weapon[1]....
--[[ @file Main.lua @brief lullbc testsuite entry file. if you want to run the testsuite, please lua executable/library files and lullbc library files to this file directory. --]] -- Import lullbc library(set to _G), default test use release version -- library, if you want to use debug ve...
local lu = require 'luaunit' local openssl = require 'openssl' local crl, csr = openssl.x509.crl, openssl.x509.req TestCRL = {} function TestCRL:setUp() self.alg = 'sha1' self.cadn = openssl.x509.name.new({{commonName = 'CA'}, {C = 'CN'}}) self.dn = openssl.x509.name.new({{commonName = 'DEMO'}, {C = 'CN'}}) ...
local U = require("lib.Utils") local Class = require("lib.Class") local Vector2 = require("lib.Vector2") local Button = Class:derive("Button") local function mouse_in_bounds(self, mx, my) return mx >= self.pos.x - self.w / 2 and mx <= self.pos.x + self.w / 2 and my >= self.pos.y - self.h / 2 and my <= self.pos.y ...
-- loads the map local composer = require( "composer" ) local scene = composer.newScene() -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (not recycled) via "c...
#!/usr/bin/env luajit local ffi = require 'ffi' local unistd = require 'ffi.c.unistd' require 'ffi.c.stdlib' local dirp = unistd.getcwd(nil, 0) local dir = ffi.string(dirp) ffi.C.free(dirp) -- chdir to the base -- (another alternative would be to execute this script from the base) -- I think that's what the Relativit...
--[[ STEAL MY SHIT AND I'LL FUCK YOU UP PRETTY MUCH EVERYTHING BY MAURICE GU�GAN AND IF SOMETHING ISN'T BY ME THEN IT SHOULD BE OBVIOUS OR NOBODY CARES Please keep in mind that for obvious reasons, I do not hold the rights to artwork, audio or trademarked elements of the game. This license only applies to the code...
return { {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, desc_get = "", name = "能代1", init_effect = "", time = 0, color = "blue", picture = "", desc = "", stack = 1, id = 12830, icon = 12830, last_effect = "", effect_list = { { type = "BattleBuffCastSkill", trigger = { "onStartGame" }, a...
---@class vm local vm = require 'vm.vm' ---@param uri uri ---@param child vm.node|string ---@param parent vm.node|string ---@param mark? table ---@return boolean function vm.isSubType(uri, child, parent, mark) if type(parent) == 'string' then parent = vm.createNode(vm.getGlobal('type', parent)) ...
local I18N = require("core.I18N") I18N.add { common = { nothing_happens = "何もおきない… ", something_is_put_on_the_ground = "何かが足元に転がってきた。", you_put_in_your_backpack = "{itemname($1, 1)}をバックパックに入れた。", it_is_impossible = "それは無理だ。", }, }
local helper = require('arken.Helper') local dispatcher = require('arken.dispatcher') local test = {} test.before = function() dispatcher.prefix = "" dispatcher.controller = nil dispatcher.controller_name = nil dispatcher.action = nil end test.should_return_html = function() local result = helper:...
function love.load() fieldWidth = 20 fieldHeight = 15 totalBombs = 10 field = {} for y = 1, fieldHeight do field[y] = {} for x = 1, fieldWidth do field[y][x] = {type = 0, subType = 0} end end cellSize = 30 cellTypes = { [-1] = {data = "B", col...
-- https://www.reddit.com/r/neovim/comments/jvisg5/lets_talk_formatting_again/ -- Use an on_attach function to only map the following keys -- after the language server attaches to the current buffer local on_attach = function(client, bufnr) if client.resolved_capabilities.document_formatting then vim.cmd([[ ...
object_mobile_som_cww8a_battle_droid = object_mobile_som_shared_cww8a_battle_droid:new { } ObjectTemplates:addTemplate(object_mobile_som_cww8a_battle_droid, "object/mobile/som/cww8a_battle_droid.iff")
local function setup(args) local xplr = xplr args = args or {} args.mode = args.mode or "default" args.keys = args.keys or { ["ctrl-e"] = "tabedit", ["e"] = "e", } for key, command in pairs(args.keys) do xplr.config.modes.builtin[args.mode].key_bindings.on_key[key] = { help = "nvim :" .....
return { HOOK_CHUNK_UNLOADED = { CalledWhen = "A chunk has been unloaded from the memory.", DefaultFnName = "OnChunkUnloaded", -- also used as pagename Desc = [[ This hook is called when a chunk is unloaded from the memory. Though technically still in memory, the plugin should behave as if the chunk was ...
--Created by the QnEditor,do not modify.If not,you will die very nankan! local MAP = { var = { Image_line = 1, Button_info = 2, Text_nickname = 3, Image_money = 4, Text_num = 5, }, ui = { [1] = {"Image_line"}, [2] = {"Button_info"}, [3] = {"Text_nickname"}, [4] = {"Image_money"}, [5] = {"Text_num...
local skynet = require "skynet" local sd = require "skynet.sharedata.corelib" local service skynet.init(function() service = skynet.uniqueservice "sharedatad" end) local sharedata = {} local cache = setmetatable({}, { __mode = "kv" }) local function monitor(name, obj, cobj) local newobj = cobj whil...
-- Section for example.com VirtualHost "example.com" enabled = false -- Remove this line to enable this host -- Assign this host a certificate for TLS, otherwise it would use the one -- set in the global section (if any). -- Note that old-style SSL on port 5223 only supports one certificate, and will always -- u...
-- contrib/buildbot_all.lua -- Copyright (C) 2012 Andrzje Bieniek <andyhelp@gmail.com> -- Copyright (C) 2017 Jörg Thalheim <joerg@higgsboson.tk> -- -- This file is part of Vicious. -- -- Vicious is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as -- publi...
g_VR = g_VR or {} local convars, convarValues = vrmod.GetConvars() vrmod.AddCallbackedConvar("vrmod_net_tickrate", nil, tostring(math.ceil(1/engine.TickInterval())), FCVAR_REPLICATED, nil, nil, nil, tonumber, nil) local function netReadFrame() local frame = { ts = net.ReadFloat(), characterYaw = n...
-- Provides a singleton that tracks and adds output to each event handler and listener and script timer being fired. Meant for debugging purposes. -- Event handlers are the functions on each list of the events object. -- Event listeners include the functions that are added via core:add_listener. -- Script timers includ...
local ffi = require('ffi') local C = ffi.C local _M = {} ffi.cdef[[ void cf_nocompress_set_enabled(void*, unsigned); ]] function _M.enable(val) local r = getfenv(0).__ngx_req if not r then return error("no request found") end if val == true then C.cf_nocompress_set_enabled(r,...
--New object_tangible_item_shared_costume_data_container = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/item/shared_costume_data_container.iff" } ObjectTemplates:addClientTemplate(object_tangible_item_shared_costume_data_container, "object/tangible/item/shared_costume_data_container.if...
StopCommand = Command:extends{} StopCommand.className = "StopCommand" function StopCommand:execute() if not SB.rtModel.hasStarted then return end pcall(function() local OnStartEditingSynced = SB.model.game.OnStartEditingSynced if OnStartEditingSynced then OnStartEditing...
-- Namespace Variables local addon, addonTbl = ...; -- Module-Local Variables local frame; local isFrameVisible; local L = addonTbl.L; local function ShowTooltip(self, text) GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetText(text); GameTooltip:Show(); end -- Displays a custom tooltip. --[[ self: Th...
local null = nil if type(ngx) == "table" then null = ngx.null end -- Normalize results local _n = function(res, err) if res == null then res = nil end return res, err end local resty_call = function(self, cmd, ...) return _n(self._db[string.lower(cmd)](self._db, ...)) end local resty_queue = function(self, c...
local CorePackages = game:GetService("CorePackages") local AppTempCommon = CorePackages.AppTempCommon local Modules = game:GetService("CoreGui").RobloxGui.Modules local ShareGame = Modules.Settings.Pages.ShareGame local Immutable = require(AppTempCommon.Common.Immutable) local ReceivedUserInviteStatus = require(Share...
ESX = nil toggleState = false Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end while ESX.GetPlayerData().job == nil do Citizen.Wait(10) end end) --nui RegisterCommand("at...
----------------------------------- -- Area: Stellar Fulcrum -- Door: Qe'Lov Gate -- !pos -520 -4 17 179 ------------------------------------- require("scripts/globals/bcnm"); function onTrade(player,npc,trade) TradeBCNM(player,npc,trade); end; function onTrigger(player,npc) EventTriggerBCNM(player,npc); end...
class("GetShipCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot3 = slot1:getBody().type or 1 slot5 = slot2.callBack slot6 = slot2.isBatch slot7 = slot2.canSkipBatch slot8 = slot2.isSkip slot9 = slot2.anim if not getProxy(BuildShipProxy):getBuildShip(slot2.pos) then pg.TipsMgr.GetInstance():Sh...
function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getStorageValue(Storage.QuestChests.BananaPalm) == 1 then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The banana palm is empty.') else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You have found a banana.') player:addItem(26...
Initialize = function() startTime = os.time() end Update = function() local sessionTime = os.time() - startTime local hours = sessionTime / 3600.0 local minutes = (hours % 1) * 60.0 return SKIN:Bang(('[!SetOption "SessionTime" "Text" "%02d:%02d"]'):format(math.floor(hours), math.floor(minutes))) end
function inventorypostinit(Inventory, inst) Inventory.OriginalDropEverything = Inventory.DropEverything; function Inventory:DropEverything(ondeath, keepequip) if inst:HasTag("player") then else return Inventory:OriginalDropEverything(ondeath, keepequip); end; end; end; AddComponentPostInit("inventory", inve...
local config = import 'micro/config' local function wantwords(ft) return ft == 'markdown' or ft == 'asciidoc' end local function appendsep(s, a) if s ~= '' then s = s .. ' | ' end return s .. a end function onBufferOpen(b) if wantwords(b:FileType()) then local format = config.GetGlobalOption 'statusformatr' ...
#!/usr/bin/env lua -------------------------------------------------------------------------------- -- wrap.lua bundle begins -- version: 2020-02-03 8ef0a41 -- content sha256: 55fa8110a1 -------------------------------------------------------------------------------- do do local _ENV = _ENV package.preload[ "argparse...
object_mobile_walus_assistant = object_mobile_shared_walus_assistant:new { } ObjectTemplates:addTemplate(object_mobile_walus_assistant, "object/mobile/walus_assistant.iff")
require "us4l" local MakeUString = require "us4l.internals.MakeUString" --U{ cp, cp, cp } isn't implemented yet local function CpTextToUString ( txt ) local cp_list = {} for cp_txt in txt:gmatch("%x+") do cp_list[ #cp_list + 1 ] = tonumber( cp_txt, 16 ) end return MakeUString( cp_list ) end lo...
dye = {} -- Make dye names and descriptions available globally dye.dyes = { {"white", "White"}, {"grey", "Grey"}, {"dark_grey", "Dark grey"}, {"black", "Black"}, {"violet", "Violet"}, {"blue", "Blue"}, {"cyan", "Cyan"}, {"dark_green", "Dark green"}, {"green", "Green"}, ...
display = {} print(display)
---@class src.app.fonts ---@field current love.Font ---@field normal love.Font ---@field bold love.Font local fonts = proto.set_name({}, "src.app.fonts") local glyphs = " _?!@#$%&\"'`*+-=~,.:;\\/|^<>[](){}0123456789" .. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" .. "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабв...
local M = { [1] = { id = 1, test1 = {gold = 100,id = 10,man = true,name = test}, test2 = {10,11,123}, test4 = 12, test5 = {[1] = 12,[4] = 10}, test6 = true, test7 = {a = 11,b=3}, test8 = {year=2021,month=6,day=11,hour=12,min=00,sec=00}, test9 = { [1] = { desc = '1', hurtType = 1, icon...
local HttpService = game:GetService("HttpService") local Promise local function requestAsync(requestFields) return Promise.new(function(resolve, reject) local response = HttpService:RequestAsync(requestFields) if response.Success then resolve(response) else reject(...
-- Requiring all endpoint related test modules require "endpoints.EndpointTest" require "endpoints.BulkTest" require "endpoints.CountTest" require "endpoints.CountPercolateTest" require "endpoints.DeleteTest" require "endpoints.DeleteByQueryTest" require "endpoints.DeleteTemplateTest" require "endpoints.ExplainTest" r...
local bitcoin = require "bitcoin" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" description = [[ Extracts version and node information from a Bitcoin server ]] --- -- @usage -- nmap -p 8333 --script bitcoin-info <ip> -- -- @output -- PORT STATE SERVICE -- 8333...
local meta = FindMetaTable( "Player" ) function meta:IsTyping() return self:GetNWBool("IsTyping") end
Object = require "libs.classic" Paddle = Object.extend(Object) MaxHeight = love.graphics.getHeight() function Paddle:new(x,y) self.x = x self.y = y self.width = 20 self.height = 120 self.speed = 180 end function Paddle:render() love.graphics.setColor(255,255,255) love.graphics.rectangle('...
local path = minetest.get_modpath("backpack").."/" dofile(path.."backpack_registration.lua") dofile(path.."backpack_logic.lua")
-- Test Scroll Inventory Asset do am.gfx_engine.asset(am.asset.new("main") :add_texture("data/textures/items/scroll.png")) end
require "keybow" -- Keybow MINI volume controls -- function setup() keybow.use_mini() keybow.auto_lights(true) end -- Key mappings -- -- fullscreen function handle_minikey_00(pressed) keybow.set_key(keybow.F11, pressed) end -- toggle video function handle_minikey_01(pressed) if pressed then keybow.s...
fx_version 'cerulean' game 'gta5' description 'NPC-Apartments' version '1.0.0' ui_page 'index.html' files { "index.html", "scripts.js", "css/style.css", } server_scripts { "server/apart_server.lua", "server/hotel_server.lua", "@mysql-async/lib/MySQL.lua" } client_scripts { "client/apart_cl...
local CorePackages = game:GetService("CorePackages") local Rodux = require(CorePackages.Rodux) local Actions = script.Parent.Parent.Actions local OpenPlayerDropDown = require(Actions.OpenPlayerDropDown) local ClosePlayerDropDown = require(Actions.ClosePlayerDropDown) local RemovePlayer = require(Actions.RemovePlayer)...
----------------------------------- -- Area: Southern San d'Oria -- NPC: Lusiane -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Southern_San_dOria/IDs") require("scripts/globals/npc_util") require("scripts/globals/quests") require("scripts/globals/shop") function onTrad...
Locales ['sv'] = { ['voice'] = '~y~Röst: ~s~%s', ['normal'] = 'prata', ['shout'] = 'skrik', ['whisper'] = 'viska', }
ITEM.name = "Gagarin" ITEM.model = "models/kek1ch/spec_sold_outfit.mdl" ITEM.newModel = "models/nasca/stalker/male_gagarin.mdl" ITEM.description= "A Gagarin Suit." ITEM.longdesc = "A prototype suit intended for use by the military, seemingly an attempt to militarize the SEVA. PSZ-12 protective vest is of high quality...
-- Button -- When pressed, prompt the user with a textbox -- Type inside, press enter to finish -- Unfocusing the textbox destroys it -- Creates a new free floating billboard with the text -- Will also maintain metadata of who wrote the message, the date/time, and a little avatar. -- List of all notes -- Clicking...
-- resty-gitweb@app.lua -- Entry point for git HTTP site implementation -- Copyright (c) 2020 Joshua 'joshuas3' Stockin -- <https://git.joshstock.in/resty-gitweb> -- This software is licensed under the MIT License. local puremagic = require("puremagic") local utils = require("utils/utils") local git = requ...
object_tangible_item_landing_gear = object_tangible_item_shared_landing_gear:new { } ObjectTemplates:addTemplate(object_tangible_item_landing_gear, "object/tangible/item/landing_gear.iff")
local pedlist = { { 2432.78,4802.78,34.82,128.22,0xFCFA9E1E,"A_C_Cow" }, { 2440.98,4794.38,34.66,128.22,0xFCFA9E1E,"A_C_Cow" }, { 2449.0,4786.67,34.65,128.22,0xFCFA9E1E,"A_C_Cow" }, { 2457.28,4778.75,34.52,128.22,0xFCFA9E1E,"A_C_Cow" }, { 2464.67,4770.23,34.38,128.22,0xFCFA9E1E,"A_C_Cow" }, --[[{ -309.77,6272.08,...
--[[ MTA Role Play (mta-rp.pl) Autorzy poniższego kodu: - Patryk Adamowicz <patrykadam.dev@gmail.com> Discord: PatrykAdam#1293 Link do githuba: https://github.com/PatrykAdam/mtarp --]] local ware = {} ware.config = { getPack = Vector3(1129.097656, -1467.645508, 14.730888), randPos = { Vector3...
local COMMAND = Command.new('charattributemultiplier') COMMAND.name = 'CharAttributeMultiplier' COMMAND.description = 'command.char_attribute_multiplier.description' COMMAND.syntax = 'command.char_attribute_multiplier.syntax' COMMAND.permission = 'moderator' COMMAND.category = 'permission.categories.character_manageme...
local corp = { web = "www.google.com", --索引为字符串,key = "web", -- value = "www.google.com" telephone = "12345678", --索引为字符串 staff = {"Jack", "Scott", "Gary"}, --索引为字符串,值也是一个表 100876, --相当于 [1] = 100876,此时索引为数字 -- key =...