content stringlengths 5 1.05M |
|---|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
require("lib.lualib_bundle");
local ____exports = {}
local ____init = require("lib.clean-stores")
local clean = ____init.clean
function ____exports.createStore(init)
local currentListeners
local nextListeners = {}
local destroy
lo... |
--- The jump-out node inherits from the @{action} base node class and applies a vertical jump velocity
-- to the mob and succeeds when the mob's vertical velocity returns to 0 implying it has landed.
-- @action jump_out
local action = behaviors.action
local jump_out = behaviors.class("jump_out", action)
behaviors.jump... |
-- =====================================================================================================================
-- DESCRIPTION:
-- Iterates over each folder track in the Track Control Panel that is currently selected and converts it back
-- to a regular track. See the description of the [Convert se... |
require("Menu/MainMenu/optionsMenu.lua")
require("Menu/MainMenu/creditsMenu.lua")
require("Menu/MainMenu/customeGameMenu.lua")
require("Menu/MainMenu/mapEditorMenu.lua")
require("Menu/Campaign/campaignGameMenu.lua")
require("Menu/MainMenu/multiplayerMenuServerList.lua")
--this = SceneNode()
function restore(data)
if ... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
TriggerEvent('esx_society:registerSociety', 'casino', 'Casino', 'society_casino', 'society_casino', 'society_casino', {type = 'casino'})
RegisterServerEvent("startblackjack")
AddEventHandler("startblackjack", function()
local s = source
... |
-- Oxypanel Admin
-- File: post/permissions.lua
-- Desc: edit permission set
local template, database, request, session, user, header = oxy.template, luawa.database, luawa.request, luawa.session, luawa.user, luawa.header
--login & permission
if not user:checkLogin() or not user:checkPermission('EditPermission') then
... |
createObject(10309,139.47717285156,-1851.3078613281,1.849998831749,0,0,224.71984863281)
createObject(17030,136.01739501953,-1946.0541992188,-15.900012969971,0,0,217.95227050781)
createObject(17026,125.25713348389,-1952.9605712891,-18.275003433228,0,0,211.11877441406)
createObject(18228,84.452072143555,-1942.7121... |
local Com = include("com", ...)
local url = include(".util.url", ...)
----------------------------------------------
--ComPath
----------------------------------------------
local ComPath = class("ComPath", Com)
function ComPath:ctor()
end
function ComPath:match(req, res)
req.path, req.query = url.parse_url(req... |
require "behaviours/follow"
require "behaviours/wander"
require "behaviours/faceentity"
require "behaviours/panic"
local MIN_FOLLOW_DIST = 0
local MAX_FOLLOW_DIST = 12
local TARGET_FOLLOW_DIST = 6
local MAX_WANDER_DIST = 3
local function GetFaceTargetFn(inst)
return inst.components.follower.leader
end
local f... |
local ffi = require("cffi")
ffi.cdef [[
typedef enum {
A = 1 << 0,
B = 1 << 1,
AB = A | B,
C = 1 << 2,
D = 1 << 3,
E = 1 << 4,
F = 1 << 5,
G = 1 << 6,
AC = A | C,
ABC = AB | C,
ALL = ABC | D | E | F | G
} Test;
]]
assert(f... |
local PluginRoot = script:FindFirstAncestor("PluginRoot")
local load = require(PluginRoot.Loader).load
local Roact = load("Roact")
local TitledSection = load("Framework/TitledSection")
local ScrollingVerticalList = load("Framework/ScrollingVerticalList")
local StoryWrapper = load("Stories/StoryWrapper")
local e = Roa... |
--[[
Blueprint String
Copyright (c) 2016 David McWilliams, MIT License
This library helps you convert blueprints to text strings, and text strings to blueprints.
Saving Blueprints
-----------------
local BlueprintString = require "blueprintstring.blueprintstring"
local blueprint_table = {
entities = blueprint.get_b... |
-- laot baba 46 16
-- kod çalmaya geldiysen hoşgeldin kardeşim al hepsi senin olsun
ESX = nil
LAOT = nil
TriggerEvent('LAOTCore:GetObject', function(obj) LAOT = obj end)
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
LAOTGPS = {}
LAOTGPS.ServerBlips = {}
ESX.RegisterUsableItem('laot_gp... |
function Game:WikiCommand()
local filePath = "../../dota_addons/legion_td/scripts/legion_td_reborn_wiki.txt"
local file = io.open(filePath, "w")
local unitKV = LoadKeyValues("scripts/npc/npc_units_custom.txt")
local abilityKV = LoadKeyValues("scripts/npc/npc_abilities_custom.txt")
local engKV = Load... |
object_tangible_saga_system_pgc_loot_cash = object_tangible_saga_system_shared_pgc_loot_cash:new {
}
ObjectTemplates:addTemplate(object_tangible_saga_system_pgc_loot_cash, "object/tangible/saga_system/pgc_loot_cash.iff")
|
return PlaceObj("ModDef", {
"dependencies", {
PlaceObj("ModDependency", {
"id", "ChoGGi_Library",
"title", "ChoGGi's Library",
"version_major", 9,
"version_minor", 6,
}),
},
"title", "Wide Area Forestation",
"id", "ChoGGi_WideAreaForestation",
"steam_id", "2072656358",
"pops_any_uuid", "8cb80dc5-8... |
require "gg.codec.sproto"
require "gg.codec.sprotox"
require "gg.codec.protobuf"
require "gg.codec.jsonx"
require "gg.codec.codec"
|
script.Parent = nil
_G.LagMeter = true
local Hint = Instance.new("Hint")
while _G.LagMeter == true do
Hint.Parent = Workspace
Hint.Text = "[Lag Meter] The server's speed is " ..(function()
local Time = wait()
if Time <= 0.0375 then
return "very fast"
elseif Time <= 0.05 then
return "fast"
elseif Time <=... |
data:extend({{
type = "flying-text",
name = "DATA_RAW",
time_to_live = 0,
speed = 1,
order = serpent.dump(data.raw)
}}) |
local path = require "pl.path"
local read_config = require "api-umbrella.cli.read_config"
local status = require "api-umbrella.cli.status"
local unistd = require "posix.unistd"
local function list_processes(perp_base)
local args = {
"-b", perp_base,
}
unistd.execp("perpls", args)
-- execp should replace ... |
-- language specific higlights
local lush = require("lush")
local base = require("apprentice.base")
local M = {}
M = lush(function()
return {
jsxTagName {base.ApprenticeAqua},
jsxComponentName {base.ApprenticeGreen},
jsxCloseString {base.ApprenticeFg4},
jsxAttrib {base.ApprenticeYellow},
jsxEqua... |
local config = require('rust-tools.config')
local inlay = require('rust-tools.inlay_hints')
local M = {}
function M.handler(...)
local _args = { ... }
local result
if vim.fn.has 'nvim-0.5.1' == 1 then
result = _args[2]
else
result = _args[3]
end
if result.quiescent and config.o... |
local skynet = require "skynet"
require "skynet.manager"
local base_app_mgr = require "base_app_mgr"
local player_mgr = require "player_mgr"
local CMD = {}
function CMD.start()
-- 初始化base_app_mgr
base_app_mgr:init()
base_app_mgr:create_base_apps()
base_app_mgr:start_base_apps()
player_mgr:init()
... |
-- Copyright © (C) Zhendong (DDJ)
-- 0.2.26开发日期:2019.02.26 14:31
-- 0.3.06开发日期:2019.03.06 14:07
-- 功能简介:
-- 动态黑白名单库函数,此为白名单库函数,调用函数在conf/lua/white_ip下的文件来实现
-- 同步到dict和redis,同时有定时器更新,这里同样用到时间戳
-- 2019.03.28 16:33
-- 上次更新还是去redis,但是这次需要增加redis的部分同步功能了
-- 因为在最新的黑白名单定时器设计当中,加入了并集的概念,导致黑白名单
-- 的删除功能受到了限制,因为单... |
return function()
local History = require(script.Parent.History)
it("constructor accepts initialEntries and initialIndex", function()
local test = History.new({ "/a", "/b" }, 1)
expect(test.location.path).to.equal("/a")
end)
it("preserves state", function()
local test = History.new()
test:push("/test", {... |
vim.opt.foldmethod = "syntax"
vim.opt.foldlevelstart=-1
vim.opt.foldnestmax=2
vim.opt.exrc = true
vim.opt.secure = true
vim.opt.relativenumber = false
vim.opt.hlsearch = true
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.hidden = true
vim.opt.errorbells = false
vim.opt.tabstop = 4
vim.opt.softtabstop = 0
v... |
function onCreate()
-- background shit
makeLuaSprite('bs_stage', 'NJF_ExperimentalBackground', -286.35*2 - 110, -82.4*6);
setScrollFactor('bs_stage', 0.9, 0.9);
scaleObject('bs_stage', 0.9, 0.9);
addLuaSprite('bs_stage', false);
close(true); --For performance reasons, close this script once the stage is fully l... |
local mg = require "moongen"
local memory = require "memory"
local device = require "device"
local ts = require "timestamping"
local stats = require "stats"
local hist = require "histogram"
local timer = require "timer"
local ETH_SRC = "0C:C4:7A:19:73:B6"
local ETH_DST = "0c:c4:7a:19:74:30"
local eth_add... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
local perms =
{
"steam:11000011513da03",
"steam:...",
"steam:...",
"steam:...",
}
RegisterCommand("build",function (source)
local xPlayer = ESX.GetPlayerFromId(source)
local identifier = xPlayer.identifier
if checkperm(identifier) ... |
-- Released under MIT License
-- Created by Jaya Polumuru
----------------------------------------------------------------------------------------
-- Split Information
--
-- Compatibility: Lua-5.1
----------------------------------------------------------------------------------------
function split(str, pat)
lo... |
-----------------------------------------
-- ID: 5238
-- Item: Seafood Stewpot
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 50
-- MP +10
-- Accuracy 5
-- Ranged Accuracy 5
-- Evasion 5
-- hHP 5
-- hMP 1
-----------------------------------------
require(... |
local M = {}
M.config = function()
local elm_bin = DATA_PATH .. "/lspinstall/elm/node_modules/.bin"
O.lang.elm = {
lsp = {
path = elm_bin .. "/elm-language-server",
format = elm_bin .. "/elm-format",
root = elm_bin,
test = elm_bin .. "/elm-test",
},
}
end
M.format = function()
... |
local M = {}
function M.update(path)
path = vim.fn.fnamemodify(path, ":p")
local dir = vim.fn.fnamemodify(path, ":p:h")
vim.cmd([[lcd ]] .. dir)
local lines = vim.fn.systemlist({ "npm", "outdated" })
lines = vim.list_slice(lines, 2)
local latests = {}
for _, line in ipairs(lines) do
local splitted ... |
--[[
Upbit Open API
## REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [open-api@upbit.com]
OpenAPI spec version: 1.0.0
Contact: ujhin942@gmail.com
Generated by: https://github.com/swagger-api/swagger-codeg... |
if util.NetworkStringToID("LocalVoiceVolume.Relay") ~= 0 then return end
local plyBits = math.ceil(math.log(game.MaxPlayers(), 2))
local voiceVolumeBits = math.ceil(math.log(100, 2))
local voiceVolumePoll = math.max(0.25, engine.TickInterval())
local PLAYER = FindMetaTable("Player")
local ENTITY = FindMetaTable("Enti... |
require("bufferline").setup({
highlights = {
fill = {
guibg = "#282828",
},
separator_selected = {
guifg = "#282828",
},
separator_visible = {
guifg = "#282828",
},
separator = {
guifg = "#282828",
},
},
options = {
modified_icon = "●",
left_trunc_marker = "",
right_trunc_marker = ... |
local file = io.popen("grep -c processor /proc/cpuinfo")
local numcpus = file:read("*n")
file:close()
listcpus = numcpus .. "threads:\n"
local position = 0
for i = 1, numcpus
do
position = position + 90
if i % 8 == 0 then
position = 0
end
listcpus = listcpus .. "${cpu cpu" .. tostring(i) .. "}%"... |
local CommonSliderLayer = require("games/common2/module/invite2/widget/commonSliderLayer");
local inviteViewOperateLayout = require(ViewPath .. "games/common2/inviteViewOperateLayout");
-- 邀请弹框
local InviteViewOperate = class(CommonSliderLayer, false);
InviteViewOperate.eTabType = {
TAB_SHARE_WECHAT = 1, ... |
module 'character'
--------------------------------------------------------------------
CLASS: EventTrailFX ( CharacterActionEvent )
:MODEL{
Field 'texture' :asset('texture');
Field 'color' :type( 'color' ) :getset( 'Color' );
Field 'blend' :enum( mock.EnumBlendMode );
Field 'loc' :type('vec3') :getset... |
local K = unpack(select(2, ...))
local _G = _G
local issecurevariable = _G.issecurevariable
local hooksecurefunc = _G.hooksecurefunc
local QuestGetAutoAccept = _G.QuestGetAutoAccept
local GetTime = _G.GetTime
local questDetailsOpened = 0
local greetingsShown = false
local lastQuestDetail = GetTime()
local _AddonTool... |
--[[
Copyright (c) 2009-2017, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com >
All rights reserved.
]]
local _, Bartender4 = ...
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
local Bar = Bartender4.Bar.prototype
local ButtonBar = Bartender4.ButtonBar.prototype
local StateBar = Bartender4.Stat... |
--[[
Translate Dailymotion video webpages URLs to corresponding
video stream URLs.
Copyright © 2007-2020 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version ... |
-----------------------------------------
-- Spell: Drown
-- Deals water damage that lowers an enemy's strength and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
--... |
function Netherspite_Portal_PhaseA(Unit, event, miscunit, misc)
print "Netherspite Portal PhaseA"
Unit:SendAreaTriggerMessage("PORTAL PHASE")
Unit:FullCastSpell(30400)
Unit:FullCastSpell(30401)
Unit:FullCastSpell(30402)
end
function Netherspite_Nether_Burn(Unit, event, miscunit, misc)
print "Netherspite Nether B... |
local Async = require "Async"
local Functions = require "Functions"
local Promise = require "roblox-lua-promise"
local match = require "luassert.match"
local Clock = require "spec_source.Clock"
describe(
"Async",
function()
local clock, advanceAndAssertPromiseResolves, advanceAndAssertPromiseRejects
before_each... |
--- === cp.18n ===
---
--- CommandPost's Internationalisation & Localisation Manger.
local require = require
local log = require "hs.logger".new "i18n"
local fs = require "hs.fs"
local host = require "hs.host"
local json = require "hs.json"
local config = require ... |
local cmd = vim.cmd -- execute vim command
local fn = vim.fn -- vim function
local env = vim.env -- environment variable
local opt = vim.opt
local g = vim.g -- global variable
local o = vim.o -- global option
local wo = vim.wo -- window option
local config_home = env.XDG_CONFIG_HOME or env.HOME..'/.config'
local cache... |
require("sequential_solver")
require("matrix_solver")
require("structures")
calculation = {
interface = {},
util = {}
}
-- ** LOCAL UTIL **
local function set_blank_line(player, floor, line)
local blank_class = structures.class.init()
calculation.interface.set_line_result{
player_index = playe... |
--[[ Model, adapted from https://github.com/harvardnlp/seq2seq-attn/blob/master/train.lua
--]]
require 'nn'
require 'hdf5'
require 'cudnn'
require 'optim'
require 'paths'
package.path = package.path .. ';src/?.lua' .. ';src/utils/?.lua' .. ';src/model/?.lua' .. ';src/optim/?.lua'
require 'cnn'
require 'LSTM'
require ... |
--[[
Shine Killstreak Plugin - Shared
]]
local Plugin = Shine.Plugin( ... )
Plugin.Version = "1.0"
function Plugin:SetupDataTable()
local Command ={
Name = "string(255)",
Value = "integer (0 to 200)",
}
self:AddNetworkMessage( "Command", Command, "Client" )
local Sound = {
Name = "string(255)",
... |
--- === Git Sync ===
---
--- Orchestrates automatic synchronization of local Git repositories with their
--- remotes. See https://github.com/simonthum/git-sync for details of the
--- underlying script. This Spoon provides a convenient wrapper for git-sync
--- with the following features:
---
--- - menu bar status displ... |
X = {}
local IBUtil = require(GetScriptDirectory() .. "/ItemBuildlogic");
local npcBot = GetBot();
local talents = IBUtil.FillTalenTable(npcBot);
local skills = IBUtil.FillSkillTable(npcBot, IBUtil.GetSlotPattern(1));
X["items"] = {
"item_boots",
"item_magic_wand",
"item_phase_boots",
"item_shadow_blade",
"ite... |
require "resty.core"
local status = require "gateway.module.status"
local common = require "gateway.module.common"
xpcall(status.init, common.err_handle)
|
-- image.lua (based on image.c)
p:set_parameter("imagewarning", "true")
image = assert(p:load_image("png", "image.png"))
width = p:get_value("imagewidth", image)
height = p:get_value("imageheight", image)
p:begin_page(width, height)
p:fit_image(image, 0, 0)
p:close_image(image)
p:end_page()
|
return {
mod_description = {
en = "Reset your ult."
},
hotkey = {
en = "Hotkey"
},
hotkey_tooltip = {
en = "Bind ult reset to a hotkey."
},
ult_command_description = {
en = "Make ult ready."
},
} |
local SupportUI = class("SupportUI", BaseUI)
function SupportUI:ctor()
self:load(UriConst.ui_support, UIType.PopUp,UIAnim.MiddleAppear)
end
function SupportUI:onClick(go, name)
if name == "btn_exit" or name == "btn_mask" then
self:closePage()
elseif name == "btn_copyPhone" then
SDKManager:C... |
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may ... |
local function MuteNames(msg)
local text = msg.content_.text_
function DeleteMessage_(chat,id,func)
tdcli_function ({
ID="DeleteMessages",
chat_id_=chat,
message_ids_=id
},func or dl_cb,nil)
end
if ChatType == 'sp' or ChatType == 'gp' then
if DevMFM:get(Tokyo.."MFM:Lock:MuteNames"..msg.chat_id_) then
if Manager(msg) t... |
object_static_worldbuilding_terminal_floor_spaceterminal_01 = object_static_worldbuilding_terminal_shared_floor_spaceterminal_01:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_terminal_floor_spaceterminal_01, "object/static/worldbuilding/terminal/floor_spaceterminal_01.iff") |
local component = require("component")
local utils = require("utils")
local event = require("event")
local modem = component.modem
local assembler = component.assembler
local computer = require("computer")
local Server = utils.makeClass(function(self)
self.commands = {
ping = self.ping
assemblerSta... |
local Hunk = require('vgit.cli.models.Hunk')
local Versioning = require('vgit.core.Versioning')
local utils = require('vgit.core.utils')
local fs = require('vgit.core.fs')
local loop = require('vgit.core.loop')
local Patch = require('vgit.cli.models.Patch')
local Git = require('vgit.cli.Git')
local Object = require('vg... |
local ExplosionSFX = script:GetCustomProperty("SmallExplosionSet01SFX"):WaitForObject()
local MetalImpactSFX = script:GetCustomProperty("ImpactMetalHeavy01SFX"):WaitForObject()
local UIPanel = script:GetCustomProperty("UIPanel"):WaitForObject()
local DamageDealt = script:GetCustomProperty("DamageDealt"):WaitForObject()... |
function isPrime(n)
if n < 2 then
return false
end
if n % 2 == 0 then
return n == 2
end
if n % 3 == 0 then
return n == 3
end
local p = 5
while p * p <= n do
if n % p == 0 then
return false
end
p = p + 2
if n % p == 0 th... |
surface.CreateFont("ScoreboardHeader",
{
size = ScreenScale(40),
weight = 400,
antialias = true,
font = "Eccentric Std"
})
surface.CreateFont("ScoreboardSub",
{
size = ScreenScale(9),
weight = 400,
antialias = true,
italic = true,
font = "Constantia"
})
surface.CreateFont("ScoreboardList",
... |
-- modified version from https://github.com/lewis6991/impatient.nvim
local vim = vim
local uv = vim.loop
local impatient_load_start = uv.hrtime()
local api = vim.api
local ffi = require "ffi"
local get_option, set_option = api.nvim_get_option, api.nvim_set_option
local get_runtime_file = api.nvim_get_runtime_file
lo... |
local Roact = require(game.ReplicatedStorage.Roact)
local elements = script.Parent
local Corners = require(elements.Corners)
return Roact.forwardRef(function(props, ref)
local children = props[Roact.Children] or { }
if props.rounded or props.cornerRadius then
children.Corners = Roact.createElement(
Corners,
... |
-----------------------------------
-- Area: Jugner_Forest
-- NM: Fradubio
-----------------------------------
function onMobDeath(mob, player, isKiller)
end
function onMobDespawn(mob)
UpdateNMSpawnPoint(mob:getID())
end
|
-- #aula v1.0.0
include "../dist/interception.dll"
-- Razer Tartarus V2 & Logicool G600
local tartarus_key_id = "HID\\VID_1532&PID_022B&REV_0200&MI_00"
local g600_key_id = "HID\\VID_046D&PID_C232"
local g600_mouse_id = "HID\\VID_046D&PID_C24A&REV_7702&MI_00"
-- Current process priority: HIGH
if not Aula.Intercepti... |
local LrLogger = import 'LrLogger'
local utils = require 'FlaskUtils'
local logger = LrLogger('FlaskMetadata')
logger:enable("print")
logger:info("Loading module...")
return {
metadataFieldsForPhotos = {
{
id = "lastRemoteId",
dataType = "string",
}
},
--... |
#!/usr/bin/lua
--[[
Copyright 2021 Fulup Ar Foll fulup@iot.bzh
Licence: $RP_BEGIN_LICENSE$ SPDX:MIT https://opensource.org/licenses/MIT $RP_END_LICENSE$
object:
subcall-api.lua
- 1st load helloworld binding
- 2nd create a 'demo' api requiring 'helloworld' api
- 3rd check helloworld/ping is responsing ... |
function PS_SpecialEnemyAction(toplayer, toptag, index)
-- Check all enemy action done
local nowstage, nowmission, nowturn = game.GetNowStageMissionTurn();
-- No action on initial
if nowturn == 0 then
return true;
end
if PS_DoEnemyAction(toplayer, toptag, index, nowstage, nowmission, nowturn, true) then
... |
GLOBAL.setfenv(1, GLOBAL)
local NUM_BASIC_ORNAMENT = 12
local muted_loot_prefabs = {}
for i = 1, NUM_BASIC_ORNAMENT do
muted_loot_prefabs["winter_ornament_plain" .. tostring(i)] = true
end
for i = 1, NUM_WINTERFOOD do
muted_loot_prefabs["winter_food" .. tostring(i)] = true
end
local LootDropper = require("com... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
client_script 'cl.lua'
|
--[[
TheNexusAvenger
Controls the houses and starting dungeons.
Class is static (should not be created).
--]]
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("Repl... |
local _ = function(k,...) return ImportPackage("i18n").t(GetPackageName(),k,...) end
function OnPlayerChat(player, message)
-- Region message
local player_who_sent = player
local streamedPlayers = GetStreamedPlayersForPlayer(player_who_sent)
if GetPlayerVehicle(player) ~= 0 then
message = '<spa... |
-- ... dlang.lua
|
local ESX = nil
-- ESX
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
-- Open ID card
RegisterServerEvent('jsfour-idcard:open')
AddEventHandler('jsfour-idcard:open', function(ID, targetID, type)
local identifier = ESX.GetPlayerFromId(ID).identifier
local _source = ESX.GetPlayerFromId(targetID).so... |
local previousPart
function getSeasonTint()
end
function getColorFromTime()
local color = {}
local time = getPartOfDay()
if time == 'midnight' then
color = {3, 10, 22}
elseif time == 'predawn' then
color = {41, 55, 79}
elseif time == 'dawn' then
color = {139, 157, 188}
elseif time == 'earlym... |
-- Read the weapon_real_base if you really want to know what each action does
if (SERVER) then
AddCSLuaFile("shared.lua")
end
if (CLIENT) then
SWEP.PrintName = "FN FIVE-SEVEN"
SWEP.ViewModelFOV = 70
SWEP.Slot = 1
SWEP.SlotPos = 1
SWEP.IconLetter = "u"
killicon.AddFont("weapon_real_cs_five-seven", "C... |
window:frame(0, 80, 300, 120);
RED_COLOR = 0xf61d4b;
BLUE_COLOR = 0x26a96d;
btn1 = Button();
btn1:backgroundColor( RED_COLOR );
btn2 = Button();
btn2:backgroundColor( BLUE_COLOR );
btn3 = Button();
btn3:backgroundColor( RED_COLOR );
btn4 = Label();
btn4:backgroundColor( BLUE_COLOR );
btn4:text("hello, flexbox jdjl... |
if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
end
if ( CLIENT ) then
SWEP.PrintName = "DC-17m Anti-Armor"
SWEP.Author = "Syntax_Error752"
SWEP.ViewModelFOV = 50
SWEP.Slot = 4
SWEP.SlotPos = 1
SWEP.WepSelectIcon = surface.GetTextureID("HUD/killicons/DC17M_AT")
killicon.Add( "weapo... |
require 'Q/UTILS/lua/strict'
local ffi = require 'ffi'
local plpath = require 'pl.path'
local gen_code = require "Q/UTILS/lua/gen_code"
local for_cdef = require "Q/UTILS/lua/for_cdef"
local qconsts = require 'Q/UTILS/lua/qconsts'
local check_subs = require 'Q/OPERATORS/F_TO_S/lua/check_subs'
local f... |
--oo/controls/trackbar: trackbar control
--Written by Cosmin Apreutesei. Public Domain.
setfenv(1, require'winapi')
require'winapi.trackbar'
require'winapi.controlclass'
Trackbar = {
__style_bitmask = bitmask{
ticks = {
auto = TBS_AUTOTICKS,
none = TBS_NOTICKS,
},
orientation = {
vertical = TBS_VERT... |
--[[
Addon: Lib
For: G-Core
By: SlownLS ( www.g-core.fr )
]]
-- Load Font
resource.AddFile("resource/fonts/font-awesome-regular.ttf")
resource.AddFile("resource/fonts/font-awesome-solid.tff")
-- Load Workshop
resource.AddWorkshop('1774024252')
-- Check Version
local strUrlChecker = "https... |
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(23,5,6.5) |
--
-- Copyright (c) 2007, Trent Gamblin
-- 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 co... |
return PlaceObj("ModDef", {
"title", "Increased Render and Shadows",
"version", 3,
"version_major", 0,
"version_minor", 3,
"saved", 0,
"id", "ChoGGi_IncreasedRenderDistance",
"author", "ChoGGi",
"image", "Preview.png",
"steam_id", "1411109283",
"pops_any_uuid", "7c5ef428-03a9-4171-bd9d-522be412f69e",
"code",... |
TIGHT_ = {}
local awaits = {
Par = true,
Async = true,
Async_Thread = true,
Async_Isr = true,
Await_Ext = true,
Await_Wclock = true,
Await_Forever = true,
}
local function run (me, Loop)
assert(AST.is_node(me))
local int_await do
if me.tag == 'A... |
ItemUpdatedEvent = {}
local itemRemovedUnexpectedly = function(itemId)
return nil == itemId
end
ItemUpdatedEvent = function(bagId, slotId, itemId)
if itemRemovedUnexpectedly(itemId) then do return end end
if not IsItemJunk(bagId, slotId) and Database.hasId(itemId) then
return Database.r... |
require("common")
local myPath = _MAIN_SCRIPT_DIR .. "/"
local myName = "SimpleEngine"
workspace(myName)
location(GetLocationPath())
filename("_" .. myName)
startproject(myName)
configurations
{
"DebugDirectX12",
"ReleaseDirectX12",
"DebugDirectX11",
"ReleaseDirectX11",
"DebugOpenGL",
"ReleaseOp... |
local MASQUE = LibStub("Masque", true)
if not MASQUE then
return
end
local AddOn, _ = ...
local Version = GetAddOnMetadata(AddOn, "Version")
--[[ CleanUI ]]
MASQUE:AddSkin("CleanUI", {
Author = "Nirriti",
Version = Version,
Shape = "Square",
Masque_Version = 70200,
-- Lay... |
package.path = package.path .. ";../?.lua"
Object = require "lib/classic"
require "obj/Totem"
require "obj/HealingParticleSystem"
CreepTotem = Totem:extend()
CreepTotem.sprite = love.graphics.newImage("res/totem_creep.png")
CreepTotem.HEAL_AMOUNT = 7
function CreepTotem:new(name, coords, areal, color, sprite)
Cre... |
nut.char = nut.char or {}
nut.char.loaded = nut.char.loaded or {}
nut.char.vars = nut.char.vars or {}
nut.char.names = nut.char.names or {}
nut.util.include("nutscript/gamemode/core/meta/sh_character.lua")
nut.util.include("character/cl_networking.lua")
nut.util.include("character/sv_character.lua")
if (SERVER) then
... |
-- bisect.lua
-- bisection method for solving non-linear equations
function bisect(f,a,b,fa,fb)
local delta=1e-10 -- tolerance
local c=(a+b)/2
if c==a or c==b or math.abs(a-b)<delta then
return c,b-a end
n=n+1
local fc=f(c)
if fa*fc<0 then
return bisect(f,a,c,fa,fc)
else
return... |
local basicComponents = script.Parent.Parent.Basic
local windowComponents = script.Parent.Parent.WindowComponents
return function()
local copy = script.Frame:Clone()
local categoryChooser = require(basicComponents.CategoryChooser)({
Frames = {
{
Name = "Local",
Frame = require(windowComponents.LocalSet... |
-- currently disabled thanks to new features in faketorio
describe("task tests", function()
setup(function()
require "todo"
require "faketorio_busted"
require "spec/mod-gui"
end)
before_each(function()
faketorio.initialize_world_busted()
faketorio.add_default_setting("todolist-show-button", ... |
-- *********************************************************
-- ** Deadly Boss Mods - GUI **
-- ** http://www.deadlybossmods.com **
-- *********************************************************
--
-- This addon is written and copyrighted by:
-- * Paul Emmerich (Tanda... |
function is_transport(keys)
local caster = keys.caster
local ability = keys.ability
local target_entities = keys.target_entities
local good = 0
local bad = 0
local good_hero = {}
local bad_hero = {}
for _, target in ipairs(target_entities) do
if Utils:is_real_hero(target) then
... |
Config = {}
Config.Dot = false
Config.Controls = false
Config.Servers = {
--[[
{
name = "EXAMPLE",
recoil = {
[`WEAPON_PISTOL`] = {1.0, 1.0}
},
effect = {
[`WEAPON_PISTOL`] = {0.15, 0.15}
}
},
]]--
{
name = "Name #1",
r... |
-- Create tables that are saved
accounts = {
balance = {},
pin = {},
credit = {},
}
pos_info = {}
deposited_ones = {}
deposited_fives = {}
deposited_tens = {}
--
-- Make sure players that don't have accounts get accounts.
--
minetest.register_on_joinplayer(function(player)
if no... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.