Just an otaku creating stuff and things
rimmuru / rimurus-2t1-scripts Goto Github PK
View Code? Open in Web Editor NEWContainer for all my 2t1 scripts
Container for all my 2t1 scripts
It looks like the keys don't correspond
I made a small improvement
require("Rimuru\\Dependancies\\FunctionsRim")
require("Rimuru\\Dependancies\\BannerHandller")
customColour = {}
sliders = {
pedSliderValue = 0,
animalSliderValue = 0,
objectSliderValue = 0,
worldSliderValue = 0,
propSliderValue = 0,
gunSliderValue = 0,
bannerSliderValue = 1,
iniSlider = 0,
fontSliderValue = 0
}
channels = {
redChannel = 109,
greenChannel = 20,
blueChannel = 231
}
gunTypes = {
"Grapple",
"Object",
"Water",
"Fire",
"Dust",
"Delete",
"Rope"
}
LuaUI.Options.menus = {
"main",
"Local",
"Vehicle",
"Spawner",
"Online",
"Settings",
"PlayerMenu",
"Garage Vehicles",
"Ini Vehicles",
"lobby",
"PlayerList"
}
local playersID = 0
function keyHook()
if isKeyDown(menuKeys.down) then --down
doKey(350, menuKeys.down, true, function()
if LuaUI.Options.scroll < LuaUI.Options.maxScroll then
LuaUI.Options.scroll = LuaUI.Options.scroll + 1
if LuaUI.Options.drawScroll + LuaUI.Options.maxOptions - LuaUI.Options.scroll < 1 and not (LuaUI.Options.drawScroll >= LuaUI.Options.maxScroll - LuaUI.Options.maxOptions) then
LuaUI.Options.drawScroll = LuaUI.Options.drawScroll + 1
end
elseif LuaUI.Options.scroll >= LuaUI.Options.maxScroll then
LuaUI.Options.scroll = 0
LuaUI.Options.drawScroll = 0
end
end)
end
if isKeyDown(menuKeys.up) then --up
doKey(350, menuKeys.up, true, function()
if LuaUI.Options.scroll > 0 and LuaUI.Options.scroll <= LuaUI.Options.maxScroll + 1 then
LuaUI.Options.scroll = LuaUI.Options.scroll - 1
if LuaUI.Options.scroll - LuaUI.Options.drawScroll < 1 and not (LuaUI.Options.drawScroll - 1 < 0) then
LuaUI.Options.drawScroll = LuaUI.Options.drawScroll - 1
end
elseif LuaUI.Options.scroll == 0 then
LuaUI.Options.scroll = LuaUI.Options.maxScroll
if LuaUI.Options.maxScroll > LuaUI.Options.maxOptions then
LuaUI.Options.drawScroll = LuaUI.Options.maxScroll - LuaUI.Options.maxOptions
end
end
end)
end
if isKeyDown(menuKeys.sideScrollLeft) then
doKey(350, menuKeys.sideScrollLeft, true, function() -- left arrow
if (LuaUI.Options.currentMenu == LuaUI.Options.menus[2]) then
if (LuaUI.Options.scroll == 0) then
if sliders.gunSliderValue > 0 then
sliders.gunSliderValue = sliders.gunSliderValue - 1
end
end
end
if (LuaUI.Options.currentMenu == LuaUI.Options.menus[4]) then
if (LuaUI.Options.scroll == 0) then
if sliders.pedSliderValue > 0 then
sliders.pedSliderValue = sliders.pedSliderValue - 1
end
end
if (LuaUI.Options.scroll == 1) then
if sliders.animalSliderValue > 0 then
sliders.animalSliderValue = sliders.animalSliderValue - 1
end
end
if (LuaUI.Options.scroll == 2) then
if sliders.objectSliderValue > 0 then
sliders.objectSliderValue = sliders.objectSliderValue - 1
end end
if (LuaUI.Options.scroll == 3) then
if sliders.worldSliderValue > 0 then
sliders.worldSliderValue = sliders.worldSliderValue - 1
end end
if (LuaUI.Options.scroll == 4) then
if sliders.propSliderValue > 0 then
sliders.propSliderValue = sliders.propSliderValue - 1
end
end
end
if (LuaUI.Options.currentMenu == LuaUI.Options.menus[6]) then
if (LuaUI.Options.scroll == 0) then
if channels.redChannel > 0 then
channels.redChannel = channels.redChannel - 1
end
end
if (LuaUI.Options.scroll == 1) then
if channels.greenChannel > 0 then
channels.greenChannel = channels.greenChannel - 1
end
end
if (LuaUI.Options.scroll == 2) then
if channels.blueChannel > 0 then
channels.blueChannel = channels.blueChannel - 1
end
end
if (LuaUI.Options.scroll == 3) then
if sliders.fontSliderValue > 0 and sliders.fontSliderValue <= 4 then
sliders.fontSliderValue = sliders.fontSliderValue - 1
end
end
if (LuaUI.Options.scroll == 4) then
if LuaUI.Options.menuPos.x > -0 and LuaUI.Options.menuPos.x <= 1 then
LuaUI.Options.menuPos.x = LuaUI.Options.menuPos.x - 0.05
end
end
if (LuaUI.Options.scroll == 5) then
if LuaUI.Options.menuPos.y > -0 and LuaUI.Options.menuPos.y <= 1 then
LuaUI.Options.menuPos.y = LuaUI.Options.menuPos.y - 0.05
end
end
end
end)
end
if isKeyDown(menuKeys.sideScrollRight) then -- right arrow
doKey(350, menuKeys.sideScrollRight, true, function()
if (LuaUI.Options.currentMenu == LuaUI.Options.menus[2]) then
if (LuaUI.Options.scroll == 0) then
if sliders.gunSliderValue < #gunTypes-1 then
sliders.gunSliderValue = sliders.gunSliderValue + 1
end
end
if (LuaUI.Options.scroll == 1) then
sliders.objectSliderValue = sliders.objectSliderValue + 1
end
end
if (LuaUI.Options.currentMenu == LuaUI.Options.menus[4]) then
if (LuaUI.Options.scroll == 0) then
sliders.pedSliderValue = sliders.pedSliderValue + 1
end
if (LuaUI.Options.scroll == 1) then
sliders.animalSliderValue = sliders.animalSliderValue + 1
end
if (LuaUI.Options.scroll == 2) then
sliders.objectSliderValue = sliders.objectSliderValue + 1
end
if (LuaUI.Options.scroll == 3) then
sliders.worldSliderValue = sliders.worldSliderValue + 1
end
if (LuaUI.Options.scroll == 4) then
sliders.propSliderValue = sliders.propSliderValue + 1
end
end
if (LuaUI.Options.currentMenu == LuaUI.Options.menus[6]) then
if (LuaUI.Options.scroll == 0) then
if channels.redChannel < 255 then
channels.redChannel = channels.redChannel + 1
end
end
if (LuaUI.Options.scroll == 1) then
if channels.greenChannel < 255 then
channels.greenChannel = channels.greenChannel + 1
end
end
if (LuaUI.Options.scroll == 2) then
if channels.blueChannel < 255 then
channels.blueChannel = channels.blueChannel + 1
end
end
if (LuaUI.Options.scroll == 3) then
if sliders.fontSliderValue >= 0 and sliders.fontSliderValue <= 3 then
sliders.fontSliderValue = sliders.fontSliderValue + 1
end
end
if (LuaUI.Options.scroll == 4) then
if LuaUI.Options.menuPos.x >= -1 and LuaUI.Options.menuPos.x <= 1 then
LuaUI.Options.menuPos.x = LuaUI.Options.menuPos.x + 0.05
end
end
if (LuaUI.Options.scroll == 5) then
if LuaUI.Options.menuPos.y >= -1 and LuaUI.Options.menuPos.y <= 1 then
LuaUI.Options.menuPos.y = LuaUI.Options.menuPos.y + 0.05
end
end
end
end)
end
if isKeyDown(menuKeys.select) then --enter
doKey(350, menuKeys.select, false, function()
if (LuaUI.Options.currentMenu == LuaUI.Options.menus[1]) then
LuaUI.switchToSub(LuaUI.Options.scroll + 2)
LuaUI.Options.scroll = 0
elseif (LuaUI.Options.currentMenu == LuaUI.Options.menus[2]) then
if (LuaUI.Options.scroll == 0) then
if(sliders.gunSliderValue == 0) then
toggles.grappleGun_t = not toggles.grappleGun_t
end
if(sliders.gunSliderValue == 1) then
toggles.objGun_t = not toggles.objGun_t
end
if(sliders.gunSliderValue == 2) then
toggles.waterGun_t = not toggles.waterGun_t
end
if(sliders.gunSliderValue == 3) then
toggles.fireGun_t = not toggles.fireGun_t
end
if(sliders.gunSliderValue == 4) then
toggles.dustGun_t = not toggles.dustGun_t
end
if(sliders.gunSliderValue == 5) then
toggles.deleteGun_t = not toggles.deleteGun_t
end
if(sliders.gunSliderValue == 6) then
toggles.ropeGun_t = not toggles.ropeGun_t
end
end
if(LuaUI.Options.scroll == 1) then
toggles.blackParade_t = not toggles.blackParade_t
end
if(LuaUI.Options.scroll == 2) then
toggles.AdminSpec_t = not toggles.AdminSpec_t
end
if(LuaUI.Options.scroll == 3) then
Wings()
end
if(LuaUI.Options.scroll == 4) then
toggles.flash_t = not toggles.flash_t
end
if(LuaUI.Options.scroll == 5) then
toggles.rockstarChat = not toggles.rockstarChat
end
elseif (LuaUI.Options.currentMenu == LuaUI.Options.menus[3]) then
if (LuaUI.Options.scroll == 0) then
Gta4Neons()
end
if (LuaUI.Options.scroll == 1) then
local objs = object.get_all_objects()
for i = 1, #objs do
entity.delete_entity(objs[i])
end
end
if (LuaUI.Options.scroll == 2) then
tpVehicle()
end
if(LuaUI.Options.scroll == 3) then
LuaUI.switchToSub(8)
end
if(LuaUI.Options.scroll == 4) then
vehicleBypass()
end
if(LuaUI.Options.scroll == 5) then
LuaUI.switchToSub(9)
end
elseif (LuaUI.Options.currentMenu == LuaUI.Options.menus[4]) then
if (LuaUI.Options.scroll == 0) then
SpawnPed(sliders.pedSliderValue, 100)
end
if (LuaUI.Options.scroll == 1) then
SpawnAnimal(sliders.animalSliderValue, 100)
end
if (LuaUI.Options.scroll == 2) then
SpawnObj(sliders.objectSliderValue)
end
if (LuaUI.Options.scroll == 3) then
SpawnWrld(sliders.objectSliderValue)
end
if (LuaUI.Options.scroll == 4) then
SpawnProp(sliders.propSliderValue)
end
if (LuaUI.Options.scroll == 5) then
SpawnObjFromName()
end
elseif (LuaUI.Options.currentMenu == LuaUI.Options.menus[5]) then
if (LuaUI.Options.scroll == 0) then
LuaUI.switchToSub(11)
end
if (LuaUI.Options.scroll == 1) then
LuaUI.switchToSub(10)
end
elseif (LuaUI.Options.currentMenu == LuaUI.Options.menus[7]) then --player options
if (LuaUI.Options.scroll == 0) then
SpawnObj(math.random(1, #Objs), playersID)
end
if (LuaUI.Options.scroll == 1) then
network.force_remove_player(playersID)
end
elseif (LuaUI.Options.currentMenu == LuaUI.Options.menus[8]) then
if (LuaUI.Options.scroll > -1 and LuaUI.Options.scroll < LuaUI.Options.maxScroll) then
spawnPersonal(LuaUI.Options.scroll)
end
elseif (LuaUI.Options.currentMenu == LuaUI.Options.menus[9]) then
if(LuaUI.Options.scroll > -1) then
ParseIniVehicle()
end
elseif (LuaUI.Options.currentMenu == LuaUI.Options.menus[10]) then
if(LuaUI.Options.scroll == 0) then
toggles.typingPlayers = not toggles.typingPlayers
end
if(LuaUI.Options.scroll == 1) then
toggles.logPlayerVIP = not toggles.logPlayerVIP
end
if(LuaUI.Options.scroll == 2) then
for i=0, 31 do
if player.is_player_valid(i) then
network.force_remove_player(i)
end
end
end
if(LuaUI.Options.scroll == 3) then
toggles.standUser = not toggles.standUser
end
elseif (LuaUI.Options.currentMenu == LuaUI.Options.menus[11]) then
if LuaUI.Options.scroll > -1 then
playersID = LuaUI.Options.scroll
LuaUI.switchToSub(7)
end
end
end)
end
if isKeyDown(menuKeys.back) then --backspace
LuaUI.switchToSub(1)
LuaUI.Options.scroll = 0
LuaUI.Options.drawScroll = 0
end
end
function functions()
if toggles.grappleGun_t then
GrappleGun()
end
if toggles.objGun_t then
ObjectGun()
end
if toggles.fireGun_t then
ExplosionTypeGun(12)
ExplosionTypeGun(42)
end
if toggles.waterGun_t then
ExplosionTypeGun(13)
ExplosionTypeGun(42)
end
if toggles.dustGun_t then
ExplosionTypeGun(80)
ExplosionTypeGun(42)
end
if toggles.deleteGun_t then
DeleteGun()
end
if toggles.ropeGun_t then
RopeGun()
end
if toggles.blackParade_t then
BlackParade()
end
if toggles.AdminSpec_t then
script.set_global_i(262145+8528, 1)
else
script.set_global_i(262145+8528, 0)
end
if toggles.flash_t then
doPTFX()
end
customColour = {r = channels.redChannel, g = channels.greenChannel, b = channels.blueChannel, a = 255}
end
Vehicle>Garage Vehicles vehicle name does not match vehicle that gets delivered; i am requesting a ENUS COGNOSCENTI 55 (ARMORED) and the DECLASSE TORNADO CUSTOM is getting delivered; no vehicles pending with Mors Mutual Insurance.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.