Jump to content

[V|REL|HOOK] LUA Plugin for Script Hook V


Recommended Posts

thebunnyrules

Hey guys, I'm trying to make a script that requires alot of tweaking of the parameters. Is there a way to make script hook lua reload all the scripts to avoid me having to restart gTA to check on my changes? I know the regular script hook uses Insert button to reload scripts but I know that doesn't work on ScriptHook Lua.

  • 5 weeks later...
  • 3 months later...
  • 4 weeks later...
diamond-optic

you can also grab the last GitHub Autobuild (06-14-2015) Package, which is slightly more recent then the 10.1 release:

 

http://www.avamods.com/download.php?view.203

 

 

sadly since this plugin itself is so outdated that there are quite a few natives that arent present (and dont work even if using the hash instead of the name) and a lot that have argument errors. But it does still work if you can avoid or work around some of the issues. I still use LUA but Ive been trying to find motivation to look into converting my stuff to .net but I'm just too lazy and not interested in gta v as much as I used to be to bother yet..

 

I wish this could just get an update to resolve the native issues :-\

Edited by diamond-optic
diamond-optic

Yeah, indeed. A lot of LUA scripts are not working.

well scripts that used to work can probably be fixed, even if this plugin was updated to use the most recent native list the scripts would probably still need to be updated. Its mostly newer stuff that was never present in any version of the LUA plugin that cant be used (or just like how a lot of native arguments have changed or been corrected on the nativedb that no longer match what the lua plugin is expecting for arguments)

Edited by diamond-optic
  • 5 weeks later...

 

 

 

..can you be more specific about what you mean

 

When I did not put a normal mod plugin LUA my gaming lag , and when I installed Visual Studio 2013 x64 Redist

I lag game , and after 15 minutes my accident , when I remove Visual Studio 2013 x64 Redist inactive LUA plug

  • 2 months later...

but I'm just too lazy and not interested in gta v as much as I used to be to bother yet..

 

I wish this could just get an update to resolve the native issues :-\

Same thing here i would update it but i cant just bother

and i dont see much interest into the plugin anyways i may get like 2-3 requests a week to update it but thats just meh most people dont play gta5 anymore

also the plugin is open source anyone could update it

mockba.the.borg

I am keeping https://github.com/MockbaTheBorg/GTALuaupdated to the latest GTA V release .. at least so far.

Maybe I will give up at some point, but for now you can get the latest one at this GitHub.

 

I am using it with my mod (also included there) and seems to be working fine so far.

  • 3 weeks later...
diamond-optic

No ... the source code on my GitHub is the latest. Updated to the last GTA V Update. (as of 3 weeks ago)

Go get it and have fun ... :)

Isn't that GTALua plugin different then this plugin? and would require plugins to be re-written..

 

also the plugin is open source anyone could update it

without scrolling back through half of the thread, I thought I recall you saying that the source thats available was not the latest

 

the natives werent the latest back then i guess

but it should still be fine and not that "much" work

u probably only have to update the sdk and the natives

  • 3 weeks later...

I am keeping https://github.com/MockbaTheBorg/GTALuaupdated to the latest GTA V release .. at least so far.

Maybe I will give up at some point, but for now you can get the latest one at this GitHub.

 

I am using it with my mod (also included there) and seems to be working fine so far.

 

Hi there, is it possible for you to upload the asi file as well please ?

 

Thanks in advance : )

I am keeping https://github.com/MockbaTheBorg/GTALuaupdated to the latest GTA V release .. at least so far.

Maybe I will give up at some point, but for now you can get the latest one at this GitHub.

 

I am using it with my mod (also included there) and seems to be working fine so far.

Hi there, is it possible for you to upload the asi file as well please ?

I have added a "release" folder with the .ASI on it.

Please give it a try and let me know.

 

Cheers!

The Borg

Thank you very much, I'll test it now and see if it works : )

Does this version has the SDK implemented, like it shows an CMD Console to reload the scripts and find any errors in real time while playing ?

 

 

Edit:

I cannot run the older lua scripts with this GTALua plugin, i copy the scripts to the GTALua folder and it doesn't load in-game.

Is the structure for these script's coding different from the last version (10.1) ?

Edited by Player360

I have added a "release" folder with the .ASI on it.

Please give it a try and let me know.

 

Cheers!

The Borg

 

@mockba.the.borg Scripts dont work after loading save

@zh0ul @mockba.the.borg

I've been asked about this innumerable times. Can ye provide some insight into this issue, or where to start digging?

It feels like GTALua simply loses its tick/hook, which likely means the game mem has shifted and somehow GTALua did not pick up on this fact and re-register with scripthook?

 

source: https://github.com/Freeeaky/GTALua/issues/50

 

can you please fix this problem save game load @mockba.the.borg?

Edited by MightyMax
mockba.the.borg

Guys, looks like there's a naming coincidence going on ... the GTALua I have on my github is not the same as the GTALua from this thread .. I posted an answer here by mistake.

The other GTALua has a different structure, that's why the "older scripts" are not working with mine.

Please consider looking at the examples on mine (reference also freeaky's github, the original author of this one) and building on them, or get the other GTALua to run scripts originally written for him.

 

I am not keeping my GTALua updated anymore (and I think freeaky is not updating his either).

  • 1 month later...
meimeiriver

Current Version: 9,10.0

Description:

Write any LUA Script for GTA5

you are able to use all Natives from NativeDB

 

 

 

Changelog

 

Requirements:

Installation Instructions:

  1. Extract LUA.zip
  2. Move the LUA.asi in the GTA5 Folder where the ScriptHookV.dll is located
  3. Place the scripts folder in the GTA 5 Folder
  4. Add any Scripts you want into the scripts/addins folder
  5. Run GTA 5 over Steam or Rockstar Launcher

Extra Note:

I can convert your Lua Scripts to fully Independent .asi files for safety/speed just write me a PM

Example:

local basemodule = {}basemodule.GUI = Libs["GUI"]function basemodule.unload()endfunction basemodule.giveWeapon(weapon)    WEAPON.GIVE_DELAYED_WEAPON_TO_PED(PLAYER.PLAYER_PED_ID(), GAMEPLAY.GET_HASH_KEY(weapon), 1000, true)endfunction basemodule.init()    bodyguard.GUI.addButton("Give Me RAILGUN",basemodule.giveWeapon,"WEAPON_RAILGUN",0,0.2,0.05,0.05)endfunction basemodule.tick()    basemodule.GUI.tick()endreturn basemodule 

Download:

LUA Plugin Download

 

Found a Bug?

Report them here: https://github.com/gallexme/LuaPlugin-GTAV/issues

 

Thanks for your Love and Support: martysama0134 (i owe you something)

 

 

Hmm, that download link is totally dead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.