content
stringlengths
5
1.05M
local helper = require("curstr.lib.testlib.helper") local curstr = helper.require("curstr") describe("vim/lua", function() before_each(function() helper.before_each() vim.cmd("filetype on") vim.cmd("syntax enable") helper.open_new_file("entry.lua", "require \"vim.lsp.util\"") helper.search("ls...
------------------ -- *treap.lua*, a simple treap data structure implemented in Lua. -- Source on [Github](http://github.com/Yonaba/treap.lua) -- @author [Roland Yonaba](http://github.com/Yonaba/) -- @copyright 2017 -- @license [MIT](http://github.com/Yonaba/blob/master/LICENSE) -- Private definitions local random = m...
-- You must have a mod flag and a server flag to use this script. See an admin if you lack one or both. -- To run type '/run <scriptname>.lua server'. -- When you're done with your scripting and before you leave the server, purge the script: -- To purge type '/forward /kill *'. -- This will toast any remnants of the...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA -- weapon_vape_medicinal.lua -- Defines a vape that heals the player -- Vape SWEP by Swamp Onions - http://steamcommunity.com/id/swamponions/ if CLIENT then include('weapon_vape/cl_init.lua') else inc...
local api = vim.api local s_config = require("zettelkasten.config") if vim.fn.exists(":ZkNew") == 0 then vim.cmd([[command ZkNew :lua _G.zettelkasten.zknew()]]) end if vim.fn.exists(":ZkBrowse") == 0 then vim.cmd([[command ZkBrowse :lua _G.zettelkasten.zkbrowse()]]) end _G.zettelkasten = { tagfunc = requ...
--[[------------------------------------------------------------------------- Draws the failed screen ---------------------------------------------------------------------------]] surface.CreateFont( "batm_done_text", { font = "Coolvetica", extended = false, size = 75, weight = 300, blursize = 0, scanlines = 0,...
local API_NPC = require(script:GetCustomProperty("API_NPC")) local API_D = require(script:GetCustomProperty("APIDamage")) local API_RE = require(script:GetCustomProperty("APIReliableEvents")) local RANGE = 0.0 local COOLDOWN = 27.0 local N_POOLS = 150 local POOL_RADIUS = 500.0 local MAX_DISTANCE = 3500.0 lo...
local Com = require "meiru.com.com" local ComCors = class("ComCors", Com) --跨域限制 ---------------------------------------------- --ComCors ---------------------------------------------- function ComCors:ctor() end function ComCors:match(req, res) local app = req.app local app_host = app.get('host') if app_host the...
-- gh-983 selecting a lot of data crashes the server or hangs the -- connection -- gh-983 test case: iproto connection selecting a lot of data _ = box.schema.space.create('test', { temporary = true }) _ = box.space.test:create_index('primary', {type = 'TREE', parts = {1,'unsigned'}}) data1k = "aaaabbbbccccddddeeeefff...
workspace "Library" architecture "x64" configurations { "debug", "release" } outputDir = "%{cfg.buildcfg}" project "Cpp" location "Examples/Cpp" kind "ConsoleApp" language "C++" targetdir ("Binaries/" .. outputDir) objdir ("Intermediate/") files { ...
-- =========================== -- BUBBLY.NVIM FILETYPE BUBBLE -- =========================== -- Created by: datwaft [github.com/datwaft] local bubble_factory = require'bubbly.factories.bubble' return function(inactive) if inactive then return '' end local filetype = vim.bo.filetype if filetype == '' then fil...
local setutils = {} --- This function used to convert given table into json -- -- @param table store_key -- @param boolean appendN -- @return json function setutils.ss_get_json(store_key, appendN) local api_table = {}; table.insert(api_table, "{"); for k,v in pairs(store_key) do table.insert(api_tabl...
-- Sample module that changes the given url as uppercase function faup_url_in(url) local new_url = string.upper(url) return new_url end -- function faup_output(orig_url, positions_and_sizes) -- -- local new_positions_and_sizes = {numfields=1} -- -- for k,v in pairs(positions_and_sizes) do -- --io.write("k:",k, ...
local io = require("io") local M = {} M.tableCount = 0 function M.Open(f) M.file = io.open(f,'w') M.tableCount = 0 end function M.WriteLine(s) if not s then M.file:write('\n') return end local tabs = "" for i = 0,M.tableCount-1 do tabs = tabs..'\t'...
object_intangible_beast_bm_zucca_boar = object_intangible_beast_shared_bm_zucca_boar:new { } ObjectTemplates:addTemplate(object_intangible_beast_bm_zucca_boar, "object/intangible/beast/bm_zucca_boar.iff")
_DestroyusProItems = {} _DestroyusProItems.ARMORS_CLASS_ID = 4 _DestroyusProItems.MISCELLANEOUS_SUBCLASS_ID = 0 _DestroyusProItems.CLOTH_SUBCLASS_ID = 1 _DestroyusProItems.LEATHER_SUBCLASS_ID = 2 _DestroyusProItems.MAIL_SUBCLASS_ID = 3 _DestroyusProItems.PLATE_SUBCLASS_ID = 4 _DestroyusProItems.SHIELDS_SUBCLASS_ID = 6 ...
-- updates parameters inverse-proportionally to -- number of times each index was used since last update. -- less forward/backwards --> higher learning rate (because these are -- downscaled proportionally to batch size using scale, in criterion, -- or learning rate)) local FairLookupTable, parent = torch.class('nn.F...
--- @ignore CLGAMEMODESUBMENU.base = "base_gamemodesubmenu" CLGAMEMODESUBMENU.priority = 96 CLGAMEMODESUBMENU.title = "submenu_administration_playermodels_title" local boxCache = {} function CLGAMEMODESUBMENU:Populate(parent) local form = vgui.CreateTTT2Form(parent, "header_playermodels_general") form:MakeHelp({...
local TestResult = require('test_result.lua') return local_class("Test", function(klass, instance) function klass:new() self.testSuite = nil -- TestSuite self.description = "" -- string self.expectations = {} -- Expectation[] self.result = nil -- TestResult end function ins...
log.info("[weapon_stay_big.lua] loaded") local typedef = sdk.find_type_definition("snow.player.PlayerWeaponCtrl") local start_method = typedef:get_method("start") sdk.hook(start_method, function(args) local weapctrl = sdk.to_managed_object(args[2]) weapctrl:set_field("_bodyConstScale", 1.0) end, funct...
return Def.ActorFrame { -- Speed Def.Sprite{ OnCommand=function(self) self:x(-220); if GAMESTATE:PlayerIsUsingModifier(PLAYER_1,'1.5x') then self:Load(THEME:GetPathB("","_selModIcons/x1.5.png")); elseif GAMESTATE:PlayerIsUsingModifier(PLAYER_1,'2x') then self:Loa...
function pedSkills( ped, skill ) setPedStat( ped, 69, skill ) setPedStat( ped, 70, skill ) setPedStat( ped, 71, skill ) setPedStat( ped, 72, skill ) setPedStat( ped, 73, skill ) setPedStat( ped, 74, skill ) setPedStat( ped, 75, skill ) setPedStat( ped, 76, skill ) setPedStat( ped, 77, skill ) setPedStat( ped...
-------------------------------------------------------------------------------- -- -- This file is part of the Jancy toolkit. -- -- Jancy is distributed under the MIT license. -- For details see accompanying license.txt file, -- the public copy of which is also available at: -- http://tibbo.com/downloads/archive/...
local ui = script.parent local settings = script:GetCustomProperty("GameSettings"):WaitForObject() local function OnChanged(settings, key) gameOver = settings:GetCustomProperty("gameOver") if gameOver == true then ui.visibility = Visibility.INHERIT else ui.visibility = Visibility.FO...
function luhn(n) n=string.reverse(n) print(n) local s1=0 --sum odd digits for i=1,n:len(),2 do s1=s1+n:sub(i,i) end --evens local s2=0 for i=2,n:len(),2 do local doubled=n:sub(i,i)*2 doubled=string.gsub(doubled,'(%d)(%d)',function(a,b)return a+b end) s2=s2+doubled end print(s1) p...
-- // FileName: ObjectPool.lua -- // Written by: TheGamer101 -- // Description: An object pool class used to avoid unnecessarily instantiating Instances. local module = {} --////////////////////////////// Include --////////////////////////////////////// local modulesFolder = script.Parent --//////////////////////////...
--[[ The MIT License (MIT) Copyright (c) 2018 Loïc Fejoz 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, ...
-- CarControl --GPIO Define function initGPIO() --1,2EN D1 GPIO5 --3,4EN D2 GPIO4 --1A ~2A D3 GPIO0 --3A ~4A D4 GPIO2 gpio.mode(0,gpio.OUTPUT);--LED Light on gpio.write(0,gpio.LOW); gpio.mode(1,gpio.OUTPUT);gpio.write(1,gpio.LOW); gpio.mode(2,gpio.OUTPUT);gpio.write(2,gpio.LOW); gpio.mode(3,gpio.OUTPUT);gpi...
-- Copyright (C) Xin Huang (3203317@qq.com), http://www.foreworld.net. local urlswitcher = require 'urlswitcher'; return urlswitcher.getCluster();
--[[ Copyright 2016 Roelof Roos (SirQuack) Part of Particle Maker Garry's Mod Tool 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 app...
--[[ 1 - 砖块 2 - 砖块顶部两个 3 - 砖块右侧两个 4 - 砖块底部两个 5 - 砖块左侧两个 11 - 钢砖 12 - 钢砖顶部两个 13 - 钢砖右侧两个 14 - 钢砖底部两个 15 - 钢砖左侧两个 21 - 水 31 - 树 41 - 冰 ]]-- auto_tile({ 0, 0, 0, 0,11, 0, 0, 0, 0,11, 0, 0, 0, 0,11, 0, 0, 0,11, 0, 0,11,31,31, 0, 0, 0, 0,11, 0, 0, 0, 0,11,31,14,15, 0, 0, 0, 0, 0,11, 0,31,31,31,31,31, 0,1...
local log = require('utils.log') local format = require('utils.format') local config = require('definitions.gui_config') local gui_utils = require('gui.utils') local scale = gui_utils.scale local createCompletionsElement = require('gui.feedback.completions') local createMessageElement = require('gui.feedback.message')...
chatCommands.shop = { permissions = {'admin'}, event = function(player, args) showNPCShop(player, args[1]) end }
require "libs/case" require "libs/math" -- Dracula States BossState = { STATE_INITIAL = { description = "Initial", vulnerable = false, sprite_normal = "assets/sprites/dracula_initial.png", sprite_monster = "assets/sprites/missing.png", sfx_normal = "assets/sounds/default.wav", sfx_monster = "assets/sounds/default.wa...
local K, C, L = unpack(select(2, ...)) local Module = K:GetModule("Loot") local _G = _G local ipairs = _G.ipairs local next = _G.next local pairs = _G.pairs local tonumber = _G.tonumber local CUSTOM_CLASS_COLORS = _G.CUSTOM_CLASS_COLORS local C_LootHistoryGetItem = _G.C_LootHistory.GetItem local C_LootHistoryGetPlaye...
--Copyright © 2015, Damien Dennehy --All rights reserved. --Redistribution and use in source and binary forms, with or without --modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright -- notice, this list of conditions an...
local application = require "hs.application" application.launchOrFocusByBundleID("com.ZeroBrane.ZeroBraneStudio") local ZBS = "/Applications/_ASM_/Developer/ZeroBraneStudio.app/Contents/ZeroBraneStudio" package.path = package.path .. ";" .. ZBS .. "/lualibs/?/?.lua;" .. ZBS .. "/lualibs/?.lua" package.cpath = package....
-- -- Scene Director Effects: -- -- + None -- + MoveFromRight -- + MoveFromLeft -- + MoveFromTop -- + MoveFromBottom -- + OverFromRight -- + OverFromLeft -- + OverFromTop -- + OverFromBottom -- + CrossFade -- + FadeIn -- + FadeOut -- local SceneDirectorEffects = { None = function(e) e.to.x =...
--[[ TheNexusAvenger Class for a Team Destruction round. --]] local DEFAULT_RESPAWN_TIME = 3 local TEAM_COLOR_NAME_TO_NAME = { ["Bright red"] = "Red team", ["Bright blue"] = "Blue team", ["Bright green"] = "Green team", ["Bright yellow"] = "Yellow team", } local ReplicatedStorage = game:GetService(...
-- Pretty golden punctuation -- Author: berezaa local module = {} --[[ local assetFolder = script.Parent.Parent:WaitForChild("assets") local replicatedStorage = game:GetService("ReplicatedStorage") local collectionService = game:GetService("CollectionService") local runService = game:GetService("RunService") loca...
object_mobile_meatlump_m_02_greeter = object_mobile_shared_meatlump_m_02_greeter:new { } ObjectTemplates:addTemplate(object_mobile_meatlump_m_02_greeter, "object/mobile/meatlump_m_02_greeter.iff")
CPUGateActions("Memory") local i = 1 CPUGateActions["memory-program-counter-edge-trigger"] = { order = i, name = "Program Counter (Edge Triggered)", inputs = {"Increment", "Load", "LoadAddress", "Reset", "Clock"}, outputs = {"Address"}, output = function(gate, Increment, Load, LoadAddress, Reset, Clock) lo...
local M = {} function M.test() local cairo = require "org.xboot.cairo" local M_PI = math.pi local cs = cairo.image_surface_create(cairo.FORMAT_ARGB32, 400, 400) local cr = cairo.create(cs) cr:save() cr:set_source_rgb(0.9, 0.9, 0.9) cr:paint() cr:restore() local pat = cairo.pattern_create_linear(0.0, 0.0,...
CraftableItems = { ['weapon_specialcarbine'] = { craftingDesc = "LOREM IPSUR", craftingParts = { ['consumable_cigar'] = 10, ['consumable_corn'] = 10, } }, }
package("chipmunk2d") set_homepage("https://chipmunk-physics.net/") set_description(" A fast and lightweight 2D game physics library.") set_urls("https://github.com/slembcke/Chipmunk2D/archive/Chipmunk-$(version).tar.gz", "https://github.com/slembcke/Chipmunk2D.git") add_versions("7.0.3"...
local nmap = require "nmap" local match = require "match" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" description = [[ Tests a list of known ICAP service names and prints information about any it detects. The Internet Content Adaptation Protocol (ICAP) is used to...
require 'glfw' local old_states = {} local states = {} local player_keys = { string.byte('A'), string.byte('F'), string.byte('H'), string.byte('L') } local player_joysticks = { glfw.JOYSTICK_1, glfw.JOYSTICK_2, glfw.JOYSTICK_3, glfw.JOYSTICK_4 } function held(i) assert(1 <= i and i <= 4) return ...
--[[ indentation for SciTE version 1.1 - copyleft by Prim, Andras : do with this code whatever you want Handled languages: HTML, PHP, C, CPP, JavaScript, embedded JavaScript, XML This script uses the syntax highlight info, so it works correctly, when the correct lexer is used. Put something like this in your User opt...
DefaultConfig = { IdleResources = {}, Restrict = { Server = false, Client = false, Stream = true, DataFile = true, ServerExport = false, ClientExport = false, }, Verbose = false, } --- @param item any --- @param array table<any, any> --- @return boolean function IsInTable(item, array) ...
-- Sitting API -- Node that can be sat on, must contain meta data table like: {is_busy_by = playername, pos = {x, y, z}, anim = {range, speed, blend}}. In future versions a support will be added for random selection of animations. chairs = {} function chairs.attach_player_to_node (attacher, node_pos, attach_pos, cur_...
local config = { [8009] = {storageKey = Storage.ChildrenoftheRevolution.SpyBuilding01, text = 'An impressive ammount of fish is stored here.'}, [8010] = {storageKey = Storage.ChildrenoftheRevolution.SpyBuilding02, text = 'A seemingly endless array of weapon stretches before you into the darkness.'}, [8011] = {storag...
-- Copyright (C) 2021 RexGao (Rifle-Rex) -- Copyright (C) 2013 LazyZhu (lazyzhu.com) -- Copyright (C) 2013 IdeaWu (ideawu.com) -- Copyright (C) 2012 Yichun Zhang (agentzh) local sub = string.sub local tcp = ngx.socket.tcp local insert = table.insert local concat = table.concat local len = string.len local null = ngx....
_menuPool = NativeUI.CreatePool() function ShowNotification(text) SetNotificationTextEntry("STRING") AddTextComponentString(text) DrawNotification(false, false) end function has_hash_value (tab, val) for index, value in ipairs(tab) do if GetHashKey(value) == val then return true ...
-- Add root directory to package.path so the lib can be found by require package.path = package.path .. ";../../?.lua" -- Save old love.graphics before overriding it so we can toggle between it for -- the purpose of the demo local origLoveGraphics = love.graphics require "autobatch" --==============================...
local d_zigzag = require'pb.standard.zigzag' local struct = require'struct' local zigzag = d_zigzag.zigzag64 local unzigzag = d_zigzag.unzigzag64 local utils = require"utils" local first = tonumber(arg[1] or -10000000) local last = tonumber(arg[2] or 10000000) local bits = tonumber(arg[3] or 64) if first > last the...
local assets = { Asset( "IMAGE", "images/inventoryimages/bullet_nato_9mm_item.tex" ), Asset( "ATLAS", "images/inventoryimages/bullet_nato_9mm_item.xml" ), } local function fn() local inst = CreateEntity() inst.entity:AddTransform() inst.entity:AddNetwork() MakeInventoryPhysics(inst) inst:AddTa...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] CW_ENGLISH = Clockwork.lang:GetTable("English"); CW_ENGLISH["StaminaRegenerationS...
return _csharp_getType("reflection.LuaModule");
---------------------------------------------------------------------------------------------------- -- localized English (Spells module) strings -- --get the add-on engine local Engine = _G.Cecile_QuickLaunch; --prepare locale local L = LibStub("AceLocale-3.0"):NewLocale(Engine.Name, "enUS", true); if not L then ret...
--------------------------------------------- -- LOVE Error handling code. --------------------------------------------- -- Colors. (Only one for now) c = { { name = "#0072ff", r = 0, g = 114, b = 255 } } -- This will be displayed at any time. display = { message = "", title = "ERROR" } -- Helpe...
local addonName = "BarberShopProfiles" local BarberShopProfiles = LibStub("AceAddon-3.0"):NewAddon(addonName, "AceEvent-3.0") function BarberShopProfiles:OnInitialize() self.db = LibStub("AceDB-3.0"):New(addonName .. "DB", { race = { profiles = {}, }, }) self.systemProfile = {...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") AddCSLuaFile("uuid.lua") AddCSLuaFile("von.lua") AddCSLuaFile("middleclass.lua") AddCSLuaFile("/classes/base.lua") AddCSLuaFile("/classes/stats.lua") AddCSLuaFile("/classes/character.lua")
local DrawMenuSystem = class("DrawMenuSystem", System) local background = {r = 0, g = 0, b = 0} function DrawMenuSystem:draw() local menu = MenuController.getMenu() love.graphics.setColor(background.r, background.g, background.b, 200) love.graphics.rectangle("fill", 0, 0, love.graphics.getWidth(), love.graphics...
--[[ ____ _ | __ ) ___ _ __| | ____ ____ _ _ __ ___ | _ \ / _ \| '__| |/ /\ \ /\ / / _` | '__/ _ \ | |_) | (_) | | | < \ V V / (_| | | | __/ |____/ \___/|_| |_|\_\ \_/\_/ \__,_|_| \___| ~Forever Better tha...
#!/usr/bin/env lua -- -*- lua -*- -- copyright: 2012 Appwill Inc. -- author : KDr2 -- module("d2_test",package.seeall) local JSON = require("cjson") function hello(req, resp, name) if req.method=='GET' then -- resp:writeln('Host: ' .. req.host) -- resp:writeln('Hello, ' .. ngx.unescape_uri(name)...
local Prop = {} Prop.Name = "Mesa 5-325 Grif Dr" Prop.Cat = "Apartments" Prop.Price = 750 Prop.Doors = { Vector( -1278, 9218, 940 ), Vector( -974, 8962, 940 ), Vector( -946, 9470, 940 ), Vector( -826, 9426, 940 ), Vector( -946, 9342, 940 ), } GM.Property:Register( Prop )
--[[ LuaJIT FFI bindings for the Gumbo HTML5 parsing library. Copyright (c) 2013-2014 Craig Barnes Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE...
return game:DefineFastFlag("FixInspectAndBuyPerformFetch", false)
local VersionUpdateData = {} local VersionUpdateControl = class( "VersionUpdateControl") function VersionUpdateControl:ctor(view, versionUpdateConsts) -- upvalue VersionUpdateData = versionUpdateConsts self.view = view --外部类----------------------- -- self._fileUtils = self:getFileUtils() self...
EventContext = CS.FairyGUI.EventContext EventListener = CS.FairyGUI.EventListener EventDispatcher = CS.FairyGUI.EventDispatcher InputEvent = CS.FairyGUI.InputEvent NTexture = CS.FairyGUI.NTexture Container = CS.FairyGUI.Container Image = CS.FairyGUI.Image Stage = CS.FairyGUI.Stage Controller = CS.FairyGUI.Controller GO...
print('hello, slience') print(type(1)) print(type(0.1)) print(type(false)) print(type(true)) print(type(nil)) print(type(print)) print(type(type)) local name = 'kk' local age print(name) print(age) if true then print('true is true') else print('true is false') end if false then ...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Hydraulic Controller" ENT.WireDebugName = "Hydraulic" if CLIENT then return end -- No more client function ENT:Initialize() BaseClass.Initialize(self) WireLib.CreateInputs( self, { "Length (Sets the length of the hydraulic)", "In (D...
mat_rags_outfit = { { {objectTemplate = "object/tangible/wearables/shirt/shirt_s04.iff", customizationVariables = {{"/private/index_color_1", 06}} }, {objectTemplate = "object/tangible/wearables/pants/pants_s12.iff", customizationVariables = {} }, {objectTemplate = "object/tangible/wearables/shoes/shoes_s03.iff"...
--- @module turtle if not turtle then error("Cannot load turtle API on computer", 2) end -- @deprecated Historically this table behaved differently to the main turtle -- API, but this is no longer the case. You should not need to use it. native = turtle.native or turtle local function addCraftMethod(object) ...
----------------------------------------------------------------------------------------------------------------------- -------------Skrypt stworzony przez Kuba200#2512 dla ScrapRoleplay "jebać pascolda bo robi mi loda (------------------- ------------------------------------------------------------------------------...
#!/usr/bin/env lua package.path = package.path..";../?.lua" local glfw = require("moonglfw") local gl = require("moongl") local glmath = require("moonglmath") local new_plane = require("common.plane") local new_sphere = require("common.sphere") local new_teapot = require("common.teapot") local new_quad = require("commo...
local module = { authenticationRequired = true; }; function module.run(authentication) local endpoint = "https://users.roblox.com/v1/users/authenticated" local response,body = api.request("GET",endpoint,{},{},authentication,false,true); if(response.code == 200) then return json.decode(body); ...
--To make a bot user go to https://discordapp.com/developers/applications/me -- Click "+ New user" -- Add imgs to the rich presence assets area -- Copy and paste the client user id Citizen.CreatThread(function() while true do local player = GetPlayerPed(-1) Citizen.Wait(2*1000) S...
local BasicPane = require(script.Parent.BasicPane) local Checkbox = setmetatable({}, BasicPane) Checkbox.__index = Checkbox Checkbox.ClassName = "Checkbox" function Checkbox.new(options) local gui = script.Parent.Parent.GuiTemplates.CheckboxTemplate:Clone() gui.Name = "Checkbox" local self = setmetatable(BasicPane...
menuState = {} function menuState:init() self.text = "Select an option." self.buttons = { { text = "Start", selected = true, onPress = function() Gamestate.switch(overworldState) end }, { text = "Optio...
Main.grids = {} Main.cached = {} Main.objects = {} --[[ Functions: Main ]]-- function Main:Update() local ped = PlayerPedId() local pedCoords = GetEntityCoords(ped) local instance = GetResourceState("instances") == "started" and exports.instances:GetInstance() local coords = GetFinalRenderedCamCoord() local near...
if(GetRealmName() == "瑪拉頓")then WP_Database = { ["Archenemy"] = "ET:712/91%LB:784/98%EM:847/88%", ["詩情畫意"] = "RT:540/74%LB:776/97%RM:688/73%", ["張假人"] = "LT:749/95%LB:776/97%EM:809/84%", ["若熙"] = "LT:626/98%LB:766/96%EM:705/85%", ["蒼鬼"] = "ET:626/84%LB:768/97%RM:687/73%", ["銀月飛影"] = "ET:596/79%LB:772/97%EM:775/81%", ["...
local StateChart = require 'statechart' local fetchMachine = StateChart.machine { initial = 'idle', context = { retries = 0, }, states = { idle = { events = { FETCH = { target = 'loading', actions = function() print('idle -> loading') end ...
local syntax_text = { bgcolor = "darkblue"; bracketmatch = true; { name = "Emphasize1"; fgcolor = "green"; pattern = [[ ^\s*__.* | \b_.*?_\b ]]; }, { name = "Emphasize2"; color = "yellow on gold"; pattern = [[ \*\*.*?\*{2,} ]]; }, { name = "Important"; fgcolor = "red"; pattern = [...
function ACF_RoundBaseGunpowder(PlayerData, Data, ServerData, GUIData) local BulletMax = ACF.Weapons["Guns"][PlayerData["Id"]]["round"] GUIData["MaxTotalLength"] = BulletMax["maxlength"] * (Data["LengthAdj"] or 1) Data["Caliber"] = ACF.Weapons["Guns"][PlayerData["Id"]]["caliber"] Data["FrArea"] = 3.1416 * (Data["C...
print(1 == 2, 3.2 == 3.2, 3.2 == 2, {} == 1, {} == {}) --> =false true false false false print(1 < 2, 3.5 < -1, 2 < 1e10, 1e5 < 1e6, "xyz" < "xyza") --> =true false true true true print(1 <= 2, 3.5 <= -1, 2 <= 1e10, 1e5 <= 1e6, "xyz" <= "xyza") --> =true false true true true print(pcall(function() return {} <= {} en...
-- This is a JIRA custom writer for pandoc. -- -- Invoke with: pandoc --to jira.lua -- -- Note: you need not have lua installed on your system to use this -- custom writer. However, if you do have lua installed, you can -- use it to test changes to the script. 'lua sample.lua' will -- produce informative error messa...
function love.conf(t) t.version = "0.10.0" t.window.title = "Road Rage" t.window.width = 1280 t.window.height = 640 t.window.vsync = false t.window.fullscreen = false t.modules.joystick = false t.modules.physics = false t.modules.mouse = false end
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
--v2.0.0 --@sec: SignalFire --@ord: -1 --@doc: The SignalFire module provides a small implementation of the [observer -- pattern][observer]. -- -- Notable differences from Roblox's Signal pattern: -- - Everything is a function. -- - Listeners may be threads as well as functions. -- - Listeners are always deferred. -- ...
-- ^ctrl !alt +shift (the order is important when stacking) return { ["escape"] = {"quit", "editor.select.clear"}, ["a"] = "left", ["d"] = "right", ["s"] = "down", ["w"] = "up", ["space"] = {"jump"},--, "editor.tool.entity"}, ["lshift"] = {"run", "editor.line", "editor.select.add"}, ["r...
ENT.Base = "base_gmodentity" ENT.Type = "anim" ENT.PrintName = "Container" ENT.Author = "vin" ENT.Purpose = "" ENT.Instructions = "Press E" ENT.Category = "impulse" ENT.Spawnable = true ENT.AdminOnly = true ENT.HUDName = "Storage Container" ENT.HUDDesc = "Allows a small amount of items to be stored in a p...
Queue = {} Queue.Ready = false Queue.Exports = nil Queue.ReadyCbs = {} Queue.CurResource = GetCurrentResourceName() if Queue.CurResource == "Fila_Brasil_Colonia" then return end function Queue.OnReady(cb) if not cb then return end if Queue.IsReady() then cb() return end table.insert(Queue.ReadyCbs, cb) en...
local the = require "the" local oo = the.oo local Data = require "data" require "ok" local Bore = require "bore" local function bore1( all,bore) all=Data() all:read(the.csv .. 'auto93.csv') Bore(all) end ok{bore = bore1}
local deathwall = {} deathwall.x = -400 deathwall.w = 400 deathwall.h = 720 deathwall.delay = 0 deathwall.start = 60 * 3 deathwall.data = {} deathwall.color = {252/255, 58/255, 0/255, 1} deathwall.speed = 1 deathwall.temp_speed = 0 DEATHWALL_SPEED_INCREASE = 0.6 DEATHWALL_MAX_SPEED = 9 DEATHWALL_TEMP_SPEEDUP = 33...
HelpNotification = function(msg) AddTextEntry('mLibsHelp', msg) BeginTextCommandDisplayHelp('mLibsHelp') EndTextCommandDisplayHelp(0, false, true, -1) end ShowNotification = function(msg) AddTextEntry('mLibsNotify', msg) SetNotificationTextEntry('mLibsNotify') DrawNotification(false, true) end exports('Sh...
ENT.Type = "anim" ENT.Base = "base_entity" ENT.PrintName = "Smoke Grenade" ENT.Author = "" ENT.Information = "" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.Model = "models/weapons/fas2/world/explosives/m18_thrown.mdl" ENT.FuseTime = 3.5 ENT.ArmTime = 0 ENT.ImpactFuse = false ENT.Detonated = false ENT.SmokeD...
--- -- @author wesen -- @copyright 2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local FileSystemEntryTestBase = require "tests.unit.luacov.html.CoverageData.FileSystemEntryTestBase" --- -- Checks that the CoverageData.Directory class works as expected. -- -- @type TestDirectory -- local TestDirecto...
local modules = { } local mdl = Model("models/dronesrewrite/upgrade_case/upgrade_case.mdl") DRONES_REWRITE.AddModule = function(name, tab) modules[name] = table.Copy(tab) -- It's bad bad bad local ENT = { } ENT.Type = "anim" ENT.Base = "base_anim" ENT.PrintName = name ENT.Category = "Drones Rewrite Upgrades...
--This script is a news tree at the right side, at the left a tree with chosen titles and texts, in webbrowser the text corresponding to the titles is shown --1. basic data --1.1 libraries require("iuplua") --require iuplua for GUIs require("iupluaweb") --require iupluaweb for webbrowser require("lu...