Git Product home page Git Product logo

gtalua's People

Contributors

freeeaky avatar gcworld avatar iiegor avatar mockbatheborg avatar spaz926 avatar videah avatar vincentducorps avatar

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gtalua's Issues

GET_CURRENT_PED_WEAPON causes game to crash

Using natives.WEAPON.GET_CURRENT_PED_WEAPON(plyPed, 0, false) will make the game crash. From what I understand, that's how you're supposed to use it. Changing 0 to any weapon hash and changing false to true still causes a crash

I can not build the asi file

I download the source project,but I can not build it........
qq 20150519013907
Can you uploading the *.sln project file and uploading the asi flie already build?????

I want to just coding in Lua If you uploading the asi flie ,
I don't like open vs2013 to build the C++ file.......It make me painful..

Iโ€˜m in China.Easy visit github,but not easy to visit foreign web ....

Update For Two Natives

(natives.ini)

_0x2AA720E4287BF269=0x2AA720E4287BF269
_0x8E0A582209A62695=0x8E0A582209A62695

TO:

SET_VEHICLE_NEON_LIGHTS_ON=0x2AA720E4287BF269
SET_VEHICLE_NEON_LIGHTS_COLOUR=0x8E0A582209A62695


(natives_call_layout.ini)

_0x2AA720E4287BF269=aab)v
_0x8E0A582209A62695=aaaa)v

TO:

SET_VEHICLE_NEON_LIGHTS_ON=aab)v
SET_VEHICLE_NEON_LIGHTS_COLOUR=aiii)v

Library folder

A folder that loads every lua file in it and it can be used for custom user made function library's like a GUI library.

Console opens on a non-existent monitor

With having 2 monitors and when the main is on the right and secondary on the left, the console tries to open on the outside of the right monitor (beyond the existing monitor)

Edit: If you're having this problem, a work around is to open it in your task bar and push win+left arrow

More keys for Keycodes.lua

VK_OEM_1 = 186 -- OEM_1 (: ;)
VK_OEM_2 = 191 -- OEM_2 (? /)
VK_OEM_3 = 192 -- OEM_3 (~ `)
VK_OEM_4 = 219 -- OEM_4 ({ [)
VK_OEM_5 = 220 -- OEM_5 (| )
VK_OEM_6 = 221 -- OEM_6 (} ])
VK_OEM_7 = 222 -- OEM_7 (" ')
VK_OEM_PERIOD = 190 -- OEM_PERIOD (> .)
VK_OEM_PLUS = 187 -- OEM_PLUS (+ =)
VK_OEM_MINUS = 189 -- OEM_MINUS (_ -)

IsKeyDown

Use keyboard hooks instead of GetAsyncKeyState

Array Parameters

Natives like GET_PED_NEARBY_PEDS will not work with their own bind

Reloading Addons

Reloading Addons might break Threads?
Or just print function?

I want to ask something: How can I close the console window?

I'm a Chinese developer. And English is not very good,So I just can ask question in here..

I use GTALua to make GTA5 mod now. It is simple and convenient. I'm very happy to use it.

Now, I have a question, how to close the console window in Lua?

image

This thing....
How close It????

Suggestion for fixing SET_VEHICLE_NUMBER_PLATE_TEXT_INDEX

In native_call_layout.ini
SET_VEHICLE_NUMBER_PLATE_TEXT_INDEX=as)v Doesn't work
z00t and I tested around a bit and it seems that:
SET_VEHICLE_NUMBER_PLATE_TEXT_INDEX=aa)v Works

natives.VEHICLE.SET_VEHICLE_NUMBER_PLATE_TEXT_INDEX(Vehicle vehicle, string)
Becomes
natives.VEHICLE.SET_VEHICLE_NUMBER_PLATE_TEXT_INDEX(Vehicle vehicle, int)

"no such operator defined" CsScriptThread.lua:70

Hey, when I try to print data sent to a function from a menu button I get the "no such operator defined" and I did some research on it but it was all about C++ and or luabind.

Here is the function;
function sinhax:menuChanger(newmenu)
print(newmenu) -- debug as newmenu:Open() gives a nill value
newmenu:Open()
end

and here is the button;
mainmenu:AddOption("Player", "menuChanger", "playermenu")

Thanks for any support :)

gui.NotifyAboveMap

The seatbelt mod reported that gui.NotifyAboveMap is not working correctly, at least the time parameter isn't.

Console Window causes bugs

Flava0ne reports this from the Seatbelt Mod on gta5-mods.com

"Yes, I'm definitely sure that it's GTALua. It's not GTALua that reduces my FPS, it's when I tried using the -fullscreen command line in the commandline.txt file of my root GTA V folder to try and fix what GTALua does, is not let me play GTA V in full screen. It's because of that command prompt that pops up that it uses when you start the game. For some reason when after launching the game if I were to quickly open up a window or anything before the game's screen actually loads up, then once the game's screen loads up, it isn't in full screen, more like windowed full screen if you know what I mean and I'm not able to Alt-Tab out to minimize it and then maximize it back up. It's because of that command prompt that comes when when I try and use GTALua. No issues at all with the other LUA plugin."

GET_CURRENT_PED_WEAPON and GET_MAX_AMMO pointers

The following functions require pointers. Changes in native_call_layout.ini

GET_CURRENT_PED_WEAPON=aib)b -> GET_CURRENT_PED_WEAPON=amb)b
Refer to the following:
Any GET_CURRENT_PED_WEAPON(Ped ped, Hash *weapHash, BOOL p2) // 0xB0237302

GET_MAX_AMMO=aai)b -> GET_MAX_AMMO=aam)b
Refer to the following:
Any GET_MAX_AMMO(Ped ped, Hash WeapHash, int *ammo) // 0x0B294796

Entity.lua

In 'GTALua\internal\game\Enitity,lua' line 186 is missing 'then' after 'if blip:Exists()'

Multiple Threads Not Loading

Ok after the fix for multiple asi not being loaded I seem to be back to square one. I could only execute the first thread that was loaded and threads after will not work

file.FindFiles not working

I've created a test addon which runs the following function:

function TestAddon:LoadAddons()
    local success, dir_list, _file_list = file.FindFiles("GTALua/addons/*")

    -- Failure to load addons
    if not success then
        print("Failed to get directory list for GTALua/addons/TestAddon/addons")
        print("Unable to load addons!")
        return false
    end

    -- addon Loading
    print("")
    for _,addon_name in pairs(dir_list) do
        -- Do not load addons that start with "_"
        if addon_name:sub(1,1) == "_" then
            print("Ignored addon ", addon_name)
        else
            print("Loading addon ", addon_name, "...")
            self:LoadAddon(addon_name)
        end
    end
    print("")

    return true
end

It is almost the same code as the main() function runs, however it seems to not work on addons. I've tried some other combinations such as '', '/_', '../../*', etc.

Update the natives

I've noticed a lot of the natives either don't have a proper name or simply aren't there

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.