freeeaky / gtalua Goto Github PK
View Code? Open in Web Editor NEWScripting engine for GTA V in Lua
License: GNU General Public License v2.0
Scripting engine for GTA V in Lua
License: GNU General Public License v2.0
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
and after some time it's too large
I download the source project,but I can not build it........
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 ....
(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
Might be related to ScriptHookV
Reported by seeadler / gcWorld
Returns true false depending on if the timer is running or not.
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.
Just tested my neon after changing to latest version and they didn't work.
z00t and I out this was the reason:
You added SET_VEHICLE_NEON_LIGHT_ON
Which should be SET_VEHICLE_NEON_LIGHT_ENABLED
In both the INI files
like with KEY constants
and/or wrapper
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
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 (_ -)
Use keyboard hooks instead of GetAsyncKeyState
Command + CPP backend
Natives like GET_PED_NEARBY_PEDS will not work with their own bind
Change color for highlighting change color for everything.
similar to GetAimedEntity
Someone was trying to install my menu and GTALua crashed with this error:
http://puu.sh/iaSxd/de39ff0a60.png
I have no clue if it's an end user problem, or a problem with GTALua, so I'm submitting an issue about it
Reloading Addons might break Threads?
Or just print function?
Calling the native PED.REMOVE_PED_ELEGANTLY leads to an exception in GTALua.dll
[20:35:25] CORE: An exception occurred while executing 'GTALua.dll'
See gist for example script
https://gist.github.com/gcWorld/ab11c6b53ba31dec5613
Might be related to #13
for wiki
the 4th index variable is an address to a float.
GET_GROUND_Z_FOR_3D_COORD=ffff)b -> GET_GROUND_Z_FOR_3D_COORD=fffm)b
I cannot get this to work in GTALua, but it works in c++ or .net
Hook directx 9/11, put console in
maybe: also wrap dx functions ?
The main advantage of your plugin to http://gtaforums.com/topic/789139-vrelhook-lua-plugin-for-script-hook-v/ IMHO is that its source code is available (which btw is never really mentioned as advantage).
You, though, didn't indicate a license, which makes it very hard to actually use your project. http://choosealicense.com/ might help you to choose a license.
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)
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 :)
It wont seem to accept a variable hash like:
local hash = -1550393228
natives.OBJECT.CREATE_OBJECT(hash,p_pos.x,p_pos.y,p_pos.z,true,true,false)
It returns these weird values
http://puu.sh/hT6Oi/64207110db.png
When using this code:
http://puu.sh/hTcB8/199632c30f.png
Suggestion from gir489 / unknowncheats
The seatbelt mod reported that gui.NotifyAboveMap is not working correctly, at least the time parameter isn't.
crashes after some time, in ctor (alloc?)
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."
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
In 'GTALua\internal\game\Enitity,lua' line 186 is missing 'then' after 'if blip:Exists()'
People have trouble finding out how to reload their script
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
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.
GET_GROUND_Z_FOR_3D_COORD has a float* (out)
doesn't work in lua
Hey, The title pretty much says it all. Custom controls would be nice for the GUI module! E.G. Up, down, left, right and back
If you go directly online, the scriptthread wont start.
natives.GAMEPLAY.GET_GAME_TIMER()
Reported by Baaa, IRC
People who just started learning Lua might find it hard to get started
Attempt a simple script to write to a file, at C:\ or just filename. Neither open the file using io.open.
Example script: http://privatepaste.com/55c0480eec
The natives don't provide that
Putting just a random character on a line causes the game to crash.
I've noticed a lot of the natives either don't have a proper name or simply aren't there
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.