content
stringlengths
5
1.05M
BTBBombSite = { Client = {}, Server = {}, Properties = { fileModel = "objects/library/props/ctf/mpnots_flagbase01.cgf", ModelSubObject = "main", Radius = 2; teamName = ""; Explosion = { Effect = "explosions.rocket.soil", EffectScale = 0.2, Radius = 2, Pressure = 250, Damage ...
local theme = require(script.Parent.Parent.Parent.Themes.Current) local util = require(script.Parent.Parent.Parent.Scripts.Utils) local data = require(script.Parent.Parent.Parent.Scripts.UpdateData) local uis = game:GetService("UserInputService") local ts = game:GetService("TweenService") export type DotSliderParams =...
laserdetector = class:new() function laserdetector:init(x, y, dir) self.cox = x self.coy = y self.dir = dir self.drawable = false self.outtable = {} self.allowclear = true self.out = "off" end function laserdetector:update(dt) self.allowclear = true if self.out ~= self.prevout then self.prevout = sel...
require 'torch' require 'optim' n_feature = 3 classes = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} print'ConfusionMatrix:__init() test' cm = optim.ConfusionMatrix(#classes, classes) target = 3 prediction = torch.randn(#classes) print'ConfusionMatrix:add() test' cm:add(prediction, target) batch_size = 8 targets = torch.randpe...
-------------------- -- Sassilization -- By Sassafrass / Spacetech / LuaPineapple -------------------- ENT.Type = "anim" ENT.Base = "building_base" if CLIENT then function PlayGateAnim(len) local ent = net.ReadEntity() local string = net.ReadString() if string && ent:IsValid() then loc...
#!/usr/bin/env lua -- fetches all available jet nodes,states and methods and prints -- the basic notification info local exp = arg[1] or {} local ip = arg[2] local port = arg[3] local cjson = require'cjson' local peer = require'jet.peer'.new{ip=ip,port=port} local is_json,exp_json = pcall(cjson.decode,exp) if is_jso...
----------------------------------------- -- ID: 4396 -- Item: sausage_roll -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 6 (cap 160) -- Vitality 3 -- Intelligence -1 -- Attack % 27 -- Attack Cap 30 -- Ranged ATT % 27 -- Ranged ATT Cap 30 ----------------------------------------...
local drawing = require 'utils.drawing' local addircstr = require 'utils.irc_formatting' local M = { title = 'status', draw_status = function() end, } local keys = { [-ncurses.KEY_PPAGE] = function() local elts = math.min(status_messages.n, status_messages.max) scroll = scroll + math.max(1...
function onUpdate(elapsed) if dadName == 'bandu' then --replace the name for your character name for i=0,4,1 do setPropertyFromGroup('opponentStrums', i, 'texture', 'NOTE_assets_3D') end for i = 0, getProperty('unspawnNotes.length')-1 do if not getPropertyFromGroup('unspawnNotes', i, 'mustPress') then ...
local tl = require("tl") local function trim_code(c) return c:gsub("^%s*", ""):gsub("\n%s*", "\n"):gsub("%s*$", "") end describe("not", function() it("ok with any type", function() local tokens = tl.lex([[ local x = 1 local y = 2 local z = true if not x then ...
return { "000_base_hmac_auth", "002_130_to_140", }
-- Список наклеек TuningConfig.stickers = { -- Раздел "фигуры" { {id = 251, price = 10, level = 2}, {id = 252, price = 10, level = 2}, {id = 253, price = 10, level = 2}, {id = 254, price = 10, level = 2}, {id = 255, price = 10, level = 2}, {id = 256, price = 10, level = 2}, {id = 257, price = 20, level ...
----------------------------------- -- Area: The Shrine of Ru'Avitau -- NPC: Yve'noile -- Type: Quest Giver -- !pos 0.001 -1 0.001 178 ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:startEvent(53); end; function onEventUpdate(player,csid,option)...
local prefixCol = RPGM.Config.LogPrefixCol local messageCol = RPGM.Config.LogMessageCol local warningCol = RPGM.Config.LogWarningCol local errorCol = RPGM.Config.LogErrorCol function RPGM.Log(msg, prefixColOverride) MsgC(prefixColOverride or prefixCol, "[RPGM]: ", messageCol, msg .. "\n") end function RPGM.LogWa...
return { metadata = { {scaling_used = {"Box15kg_3D"}, subject_age = {30.0}, subject_height = {1.70}, subject_weight = {80.00}, subject_gender = {"male"}, subject_pelvisWidth = {0.2400}, subject_hipCenterWidth = {0.1700}, subject_shoulderCenterWidth = {0.4000}, subject_heelAnkleXOffset = {0.0800}, su...
-- NOTICE: This module is deprecated and has been replaced by the new `dictionary` module. This will remain in flib for -- the foreseeable future for backwards compatibility, but is no longer documented or supported. local flib_translation = {} local table = require("__flib__.table") local math = math local next = ne...
-- HereBeDragons is a data API for the World of Warcraft mapping system -- HereBeDragons-1.0 is not supported on WoW 8.0 if select(4, GetBuildInfo()) >= 80000 then return end local MAJOR, MINOR = "HereBeDragons-1.0", 33 assert(LibStub, MAJOR .. " requires LibStub") local HereBeDragons, oldversion = LibStub:NewLibra...
io.stdout:setvbuf("no") push = require "push" --require the library love.window.setTitle("Press space to switch examples") local examples = { "low-res", "single-shader", "multiple-shaders", "mouse-input", "canvases-shaders", "stencil" } local example = 1 for i = 1, #examples do examples[i] = require("e...
------------------------------------------------------------------------------------------------------------------------ -- -- Profiler.lua -- -- A profiler object. -- ------------------------------------------------------------------------------------------------------------------------ local Profiler = { Start = f...
--[==[description TODO ]==] local M = { __prefix = 'code', }
--start AdventureLib (c)2009,2010 Robin Wellner --additional Copyright (c) 2010 William Griffin ChangesLog=[["04042010 added exits command returns doors in q room added look inventory object added formatted commands list and action created FLUID stack to house Lib added console for self contained adventure. drag...
#!/usr/bin/env tarantool --package.path = "../acme-client/?.lua;"..package.path require('test.ide-debug') local acmeClient = require("acme-client") local tap = require('tap') local test = tap.test('acme-client tests') local function main_acme_client_test() local settings = { dnsName = "myname.dns", ...
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)...
--====================================================================-- -- spec/lua_json_spec.lua -- -- Testing for lua-json-shim --====================================================================-- package.path = './dmc_lua/?.lua;' .. package.path --===========================================================...
data:extend( { { type = "recipe-category", name = "crafting" }, { type = "recipe-category", name = "advanced-crafting" }, { type = "recipe-category", name = "smelting" }, { type = "recipe-category", name = "chemistry" }, { type = "recipe-category", name = "craft...
headBaseLayout= { name="headBaseLayout",type=0,typeName="View",time=0,x=0,y=0,width=92,height=92,visible=1,nodeAlign=kAlignCenter,fillParentWidth=0,fillParentHeight=0, { name="headView",type=0,typeName="View",time=107025700,x=0,y=0,width=92,height=92,nodeAlign=kAlignCenter,visible=0,fillParentWidth=0,fillParentHeig...
local PANEL = {} local color_Error = Color( 255, 0, 255 ) AccessorFunc( PANEL, "m_ConVarR", "ConVarR" ) AccessorFunc( PANEL, "m_ConVarG", "ConVarG" ) AccessorFunc( PANEL, "m_ConVarB", "ConVarB" ) AccessorFunc( PANEL, "m_ConVarA", "ConVarA" ) AccessorFunc( PANEL, "m_buttonsize", "ButtonSize", FORCE_NUMBER ...
fx_version 'cerulean' game 'gta5' description 'QB-Logs' version '1.0.0' shared_script '@qb-core/import.lua' server_scripts { 'server/server.lua', 'config.lua' }
tutorial = {} tutMap = {} tutMap.width = 5 tutMap.height = 4 for i = 0, tutMap.width+1 do tutMap[i] = {} end tutMap[1][3] = "C" tutMap[2][3] = "C" tutMap[2][4] = "C" tutMap[3][4] = "C" tutMap[4][4] = "C" tutMap[5][4] = "C" tutMap[1][2] = "PS" tutorialSteps = {} currentStep = 1 currentStepTitle...
object_tangible_furniture_flooring_tile_frn_flooring_tile_s12 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s12:new { } ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s12, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s12.iff")
-- Copyright (c) 2016 Miro Mannino -- Permission is hereby granted, free of charge, to any person obtaining a copy of this -- software and associated documentation files (the "Software"), to deal in the Software -- without restriction, including without limitation the rights to use, copy, modify, merge, -- publish, dis...
function createMissionGiverConvoTemplate(templateName, convoHandler) mission_giver_convotemplate = ConvoTemplate:new { initialScreen = "init", templateType = "Lua", luaClassHandler = convoHandler, screens = {} } mission_giver_init = ConvoScreen:new { id = "init", leftDialog = "", stopConversation = "f...
--[[ TheNexusAvenger Tests the OverridableIndexInstance class. --]] local NexusUnitTesting = require("NexusUnitTesting") local NexusPluginFramework = require(game:GetService("ReplicatedStorage"):WaitForChild("NexusPluginFramework")) local OverridableIndexInstance = NexusPluginFramework:GetResource("Base.OverridableI...
local vim = vim local api = vim.api local M = {} local globals = require 'vimwiki_server/globals' local u = require 'vimwiki_server/lib/utils' -- Should be called after a buffer is displayed in a window -- -- Will trigger the creation of a buffer's temporary file if it does not exist function M.on_enter_buffer_windo...
-------------- -- UI Class -- -------------- local File = require 'src/File' local Window = require 'src/ui/Window' local Button = require 'src/ui/Button' local Mouse = require 'src/Mouse' local UI = { backgrounds = { shop = love.graphics.newImage('graphics/ui/ShopUI.png') }, font = { spr...
workspace "TypedEngine" architecture "x86_64" startproject "TypedEditor" toolset "gcc" gccprefix "ccache " configurations { "Debug", "Release" } flags { "MultiProcessorCompile" } filter "system:windows" systemversion "latest" -- Debug / Release Operating system x64 outputdir = "%{cfg.buildcf...
function test() local arr = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } for i=1,1e7 do arr[8] = 234 arr[8] = 234 arr[8] = 234 arr[8] = 234 arr[8] = 234 arr[8] = 234 arr[8] = 234 arr[8] = 234 arr[8] = 234 arr[8] = 234 end end test()
local lapis = require("lapis") local console = require("lapis.console") do local _class_0 local _parent_0 = lapis.Application local _base_0 = { ["/lapis"] = function(self) return "Welcome to Lapis " .. tostring(require("lapis.version")) .. "!" end, ["/lapis/console"] = console.make() } _base...
-- Transforming Amulet definitions local modpath = minetest.get_modpath("transform") dofile(modpath .. "/amulet_actions.lua") minetest.register_craftitem( "transform:amulet", { description = "Transformation Amulet", inventory_image = "amulet_front.png", light_source = minetest.LIGHT_MA...
--[[ Name: LibBabble-CreatureType-3.0 Revision: $Rev: 162 $ Maintainers: ckknight, nevcairiel, Ackis Website: http://www.wowace.com/projects/libbabble-creaturetype-3-0/ Dependencies: None License: MIT ]] local MAJOR_VERSION = "LibBabble-CreatureType-3.0" local MINOR_VERSION = 90000 + tonumber(("$Rev: 162 $")...
project "angelscript" kind "StaticLib" language "C++" cppdialect "C++11" staticruntime "on" includedirs { "angelscript/include/angelscript" } files { "angelscript/source/**.cpp", "angelscript/source/**.h", "angelscript/add_on/**.cpp", "angelscript/add_on/**.h" } if (os.host() == "windows") then ...
-- Pretty-Printed using HW2 Pretty-Printer 1.27 by Mikail. -- this script manages the AI military. This includes group sizes, attack times, attack defend percentages, aitrace("LOADING CPU MILITARY") function CpuMilitary_Init() cp_attackPercent = 100 if (g_LOD == 0) then cp_attackPer...
function indexof (i, l) local index = {} for k, v in pairs(l) do index[v] = k end return index[i] end -- Create a list with all numbers between 'from' to and with 'to' function list (from, to) local l = {} while from <= to do l[#l+1] = from from = from + 1 end return l; end -- When making a mo...
local s = "helLO" local s1000 = s:rep(1000) -- string.lower, string.upper, string.reverse consume memory do print(runtime.callcontext({kill={memory=4000}}, string.lower, s)) --> =done hello print(runtime.callcontext({kill={memory=4000}}, string.lower, s1000)) --> =killed -- string.upper consumes...
w_width = 1366 w_height = 768 function love.conf(t) t.window.title = "Pong" t.window.width = w_width t.window.height = w_height t.window.borderless = true t.window.resizable = false end
WireToolSetup.setCategory( "Vehicle Control" ) WireToolSetup.open( "exit_point", "Vehicle Exit Point", "gmod_wire_exit_point", nil, "Exit Points" ) if CLIENT then language.Add( "tool."..TOOL.Mode..".name", TOOL.Name.." Tool (Wire)" ) language.Add( "tool."..TOOL.Mode..".desc", "Spawns a "..TOOL.Name ) WireToolSetup...
Config = {} Config.Animations = { { name = 'festives', label = 'Slavnostní', items = { {label = "Kouření cigarety", type = "scenario", data = {anim = "WORLD_HUMAN_SMOKING"}}, {label = "Hraní na hudební nástroj", type = "scenario", data = {anim = "WORLD_HUMAN_MUSICIAN"}}, {label = "DJ", type = "anim",...
#!/usr/bin/env bcc-lua --[[ Copyright 2016 Marek Vavrusa <mvavrusa@cloudflare.com> 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...
START_ADDR = 0x10 END_ADDR = rom.readbyte(4) * 0x4000 + 0x10 CUR_ADDR = START_ADDR STEP = 1 CDL_FILE = "diff.cdl" WRITE_VALUE = 0x33 FRAME_FOR_SCREEN = 0 cdlData = "" -------------------------------------------------------- function atSave(i) print(i) local curSave = savestate.create() savestate.save(cur...
--[[ Licensed according to the included 'LICENSE' document Author: Thomas Harning Jr <harningt@gmail.com> ]] local lpeg = require("lpeg") local tonumber = tonumber local merge = require("json.util").merge local util = require("json.decode.util") module("json.decode.number") local digit = lpeg.R("09") local digits ...
--!A cross-platform build utility based on Lua -- -- 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...
local ModInventoryControl = Class.create("ModInventoryControl", Entity) local Keymap = require "xl.Keymap" local InventoryMenu = require "state.InventoryMenu" local Inventory = require "xl.Inventory" function ModInventoryControl:create( ) self.keyItemList = self.keyItemList or {} self.canPressUse = true --initial...
return { vec2 = require "lib.vec2", vec3 = require "lib.vec3", vec4 = require "lib.vec4", }
require('plugins/line-theme/evil_lualine') -- require('plugins/line-theme/bubbles')
include("terms") style = {["off_color"] = "cff", ["on_color"] = "cff", ["line_color"] = "000", ["line_width"] = "2"}; text_style = {["font_size"] = "16"} meas = {"\(^\circ\)", "'"} symb = "\(\angle\)" numb = {} ang_g = {} ang_m = {} index = {} fact = {} qq = {} answ = {} index = {3,...
local _hxClasses = {} local Int = _hx_e(); local Dynamic = _hx_e(); local Float = _hx_e(); local Bool = _hx_e(); local Class = _hx_e(); local Enum = _hx_e();
require("core/object"); AnimManager = class(); AnimDef = { FILE = 1; CLASS = 2; GROUPID = 3; }; AnimManager.getInstance = function() if not AnimManager.s_instance then AnimManager.s_instance = new(AnimManager); end return AnimManager.s_instance; end AnimManager.releaseInstance = functio...
local asserts = require 'lib.asserts' local Object = require 'lib.object' local Type = require 'lib.luapi.type' --[[ Single lua file = @ (lib.object) > reqpath (string) > fullpath (string) > module (lib.luapi.type) [] > cache (@.cache) [] Gets removed after File:write() attempt ]] local File = Object:extend...
vim.g.startify_files_number = 5 vim.g.startify_update_oldfiles = 1 vim.g.startify_session_autoload = 1 vim.g.startify_session_persistence = 1 -- autoupdate sessions vim.g.startify_session_delete_buffers = 1 -- delete all buffers when loading or closing a session, ignore unsaved buffers vim.g.startify_change_to_dir = 0 ...
local class = require "utils.class" local ID = require "utils.ID" local default_formula = require "utils.PropertyFormula" local Property = class() function Property:_init_(property) self.uuid = ID.Next(); self.property = property or {} self.formula = default_formula self.merged = {} self.cached = {} self.cha...
local bindings = {} local vars = require('nvimux.vars') local fns = {} local nvim = vim.api -- luacheck: ignore local consts = { terminal_quit = '<C-\\><C-n>', esc = '<ESC>', } fns.nvim_do_bind = function(options) local escape_prefix = options.escape_prefix or '' local mode = options.mode return func...
------------ --- HTTP -- HTTP client -- @module http_ng.backend local backend = {} local response = require 'resty.http_ng.response' local http_proxy = require 'resty.http.proxy' local function send(httpc, params) params.path = params.path or params.uri.path local res, err = httpc:request(params) if not res th...
--[[ __ __ |__) _ _ _ _ _ _ _ _ _ / _ | |_ _ _ | | (_) (_) | (_| ||| ||| (- | \__ (_) | |_ (_) | ) _/ __________________________________________________________ RbxAPI by ProgrammerColton A super simple proxy server tha...
require "AdHoc" local this = GetThis() local camera = GetComponent(this, "Camera3D") local playerTransform function Start() playerTransform = GetComponent(AdHoc.Global.playerID, "Transform") end function Update() camera.focusPosition = playerTransform.translate end
return { rs256_private_key = [[ -----BEGIN RSA PRIVATE KEY----- MIIEpAIBAAKCAQEAw5mp3MS3hVLkHwB9lMrEx34MjYCmKeH/XeMLexNpTd1FzuNv 6rArovTY763CDo1Tp0xHz0LPlDJJtpqAgsnfDwCcgn6ddZTo1u7XYzgEDfS8J4SY dcKxZiSdVTpb9k7pByXfnwK/fwq5oeBAJXISv5ZLB1IEVZHhUvGCH0udlJ2vadqu R03phBHcvlNmMbJGWAetkdcKyi+7TaW7OUSjlge4WYERgYzBB6eJH+UfPjmw3...
require 'scenario/sandbox/gui'
local lu = require 'luaunit' local COLOR_NAMES = require 'supernova.helpers.color_names' function testColorNames() lu.assertEquals( COLOR_NAMES[1], { identifier = '20000-leagues-under-the-sea', name = '20000 Leagues Under the Sea', rgb = { 25, 25, 112 } } ) end os.exit(lu.LuaUnit....
--聖なる降誕 --Holy Night Nativity --LUA by Kohana Sonogami function c100270047.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --Search local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(100270047,0)) e2:Set...
--[[ _______ __ _____ / ____\ \ / / | __ \ | | __ \ \ / /_ _ ___| | | | ___ ___ _ __ | | |_ | \ \/ / _` |/ __| | | |/ _ \ / _ \| '__| | |__| | \ / (_| | (__| |__| | (_) | (_) | | \_____| \/ \__,_|\___|_____/ \___/ \___/|_| feat. Jiray...
local component = require("component") local colors = require("colors") local objects = {} local API = {} local gpu = component.gpu local w,h = gpu.getResolution() function API.clearScreen() gpu.setForeground(colors.black,true) gpu.setBackground(colors.white,true) gpu.fill(1,1,w,h," ") end function API.clamp(...
function copyPos (command) local x, y, z = getElementPosition(getLocalPlayer()) outputChatBox(x..", "..y..", "..z, player) setClipboard (x..", "..y..", "..z) end addCommandHandler("copypos", copyPos) local colLV = createColRectangle(866,480,2300,2800) function isElementWithinSafeZone(element) if (not isElemen...
local appendageModule = {} function appendageModule.new(UpperLimb,LowerLimb,LimbEnd,StartAttachment,LimbJointAttachment,LimbEndAttachment,LimbHoldAttachment,PreventDisconnection) local Appendage = {} Appendage.UpperLimb = UpperLimb Appendage.LowerLimb = LowerLimb Appendage.LimbEnd = LimbEnd Append...
-- C# 热补丁文件加载器 require "HotFix.???"
local coreOffset = 16; local hp = Core.getElementHitPointsById(Core.getId()) if hp > 10000 then coreOffset = 128 elseif hp > 1000 then coreOffset = 64 elseif hp > 150 then coreOffset = 32 end Elements = Core.getElementIdList(); ExportString = "Funny Handle: "; for index, ID in ipairs(Elements) do ...
local M = {} local argparser = require('argparser') local process = require('process') local env = require('env') local fs = require('fs') local re = require('re') local inspect = require('inspect') local util = require('util') local bcsave = require('jit.bcsave') local ffi = require('ffi') local stream = require('str...
getglobal game getfield -1 Workspace getfield -1 RegisterArmour getfield -1 FireServer pushvalue -2 pushnumber 17 pcall 2 1 0
slot0 = class("BismarckChapterPage", import("...base.BaseActivityPage")) slot0.tabPos = { [1.0] = 10, [2.0] = 182.3 } slot0.IconShowFunc = { [DROP_TYPE_SHIP] = function (slot0, slot1) GetImageSpriteFromAtlasAsync("SquareIcon/" .. slot3, "", slot0) end, [DROP_TYPE_FURNITURE] = function (slot0, slot1) GetImageSp...
--- === cp.ui.Group === --- --- UI Group. local require = require -- local log = require "hs.logger" .new "Group" local ax = require "cp.fn.ax" local Element = require "cp.ui.Element" local pack = table.pack local Group = Element:subclass("cp.ui.Group")...
local repayTime = 168 * 60 -- hours * 60 local timer = ((60 * 1000) * 10) -- 10 minute timer RegisterServerEvent('house:updatespawns') AddEventHandler('house:updatespawns', function(info, hid) local src = source local table = info local house_id = hid local xPlayer = NPCore.GetPlayerFromId(src) if...
--[[ * Created by MiiMii1205 * license MIT --]] -- Constants -- MOVE_UP_KEY = 20 MOVE_DOWN_KEY = 44 CHANGE_SPEED_KEY = 21 MOVE_LEFT_RIGHT = 30 MOVE_UP_DOWN = 31 NOCLIP_TOGGLE_KEY = 289 NO_CLIP_NORMAL_SPEED = 0.5 NO_CLIP_FAST_SPEED = 2.5 ENABLE_TOGGLE_NO_CLIP = true ENABLE_NO_CLIP_SOUND = true local eps = 0.01 loca...
-- Cookies Recipe : if not rawget(_G,"data") then data = {} end data.oven = minetest.get_worldpath().."/cookies" data.cookies = {} -- cookie_baker priv to create cookie minetest.register_privilege("baker","Is able to bake CooKies and give them to anybody else") -- Loading cookies from oven pntf = io.open(data.oven...
local h = require("null-ls.helpers") local methods = require("null-ls.methods") local DIAGNOSTICS = methods.internal.DIAGNOSTICS return h.make_builtin({ name = "cue_fmt", method = DIAGNOSTICS, filetypes = { "cue" }, generator_opts = { command = "cue", args = { "fmt", "$FILENAME" }, ...
AddCSLuaFile() DEFINE_BASECLASS( "sent_tv_io_base" ) ENT.PrintName = "IO: Switch" ENT.Author = "raubana" ENT.Information = "" ENT.Category = "Tunnel Vision" ENT.Editable = true ENT.Spawnable = true ENT.AdminOnly = true ENT.RenderGroup = RENDERGROUP_OPAQUE ENT.NumInputs = 1 ENT.NumOutputs = 2 ENT.Insta...
function onCreate() --Iterate over all notes for i = 0, getProperty('unspawnNotes.length')-1 do --Check if the note is an Instakill Note if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'Static Note' then setPropertyFromGroup('unspawnNotes', i, 'texture', 'StaticNOTE_assets'); --Change texture setP...
isInTrunk = false RegisterNetEvent("vrp.inventoryhud:refreshTrunk") AddEventHandler("vrp.inventoryhud:refreshTrunk", function() updateTrunk() end) function openTrunk() local weight,data,_ = vrpServer.getInv(gridZone) --if not IsPedInAnyVehicle(PlayerPedId(), false) then local data2,max2,weight2,pl...
print(math.cos(1), math.sin(1), math.tan(1), math.atan(1), math.atan2(3, 4))
local jobs = exports.UCDjobsTable:getJobTable() local blips = {} local markers = {} local GUI = {} local originalSkin = {} local frozen local disabledControls = {"forwards", "backwards", "jump", "sprint", "left", "right"} function onClientResourceStart() local sX, sY = guiGetScreenSize() -- GUI GUI.window = GuiWind...
local Line = {} function Line:new(world, x1, y1, x2, y2, color) local line = {} setmetatable(line, self) self.__index = self line.b = love.physics.newBody(world, 0, 0, 'static') line.s = love.physics.newEdgeShape( x1, y1, x2, y2 ) line.f = love.physics.newFixture( line.b, line.s ) line.color = color or...
-- @brief CAN-over-UDP Protocol dissector plugin -- @author -- @date 2018.07.12 -- create a new dissector local NAME = "CANoU" local PORT = 3248 local CANoU = Proto(NAME, "CAN-over-UDP Protocol") local canid_set = { [0x37] = "Acceleration via ICE", [0xb4] = "Current speed of the automobile", ...
-- -- ZyWebD express edition for shadowsocks-lua -- (c) 2015 zyxwvu <imzyxwvu@icloud.com> -- -- NOTE: features not included: -- FastCGI backend, General Server, SSL Server, HandleRequest, and built-in MIMES -- local uv = require "xuv" local crunning, cresume, cyield = coroutine.running, coroutine.resume, coroutine....
-------------------------------- -- @module ScaleBy -- @extend ScaleTo -- @parent_module cc ---@class cc.ScaleBy:cc.ScaleTo local ScaleBy = {} cc.ScaleBy = ScaleBy -------------------------------- --- Creates the action with and X factor and a Y factor.<br> -- param duration Duration time, in seconds.<br> -- param s...
local currentMap = nil local spawnPoint = nil mapData = {} AddEventHandler('getMapDirectives', function(add) -- add a custom data add("koth", function(state, arg1, arg2) -- do something with the custom data mapData.koth = arg1 state.add("koth", {arg1 = arg1}) end, function(state, a...
------------------------------------------------ -- Copyright © 2013-2020 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ local require = require local io = io local serpent = require("serpent") -- local pb = require "pb" -- local protoc = require "protoc" -- local p = pro...
-- CONFIG -- -- Allows you to set if time should be frozen and what time local freezeTime = false local hours = 1 local minutes = 0 -- Set if first person should be forced local forceFirstPerson = false -- CODE -- Citizen.CreateThread(function() while true do Citizen.Wait(0) _,pw = GetCurrentPedWeapon(PlayerPe...
function at() end function cron() end local function split_string(str, delimiter) if type(str) ~= 'string' or str == '' or type(delimiter) ~= 'string' or delimiter == '' then return nil end local string_list = {} for m in (str..delimiter).gmatch('(.-)'..delimiter) do if m and m ~= ''...
config = { var0 = true, var1 = true }
class 'shell' local AI_IDLING = 0 local AI_RUNNING = 1 --self.npc_obj:setSequence({0}) --self.npc_obj:setSequence({0,1,2,3}) function shell:initProps() -- Currents self.cur_mode=AI_IDLING self.npc_obj.motionSpeed = 0 self.npc_obj.not_movable = self.wasNotMovable if(self.npc_obj.spawnedGenType == ...
function HMLError( s, displayTime ) displayTime = displayTime or 7 if( CLIENT ) then GAMEMODE:AddNotify("[EE] " .. s, NOTIFY_ERROR, displayTime) if( HUD_System.NextCheckTime ) then HUD_System.NextCheckTime = HUD_System.NextCheckTime + 3 end end Msg("[EE] " .. s .. "\n") end function HMLWarning( s ) displayTi...
local M = {} M.oGameDb = nil return M
--- -- Library methods for handling JSON data. It handles JSON encoding and -- decoding according to RFC 4627. -- -- There is a test section at the bottom which shows some example -- parsing. If you want to parse JSON, you can test it by pasting sample JSON -- into the <code>TESTS</code> table and run the <code>test</c...