Coder Social home page Coder Social logo

rimurus-2t1-scripts's Introduction

Rimuru

Just an otaku creating stuff and things

GitHub followers GitHub User's stars

Top Langs Anurag's github stats

rimurus-2t1-scripts's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rimurus-2t1-scripts's Issues

keyHook.lua

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

Fuel LUA

image
does it need a update or is it something i do wrong with loading it?

error code

i can execute the menu but it throws me a error code and i cnat open it
rimuru

Vehicle Mismatch|Garage Vehicles

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.