content
stringlengths
5
1.05M
-- Server-side hooks should be added here. -- Instead of using hook.Add, like you would while developing a Garry's Mod addon, -- you should instead create a gamemode-like function here inside the SCHEMA table. --- Do nothing every 60 seconds. function SCHEMA:OneMinute() -- Since the SCHEMA::Test module is defined in...
local function printUsage() print( "Usage:" ) print( "wget <url> [filename]" ) end local tArgs = { ... } if #tArgs < 1 then printUsage() return end if not http then printError( "wget requires http API" ) printError( "Set http_enable to true in ComputerCraft.cfg" ) return end local functi...
UIMenuDetailsWindow = setmetatable({}, UIMenuDetailsWindow) UIMenuDetailsWindow.__index = UIMenuDetailsWindow UIMenuDetailsWindow.__call = function() return "UIMenuWindow", "UIMenuDetailsWindow" end ---New ---@param Mom number ---@param Dad number function UIMenuDetailsWindow.New(...) local args = {...} if #a...
local ipc = require "luci.ip" local m = Map("mqos", translate("Quality of Service by MAC")) local s = m:section(TypedSection, "global", "") s.anonymous = true local e = s:option(Flag, "enabled", translate("Enable")) local ifa = s:option(Value, "interface", translate("Interface"),translate("Need to save the app firs...
-- AlarmClock_UI -- Author: Isaac Supeene -- DateCreated: 4/4/2020 1:53:04 PM -------------------------------------------------------------- local function Verbose(message) -- print(message); end Verbose("Start Initialization"); local UpcomingAlarms = {}; --------------- -- Utilities -- --------------- -- Use th...
local M = {} function M.setup() vim.g.vimwiki_list = {{ path = '~/Privat/Notes/', path_html = '~/Privat/Notes/html', syntax = 'markdown', index = 'SUMMARY', ext = '.md', }} vim.g.vimwiki_listsyms = '✗○◐●✓' vim.g.vimwiki_listsym_rejected = '✗' vim.g.vimwiki_dir_link = 'READM...
Storyboard = {} sceneName = nil sceneObject = nil preventDoubleClickTime = nil useGUILayout = nil runInEditMode = nil enabled = nil isActiveAndEnabled = nil transform = nil gameObject = nil tag = nil rigidbody = nil rigidbody2D = nil camera = nil light = nil animation = nil constantForce = nil renderer = nil audio = n...
-- -- simple example to illustrate the use of gen_monitor_state. -- require("rfsm_ext") --- generate a function which ramdomly returns true n of m times -- @param n -- @param m function gen_sometimes_true(n, m) math.randomseed( os.time() ) return function () if n > math.random(0,m) then return true ...
local root = script.Parent.Parent local PluginModules = root:FindFirstChild("PluginModules") local Style = require(PluginModules:FindFirstChild("Style")) local includes = root:FindFirstChild("includes") local Roact = require(includes:FindFirstChild("Roact")) local Components = root:FindFirstChild("Components") local...
local Pane = require("easymark.pane") local mark = require("easymark.mark") local config = require("easymark.config") local utils = require("easymark.utils") -- instance of Easymark Pane local pane local function get_opts(...) local args = {...} if vim.tbl_islist(args) and #args == 1 and type(args[1]) == "table" t...
ardour { ["type"] = "EditorAction", name = "Sort Regions by Pitch in Name", license = "MIT", author = "David Healey", description = [[Sorts the selected regions by pitch (in their name) along the timeline]] } function factory () return function () -- return true if route "a" should be or...
fx_version "cerulean" games { "gta5" } files { "vehiclelayouts.meta", "handling.meta", "vehicles.meta", "carcols.meta", "carvariations.meta", } data_file "VEHICLE_LAYOUTS_FILE" "vehiclelayouts.meta" data_file "HANDLING_FILE" "handling.meta" data_file "VEHICLE_METADATA_FILE" "vehicles.meta" data_fi...
SoundDB = { Sounds = { ['Auto'] = { BankID = 0, ['AR_LowRate'] = { SoundId = 0, Parameters = { ['distance'] = { Index = 0, Min = 0.0, Max = 300.0 }, ['variation'] = { Index = 1, Min = 0.0, Max = 1.0 }, ['focus'] = { Index = 2, Min = 0.0, Max = 1.0 }, ['(listener angle)'] = { Index =...
AddCSLuaFile() EMV_DEBUG = false local A = "AMBER" local DR = "D_RED" local SW = "S_WHITE" local PI = {} PI.Positions = { { Vector(0,-114,51.3), Angle(0,0,-30), "brake_light" }, -- 1 { Vector(-30.4,-112,46), Angle(0,-10,-20), "tail_light" }, -- 4 { Vector(30.4,-112,46), Angle(0,10,-20), "tail_light" }, -- 5 ...
local emptySlide = {} function emptySlide.new() local textOptions = { text = "You need to create some notecards before you can view the speech.", x = .5 * _W, y = .5 * _H, width = _W * .95, font = native.systemFontBold, fontSize = 40, align = "center...
-- local M = { { name = { zh = '工程', en = 'Project', }, { name = { zh = '自动保存', en = 'Auto save', }, key = 'auto_save', type = 'bool', }, { name = { ...
-- Shared part /*--------------------------------------------------------------------------- Sound crash glitch ---------------------------------------------------------------------------*/ local entity = FindMetaTable("Entity") local EmitSound = entity.EmitSound function entity:EmitSound(sound, ...) if string.find(s...
-- source to AST parser module local parse_expression, parse_stat_list local LexState, with_lex local lex_binary_bind, lex_follows, lex_next, lex_syntax_closes, lex_syntax_error, lex_syntax_expect, lex_test_next, lex_unary_bind, lex_unary_bind_value local lookup_stat_map = {} local lookup_exp_map = {} do local node...
--- Tserial v1.5, a simple table serializer which turns tables into Lua script -- @author Taehl (SelfMadeSpirit@gmail.com) Tserial = {} TSerial = Tserial -- for backwards-compatibility --- Serializes a table into a string, in form of Lua script. -- @param t table to be serialized (may not contain any circular refere...
return { name = "curie3-0", properties={ wall={ {code = "00016", coord_x = 32, coord_y = 16}, {code = "00012", coord_x = 32, coord_y = 8}, {code = "00014", coord_x = 18, coord_y = 16}, {code = "00014", coord_x = 20, coord_y = 16}, {code = "000...
-- manipulate GValue objects from lua -- pull in gobject via the vips library local ffi = require "ffi" local verror = require "vips.verror" local version = require "vips.version" local Image = require "vips.Image" local vips_lib local gobject_lib local glib_lib if ffi.os == "Windows" then vips_lib = ffi.load("l...
require 'utils' local file = io.open('base.cfg') local data = file:read('*all') file:close() local lines = data:split('\n') local dict = {} for _, line in ipairs(lines) do local result = line:split('=') if result[1] and result[2] then result[2] = string.gsub(result[2], '%(', '(') result[2] = string.gsub(resul...
-- Copyright 2020 Weizheng Li <lwz322@qq.com> -- Licensed to the public under the MIT License. local http = require "luci.http" local uci = require "luci.model.uci".cursor() local sys = require "luci.sys" module("luci.controller.frps-arm", package.seeall) function index() if not nixio.fs.access("/etc/config/frps-ar...
local ModelUtils = require('motras_modelutils') local PlatformSurface = {} function PlatformSurface:new(o) o = o or {} o.models = {} if o.mainPart then table.insert(o.models, ModelUtils.makeTaggedModel( o.mainPart, o.transformation, o.tag )...
local assign = import("../assign") local typeKey = import("../typeKey") local typeof = import("../functions/typeof") local Vector3 = {} setmetatable(Vector3, { __tostring = function() return "Vector3" end, }) local prototype = {} local metatable = {} metatable[typeKey] = "Vector3" function met...
function checkinit() if who ~= self or iter > 100 then return true end -- no triplet for _, t in ipairs(T34.all) do if init:closed():ct(t) >= 3 then return false end end local yaopairct = 0 local yaos = { "1m", "9m", "1p", "9p", "1s", "9s", "1f", "2f", "3f", "4f", "1y", "2y", "...
nym_patrol_weak = Creature:new { objectName = "@mob/creature_names:nym_patrol_weak", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "nym", faction = "nym", level = 33, chanceHit = 0.4, damageMin = 305, damageMax = 320, baseXp = 3370, baseHAM = 8600, baseHAMmax = 10500, armor = 0, resis...
local media = LibStub("LibSharedMedia-3.0") --Event and Damage option values SCT.LOCALS.OPTION_EVENT1 = {name = "Damage", tooltipText = "Enables or Disables melee and misc. (fire, fall, etc...) damage"}; SCT.LOCALS.OPTION_EVENT2 = {name = "Misses", tooltipText = "Enables or Disables melee misses"}; SCT.LOCALS.OPT...
object_intangible_pet_katarn = object_intangible_pet_shared_katarn:new { } ObjectTemplates:addTemplate(object_intangible_pet_katarn, "object/intangible/pet/katarn.iff")
_G["ITEM_LINK_REGEX"] = "|c%x+|Hitem[0-9:]+|h.-|h|r" _G["ALL_CLASSES"] = FillLocalizedClassList({}) function GetVersionString(ver) if ver >= 10 then return GetVersionString(floor(ver/10)) .. "." .. tostring(ver % 10) else return "v" .. tostring(ver) end end local playerNameToClassCache = {...
include("shared.lua") --[[--------------------------------------------------------- Name: Draw Purpose: Draw the model in-game. Remember, the things you render first will be underneath! ---------------------------------------------------------]] function ENT:Draw() --self.BaseClass.Draw(self) -- We want to overri...
local function AddedMe(msg) local text = msg.content_.text_ if ChatType == 'sp' or ChatType == 'gp' then if text and text:match("منو ضافني") then if not DevAek:get(AEK..'Aek:Added:Me'..msg.chat_id_) then tdcli_function ({ID = "GetChatMember",chat_id_ = msg.chat_id_,user_id_ = msg.sender_user_id_},function(arg,da) if ...
-- Shotgun by KirkyTurky12 local Player = game.Players.LocalPlayer Player.CameraMode = "Classic" --Player.CameraMode = "LockFirstPerson" local Camera = workspace.CurrentCamera Camera:ClearAllChildren() local Char = Player.Character local Torso = Char.Torso local Mouse = Player:GetMouse() local Active = true local Weld ...
--weight_priority.lua local ipairs = ipairs local tinsert = table.insert local FAIL = luabt.FAIL local RUNNING = luabt.RUNNING local SUCCESS = luabt.SUCCESS local node_execute = luabt.node_execute local node_reorder = luabt.node_reorder local WPriorityNode = class() --#weight == s...
object_tangible_wearables_cybernetic_cybernetic_crafted_s02_torso = object_tangible_wearables_cybernetic_shared_cybernetic_crafted_s02_torso:new { } ObjectTemplates:addTemplate(object_tangible_wearables_cybernetic_cybernetic_crafted_s02_torso, "object/tangible/wearables/cybernetic/cybernetic_crafted_s02_torso.iff")
object_tangible_wearables_armor_armor_imperial_guard_saber_armor_imperial_guard_saber_helmet = object_tangible_wearables_armor_armor_imperial_guard_saber_shared_armor_imperial_guard_saber_helmet:new { } ObjectTemplates:addTemplate(object_tangible_wearables_armor_armor_imperial_guard_saber_armor_imperial_guard_saber_hel...
------------------------------------------------------------------ -- -- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Copyright (C) 2017-2019 Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of lua-lluv-qless library. --...
local LSM = LibStub('LibSharedMedia-3.0') -- backgrounds LSM:Register('background', 'brushedmetal', [[Interface\AddOns\PillesMedia\media\backgrounds\brushedmetal.tga]]) LSM:Register('background', 'Chisel', [[Interface\AddOns\PillesMedia\media\backgrounds\Chisel.tga]]) LSM:Register('background', 'ChiselLight', [[Interf...
function love.conf(t) t.identity = 'love-grid-based-movement' t.version = '11.3' -- Window t.window.title = 'Love Grid Based Movement' t.window.width = 512 t.window.height = 480 t.window.vsync = false t.releases = { title = 'love-grid-based-movement', loveVersion = '11....
function GM:GetHL2CamPos() return { Vector( 356, 3581, 525 ), Angle( 13, 0, 0 ) }; end function GM:GetCACamPos() return Vector( 2711, 4057, 3507 ); end function GM:GetCombineCratePos() return { Vector( 2593, 3954, 1937 ), Angle() }; end function GM:GetCombineRationPos() return { Vector( 2579, 4012,...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by apple. --- DateTime: 2018/8/30 下午10:00 --- --- @class ShootEffect ShootEffect = GameObject:extend() function ShootEffect:new(area,x,y,opts) ShootEffect.super.new(self,area,x,y,opts) self.w = 8 self.timer:tween(0.1,self,{w=0},'in-out-c...
--[[ Written by 4tla2 Using the Unlicense https://unlicense.org ]] if SERVER then --Init basic stuff local SystemType = package.config:sub(1,1) CreateConVar("ttt_end_random_music_wintype", 0, FCVAR_SERVER_CAN_EXECUTE, "Enable if you want teamspecific win music at the end of the round",...
return { tone = { _ = { molomowchow = { little_girl = { title = "Expanded Little Girl Tone" }, young_lady = { title = "Expanded Young Lady Tone" }, golden_knight = { title = "Expanded Golden Knight...
smartshop={user={},tmp={},dir={{x=0,y=0,z=-1},{x=-1,y=0,z=0},{x=0,y=0,z=1},{x=1,y=0,z=0}},dpos={ {{x=0.2,y=0.2,z=0},{x=-0.2,y=0.2,z=0},{x=0.2,y=-0.2,z=0},{x=-0.2,y=-0.2,z=0}}, {{x=0,y=0.2,z=0.2},{x=0,y=0.2,z=-0.2},{x=0,y=-0.2,z=0.2},{x=0,y=-0.2,z=-0.2}}, {{x=-0.2,y=0.2,z=0},{x=0.2,y=0.2,z=0},{x=-0.2,y=-0.2,z=0},{x=0...
--[[ --=====================================================================================================-- Script Name: Vote Kick, for SAPP (PC & CE) Description: Vote to kick a disruptive player from the server. Command Syntax: /votekick [pid] Typing /votekick by itself will show you a list of player names and th...
-- Welcome to the mRP Addon! -- -- --------------------------------------------------------------------------------------------------------- -- BOOTSTRAP FUNCTIONS AND CALLS -- --------------------------------------------------------------------------------------------------------- -- ---------------------------------...
local PLUGIN = PLUGIN function PLUGIN:ClockworkAddSharedVars(globalVars, playerVars) playerVars:Number("legshotamount", 0) playerVars:Number("armshotamount", 0) end
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Watch for application launch/terminate events -- -- This module is based primarily on code from the previous incarnation of Mjolnir by [Markus Engelbrecht](https://github.com/mgee) and [Steven Degutis](https://github.com/sdegutis/). ---@class h...
assert(8 + 5 * 3 == 23) -- illustration of precedence assert(8 - 5 - 2 == 1) -- illustration of left associativity assert(3 ^ 5 == 243) -- exponentiation assert(19 / 5 == 3.8) -- normal division assert(19 // 5 == 3) -- floor division assert(0x1000 == 4096) -- he...
util.AddNetworkString("rotgb_statchanged") util.AddNetworkString("rotgb_gamemode") net.Receive("rotgb_statchanged", function(length, ply) if IsValid(ply) then local func = net.ReadUInt(4) if func == RTG_STAT_INIT then if not ply.rtg_XP then hook.Run("InitializePlayer", ply) end if not ply.rtg_Previou...
-- blip id : https://marekkraus.sk/gtav/blips/list.html pickupItems = { -- Handguns -- { id = "PICKUP_WEAPON_PISTOL", name = "Pistol", blipId = 156 }, -- { id = "PICKUP_WEAPON_APPISTOL", name = "AP Pistol", blipId = 156 }, -- { id = "PICKUP_WEAPON_COMBATPISTOL", name = "Combat Pistol", blipId = 156 },...
class 'SkydivingStats' function SkydivingStats:__init() self.enabled = true self.unit = 1 self.name = " м/с" self.nameTw = " км/ч" self.nameTh = " миль" self.nameFo = " м" self.nameFi = " секунд" self.flight_timer = Timer() self.last_state = 0 self.average_speed = nil self.average_angle =...
ITEM.name = "LSD" ITEM.description = "Some LSD, product quality is questionable these days." ITEM.model = Model("models/jellik/lsd.mdl") ITEM.category = "Drugs" ITEM.width = 1 ITEM.height = 1 ITEM.functions.Eat = { sound = "npc/barnacle/barnacle_gulp1.wav", OnRun = function(itemTable) local client = itemTable.play...
-- codelenses -- https://github.com/josa42/nvim-lsp-codelenses/blob/master/lua/jg/lsp/codelenses.lua -- https://github.com/neovim/neovim/blob/master/runtime/lua/vim/lsp/codelens.lua local codelens = require('vim.lsp.codelens') local log = require"navigator.util".log local mk_handler = require"navigator.util".mk_handle...
data:extend( { { type = "technology", name = "lo-radio-telemetry", icon = "__lo-radio-telemetry__/resources/icons/telemetry.png", effects = { { type = "unlock-recipe", recipe = "lo-radio-transmitter" }, { ...
--- -- @class SWEP -- @section weapon_ttt_cse if SERVER then AddCSLuaFile() end SWEP.HoldType = "normal" if CLIENT then SWEP.PrintName = "vis_name" SWEP.Slot = 6 SWEP.ViewModelFOV = 10 SWEP.ViewModelFlip = false SWEP.DrawCrosshair = false SWEP.EquipMenuData = { type = "item_weapon", desc = "vis_desc" }...
LinkLuaModifier("modifier_item_golden_eagle_relic", "items/item_golden_eagle_relic.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_golden_eagle_relic_enabled", "items/item_golden_eagle_relic.lua", LUA_MODIFIER_MOTION_NONE) item_golden_eagle_relic = class({ GetIntrinsicModifierName = function() return "...
-- 6-Speed gearboxes -- Weight local Gear6SW = 80 local Gear6MW = 160 local Gear6LW = 320 local StWB = 0.75 --straight weight bonus mulitplier -- Torque Rating local Gear6ST = 440 local Gear6MT = 1360 local Gear6LT = 10000 local StTB = 1.25 --straight torque bonus multiplier ACF.RegisterGearboxClass("6-Speed", { N...
--------------------------------------------------------------------------------------------------- -- User story: TO ADD !!! -- Use case: TO ADD !!! -- Item: Use Case: request is allowed by Policies -- -- Requirement summary: -- [SubscribeVehicleData] As a mobile app wants to send a request to subscribe for specified ...
function PLUGIN:PlayerDeath(player) player:reset_action() player:set_ragdoll_state(RAGDOLL_DUMMY) end function PLUGIN:PlayerSpawn(player) player:set_ragdoll_state(RAGDOLL_NONE) end function PLUGIN:PlayerThink(player) if !player:Alive() and player:is_ragdolled() then hook.run('PlayerDeathThink', player) ...
-- test posix library require 'posix' function testing(s) print"" print("-------------------------------------------------------",s) end function myassert(w,c,s) if not c then print(w,s) end return c end function myprint(s,...) for i=1,table.getn(arg) do io.write(arg[i],s) end io.write"\n" end ox=posix -...
-- This class provides basic mechanisms for parsing, building and -- manipulating a hierarchy of protocol headers and associated payload -- contained in a data packet. In particular, it supports -- -- Parsing and in-place manipulation of protocol headers in a -- received packet -- -- In-place decapsulation by re...
---------------------------------------------------------------------------------------------------- -- -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or -- its licensors. -- -- For complete copyright and license terms please see the LICENSE at the root of this -- distribution (the "Li...
require("config") local fluid_locomotive = { type = "locomotive", name = "Diesel-Locomotive-fluid-locomotive", icon = "__Diesel-Locomotive__/graphics/icons/diesel-locomotive.png", icon_size = 32, flags = {"placeable-neutral", "player-creation", "placeable-off-grid", "not-on-map"}, minable ...
--[[ Project: SA Memory (Available from https://blast.hk/) Developers: LUCHARE, FYP Special thanks: plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses. Copyright (c) 2018 BlastHack. ]] local shared = require 'SAMemory.shared' shared.ffi.cdef[[ typedef struct CPedAcquaintance ...
---------------------------------------- -- Sassilization -- http://sassilization.com -- By Sassafrass / Spacetech / LuaPineapple ---------------------------------------- local pcall = pcall local ipairs = ipairs hook.Add("PostDrawTranslucentRenderables", "unit.RenderUnits", function() local ok, err = true...
--[[ desc:联盟管理 auth:Caorl Luo ]] local pairs = pairs local ipairs = ipairs local cjson = require("api_json") local skynet = require("skynet") local class = require("class") local timer = require("timer") local table = require("extend_table") local debug = require("extend_debug") local senum = require("managerE...
object_tangible_collection_deathtrooper_delta_pet_cage_01 = object_tangible_collection_shared_deathtrooper_delta_pet_cage_01:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_deathtrooper_delta_pet_cage_01, "object/tangible/collection/deathtrooper_delta_pet_cage_01.iff")
local challenges = {} challengeEvents = {} local challengeRunning = false local challengeStatus = "" function challenges.resetEvents() -- resets all events that a challenge could be giving. --challengeEvent.mapRenderingDoneCallback = nil for k, ev in pairs(challengeEvents) do challengeEvents[k] = nil end chall...
------------------------------- -- Players function gameModeInit(player) local playerID = getElemID(player) local playerData = g_Players[playerID] for k,v in pairs(playerData) do if k ~= 'elem' and k ~= 'keys' and k ~= 'blip' then playerData[k] = nil end end setPlayerMoney(player, 0) takeAllWeapons(player...
tvs = {} controls = {} function link_control_tv (control, tv) map (control, 'KEY_PRESSED', tv, 'TURN_ON', function (_, key) return key == 0 end) map (control, 'KEY_PRESSED', tv, 'PLAY', function (_, key) return key == 1 end) map (control, 'KEY_PRESSED', tv, 'PAUSE', function (_, key) retur...
local ffi = require 'ffi' require 'exports.mswindows.com' require 'exports.mswindows.automation' ffi.cdef [[ int32_t SHCreateStreamOnFileEx( const wchar_t* path, uint32_t mode, uint32_t attributes, bool32 create, IStream* reserved, IStream** out_stream); ]] return ffi.load 'shlwapi'
require("Menu/settings.lua") require("Game/targetSelector.lua") require("NPC/state.lua") --this = SceneNode() function create() local playerNode = this:findNodeByTypeTowardsRoot(NodeId.playerNode) targetSelector = TargetSelector.new(1) targetSelector.setPosition(Vec3(0)) targetSelector.setRange(512.0) ...
------------------------------------------------- -- LuaMidi library main module -- <p>All other modules are available through it. -- It also presents useful functions to handle -- MIDI files. -- -- @module LuaMidi -- @author Pedro Alves Valentim -- @license MIT ------------------------------------------------- local...
return(function(h,k,r)local l=string.char;local f=string.sub;local n=table.concat;local o=math.ldexp;local s=getfenv or function()return _ENV end;local q=select;local e=unpack or table.unpack;local j=tonumber;local function m(h)local b,c,d="","",{}local e=256;local g={}for a=0,e-1 do g[a]=l(a)end;local a=1;local functi...
return { summary = 'How to wrap Textures.', description = [[ The method used to render textures when texture coordinates are outside of the 0-1 range. ]], values = { { name = 'clamp', description = 'The texture will be clamped at its edges.' }, { name = 'repeat', descript...
-------------------------------- -- @module CCEventObject -- @extend Ref -- @parent_module db -------------------------------- -- -- @function [parent=#CCEventObject] Slot -- @param self -- @return Slot#Slot ret (return value: db.Slot) -------------------------------- -- -- @function [parent=#CCEventObjec...
Weapon.PrettyName = "M92 Beretta" Weapon.WeaponID = "m9k_m92beretta" Weapon.DamageMultiplier = 2.7 Weapon.WeaponType = WEAPON_SECONDARY
fx_version 'cerulean' games {'gta5'} description 'NPC-Keybinds' version '1.0.0' client_scripts { 'client/cl_*.lua', } client_exports { 'registerKeyMapping', } export "registerKeyMapping"
data:extend({ { type = "recipe", name = "linked-chest", enabled = "false", ingredients = { {"smart-chest", 1}, {"processing-unit", 1}, {"alien-artifact", 1} }, result = "linked-chest" } })
local L = LibStub("AceLocale-3.0"):NewLocale("Grindon", "enUS", true) L.General = { ["SegmentAlreadyStarted"] = "Segment already started", ["SegmentNotStarted"] = "Segment not started", ["SegmentStarted"] = "Segment started", ["SegmentStopped"] = "Segment stopped", ["ProfileChanged"] = "Segment was...
require 'torch' require 'sys' require 'os' require 'optim' torch.setnumthreads(2) torch.setdefaulttensortype('torch.FloatTensor') require 'nn' function trim1(s) return (s:gsub("^%s*(.-)%s*$", "%1")) end -- from PiL2 20.4 function pometicket(sec) local sec = sec or 0 local t = os.date("*t") local ts = string.form...
local function getPositionSlang(rank) return rank..((rank < 10 or rank > 20) and ({ [1] = "st", [2] = "nd", [3] = "rd" })[rank % 10] or "th") end function onPlayerFinish(player, place) if(place ~= 1) then setElementData(player, "winStreak", 0, false) end local money = 400 local points = 30 exports.v_mysql:giveP...
object_intangible_pet_som_lava_flea = object_intangible_pet_som_shared_lava_flea:new { } ObjectTemplates:addTemplate(object_intangible_pet_som_lava_flea, "object/intangible/pet/som/lava_flea.iff")
local class = require("heart.class") local M = class.newClass() function M:init(engine, config) self.engine = assert(engine) self.transformComponents = assert(self.engine.componentManagers.transform) self.localTransforms = {} self.transforms = {} self.debugTransforms = {} end function M:createComponent(id,...
-- Custom colorscheme local M = {} M.set = function(color_table) local inactive = { guifg = color_table.inactive_comment.gui, guibg = color_table.inactive_cursor.gui, ctermfg = color_table.inactive_comment.cterm, ctermbg = color_table.inactive_cursor.cterm, } return { mode = { inactiv...
local gfx = require("/dynamic/graphics_helpers.lua") function make_cage_mesh() local mesh = gfx.new_mesh() local color = 0x888888ff for i = -40, 40, 4 do gfx.add_line_to_mesh(mesh, {{i, -100, -30}, {i, -100, 30}}, {color, color}) gfx.add_line_to_mesh(mesh, {{i, 100, -30}, {i, 100, 30}}, {color, color}) ...
local sides = { [0] = "bottom", [1] = "top", [2] = "back", [3] = "front", [4] = "right", [5] = "left", [6] = "unknown", bottom = 0, top = 1, back = 2, front = 3, right = 4, left = 5, unknown = 6, down = 0, up = 1, north = 2, south = 3, west = 4, east = 5, ...
--[[ Visual indicator for the end of aiming. --]] local BEACON_SPEED_MULTIPLIER = 2 local Workspace = game:GetService("Workspace") local BeaconModule = {} --[[ Creates a beacon. --]] function BeaconModule.new() local Beacon = {} --Create the parts. Beacon.Sphere = Instance.new("Part") Beacon.Spher...
local mysplit = require("split") local verb_file = "dicts/verbs.txt" local noun_file = "dicts/nouns.txt" verb_len = 0 for _ in io.lines(verb_file) do verb_len = verb_len + 1 end noun_len = 0 for _ in io.lines(noun_file) do noun_len = noun_len + 1 end vdefault = "beating " ndefault = "off" function get_line(filena...
object_tangible_loot_creature_loot_collections_fried_icecream_components_dantooine_dorian = object_tangible_loot_creature_loot_collections_fried_icecream_components_dantooine_shared_dorian:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fried_icecream_components_dantooine_dorian, "o...
local cheat = {} cheat.jump_high = false cheat.god = false return cheat
object_building_heroic_dark_tower_b = object_building_heroic_shared_dark_tower_b:new { } ObjectTemplates:addTemplate(object_building_heroic_dark_tower_b, "object/building/heroic/dark_tower_b.iff")
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> 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 $Id$ ]]-- mod...
object_tangible_quest_meatlump_mtp_hideout_quest07_databank = object_tangible_quest_meatlump_shared_mtp_hideout_quest07_databank:new { } ObjectTemplates:addTemplate(object_tangible_quest_meatlump_mtp_hideout_quest07_databank, "object/tangible/quest/meatlump/mtp_hideout_quest07_databank.iff")
--Multiplier:30,AutoSell:Gems,By:IKedi-- local sgd = game.CoreGui['Fakt_SGD'].Top.Main.Body local sgd_k = sgd.Start_butt local sgd_m = sgd.Multiplier_box local sgd_a = sgd.AS_label.AS_cbox local rem = game:GetService("ReplicatedStorage").Events.SendTexts while wait() do if sgd_k.Text == 'Start' then return ...
local keyg=require("./utils/keygen.lua") local ran=require("./utils/randomizer.lua") local enc=require("./utils/encrypt.lua") local dec=require("./utils/decrypt.lua") local tab={ ['Keygen']=keyg, ['Randomizer']=ran, ['Encrypt']=enc, ['Decrypt']=dec, } return tab
local E, C, L = select(2, ...):unpack() ---------------------------------------------------------------------------------------- -- Core API Methods ---------------------------------------------------------------------------------------- E.UIScale = function() if C.general.autoScale then C.general.uiScal...
function upvalues( func ) local i = 0; if not func then return function() end else return function() i = i + 1 local name, val = debug.getupvalue (func, i) if name then return i,name,val end end end end function GetUpValues( func ) local data = {} for _,name,val in upvalues( func ) do ...
--imports local WIM = WIM; local _G = _G; local strsub = strsub; local string = string; local format = format; local table = table; local type = type; local pairs = pairs; --set namespace setfenv(1, WIM); db_defaults.displayColors.webAddress = { r = 1, g = 1, b = 1 }; local URL = CreateModule("URLHandler...