Jump to content

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


headscript

Recommended Posts

DALIBOUSSETTA

i tried to install realistic vehicle controls and it's not working please help me ! and can you tell me how to install it properly

Link to comment
Share on other sites

headscript

i tried to install realistic vehicle controls and it's not working please help me ! and can you tell me how to install it properly

read first post

Link to comment
Share on other sites

 

I assume no audio navies work yet ? I'm trying to use "AUDIO._PLAY_AMBIENT_SPEECH1" and "AUDIO.REQUEST_SCRIPT_AUDIO_BANK" but it doesn't accept char values.

It was not a char in the sdk natives. H gonna add it to the list of changes for next version

 

Would it be possible for us to recompile the .asi file along with updated natives.h so we don't have to wait for you to update to the latest version ?

 

Maybe a separate download with a source code for the modders, just so we can begin testing all the unknown functions on our own.

Edited by skyrayfox
Link to comment
Share on other sites

headscript

 

 

I assume no audio navies work yet ? I'm trying to use "AUDIO._PLAY_AMBIENT_SPEECH1" and "AUDIO.REQUEST_SCRIPT_AUDIO_BANK" but it doesn't accept char values.

It was not a char in the sdk natives. H gonna add it to the list of changes for next version

 

Would it be possible for us to recompile the .asi file along with updated natives.h so we don't have to wait for you to update to the latest version ?

 

Maybe a separate download with a source code for the modders, just so we can begin testing all the unknown functions on our own.

 

i cant publish the source code yet as i stated some pages before its using licensed source codes

i would compile the new natives.h if nativesdb would be updated

Link to comment
Share on other sites

i cant publish the source code yet as i stated some pages before its using licensed source codes

i would compile the new natives.h if nativesdb would be updated

Like ?

Link to comment
Share on other sites

headscript

 

i cant publish the source code yet as i stated some pages before its using licensed source codes

i would compile the new natives.h if nativesdb would be updated

Like ?

 

its using some parts of a lua engine from a mmorpg which i was workin on this year (Heroes of Asgard)

 

 

I assume no audio navies work yet ? I'm trying to use "AUDIO._PLAY_AMBIENT_SPEECH1" and "AUDIO.REQUEST_SCRIPT_AUDIO_BANK" but it doesn't accept char values.

It was not a char in the sdk natives. H gonna add it to the list of changes for next version

 

Would it be possible for us to recompile the .asi file along with updated natives.h so we don't have to wait for you to update to the latest version ?

 

Maybe a separate download with a source code for the modders, just so we can begin testing all the unknown functions on our own.

 

but im gonna update to that one of the current sdk but it got some stuff wrong which i have already fixed in my version

Edited by headscript
  • Like 1
Link to comment
Share on other sites

Gecko Moria

 

i cant publish the source code yet as i stated some pages before its using licensed source codes

i would compile the new natives.h if nativesdb would be updated

Like ?

 

I think he isn't obligated to explain why he doesn't want to share the source code.

Link to comment
Share on other sites

 

 

i cant publish the source code yet as i stated some pages before its using licensed source codes

i would compile the new natives.h if nativesdb would be updated

Like ?

 

I think he isn't obligated to explain why he doesn't want to share the source code.

 

Of course he isn't, I was just curious.

Link to comment
Share on other sites

What key is it to reload the files? it used to be F3 but i think he changed it

Link to comment
Share on other sites

headscript

What key is it to reload the files? it used to be F3 but i think he changed it

ctrl + R

Link to comment
Share on other sites

 

What key is it to reload the files? it used to be F3 but i think he changed it

ctrl + R

 

Thanks

Link to comment
Share on other sites

 

What key is it to reload the files? it used to be F3 but i think he changed it

ctrl + R

 

nvm that doesnt work

Link to comment
Share on other sites

headscript

 

 

What key is it to reload the files? it used to be F3 but i think he changed it

ctrl + R

 

nvm that doesnt work

 

do you use the sdk?

Link to comment
Share on other sites

 

 

 

What key is it to reload the files? it used to be F3 but i think he changed it

ctrl + R

 

nvm that doesnt work

 

do you use the sdk?

 

No

Link to comment
Share on other sites

I can't get this to work. windows 8.1 x64. I've installed the redist, and moved lua.asi to game directory. I have tried several scripts which i have put in the addins folder. I'm using the updated scripthook with online bypass for steam version 350.1/2. I can get other asi mods to work such as native trainer. The scripthook log says that lua.asi is loaded but i can't activate any lua scripts. What am I doing wrong?

Edited by hacknup
  • Like 1
Link to comment
Share on other sites

Hello everyone.

Has anyone managed to get DRAW_MARKER work in LUA? It works in .asi for me, but in lua console for line like

 

GRAPHICS.DRAW_MARKER(2, -1182.93, -883.92, 15.25, 0.0, 0.0, 0.0, 180.0, 0.0, 0.0, 0.75, 0.75, 0.75, 204, 204, 0, 100, false, true, 2, false, false, false, false)

 

I get error "argument #22 is 'boolean', 'integer' expected". If I change 22 and 23 (same goes for 23) to integer, 0 for example, no error messages appear in lua, but scripthook shows an error (exception), and lua stops responding.

In nativesDB these values are recommended to set to "false", so why does LUA ask for integer?

 

I would be very grateful for any advice.

 

Also, is there a way to first get coordinate proximity like

 

for i, current in ipairs(res) do
if(GAMEPLAY.GET_DISTANCE_BETWEEN_COORDS(coords.x,coords.y,coords.z,current[1],current[2],current[3],false) < 2) then

...

 

and then find out which local "res" is the one player is close to and get other values from it, like name[4] or price[5]?

So I don't have to make separate if...then for each set of coordinates.

 

Thank you in advance.

Edited by kopalov
Link to comment
Share on other sites

skannerz22

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Cannot contact the database server)

You can try searching via Google in the meantime.

Note that their indexes of our content may be out of date.

Lua Script Hook V Plugin WWW

 

https://www.gta5-mods.com/tools/lua-plugin-for-script-hook-v this works but it is a development kit version (so it has a weird thingy on the screen

Link to comment
Share on other sites

headscript

website works again (damn u hackers trying to getinto the system) gonna change the security policies soon

 

There were 102 failed login attempts since the last successful login.

so 102 login tries per 5 minutes u guys are slow to crack a 256bit password:D

Edited by headscript
Link to comment
Share on other sites

Hi headscript need your help to convert a lua script to asi, but somehow I can't pm you... Can you help?

Link to comment
Share on other sites

headscript

Hi headscript need your help to convert a lua script to asi, but somehow I can't pm you... Can you help?

add me in skype fabs1996

also it needs to be your lua script

Link to comment
Share on other sites

vitalik2187836

Can anyone help me? My game crashing everytime i load savegame. But everything works fine on first game load.

Link to comment
Share on other sites

headscript

Can anyone help me? My game crashing everytime i load savegame. But everything works fine on first game load.

post your scripthookv.log and all other logs in your gta5 folder

also tell us which mods u have installed

how should we find whats wrong when u dont give us more information?

Link to comment
Share on other sites

i also cant get any LUA script to work. :\

my log:

 

 

// GTA V SCRIPT HOOK (build May 2 2015, v1.0.350.2a)
// © Alexander Blade 2015
[16:44:20] INIT: Started
[16:44:20] INIT: Success, game version is VER_1_0_350_2_NOSTEAM
[16:44:20] INIT: Registering script 'HeistVeh.asi' (0x000007FEF7015CA0)
[16:44:20] INIT: Registering script 'LUA.asi' (0x000007FEE148B9DC)
[16:44:20] INIT: Registering script 'NativeTrainer.asi' (0x000007FEDFA71C2B)
[16:44:20] INIT: Registering script 'NitroMod.asi' (0x000007FEF9CB2FB0)
[16:44:20] INIT: Registering script 'OpenInteriors.asi' (0x000007FEF4BC65B0)
[16:44:20] INIT: Registering script 'RareCars.asi' (0x000007FEE322111D)
[16:44:20] INIT: Registering script 'RiotMode.asi' (0x000007FEF4B44EC0)
[16:44:20] INIT: Registering script 'ScriptHookVDotNet.asi' (0x000007FEE90F27C0)
[16:44:32] INIT: GtaThread collection size 164
[16:44:32] INIT: wnd proc 0x00000000FFFF092D
[16:45:28] CORE: Requesting thread creation
[16:45:28] CORE: Creating threads
[16:45:30] CORE: Started control thread, id 28 active 1
[16:45:30] CORE: Started thread 'HeistVeh.asi', id 29 active 1
[16:45:30] CORE: Started thread 'LUA.asi', id 30 active 1
[16:45:30] CORE: Started thread 'NativeTrainer.asi', id 31 active 1
[16:45:30] CORE: Started thread 'NitroMod.asi', id 32 active 1
[16:45:30] CORE: Started thread 'OpenInteriors.asi', id 33 active 1
[16:45:30] CORE: Started thread 'RareCars.asi', id 34 active 1
[16:45:30] CORE: Started thread 'RiotMode.asi', id 35 active 1
[16:45:30] CORE: Started thread 'ScriptHookVDotNet.asi', id 36 active 1
[16:45:30] CORE: Launching main() for 'HeistVeh.asi'
[16:45:30] CORE: Launching main() for 'LUA.asi'
[16:45:30] CORE: Launching main() for 'NativeTrainer.asi'
[16:45:30] CORE: Launching main() for 'NitroMod.asi'
[16:45:30] CORE: Launching main() for 'OpenInteriors.asi'
[16:45:30] CORE: Launching main() for 'RareCars.asi'
[16:45:30] CORE: Launching main() for 'RiotMode.asi'
[16:45:30] CORE: Launching main() for 'ScriptHookVDotNet.asi'
[17:41:28] UNINIT: Unregistering script 'ScriptHookVDotNet.asi' (0x000007FEE90F27C0)
[17:41:28] UNINIT: Unregistering script 'RareCars.asi' (0x000007FEE322111D)
[17:41:28] UNINIT: Unregistering script 'NitroMod.asi' (0x000007FEF9CB2FB0)

 

Link to comment
Share on other sites

headscript

 

i also cant get any LUA script to work. :\

 

my log:

 

 

 

// GTA V SCRIPT HOOK (build May 2 2015, v1.0.350.2a)
// © Alexander Blade 2015
[16:44:20] INIT: Started
[16:44:20] INIT: Success, game version is VER_1_0_350_2_NOSTEAM
[16:44:20] INIT: Registering script 'HeistVeh.asi' (0x000007FEF7015CA0)
[16:44:20] INIT: Registering script 'LUA.asi' (0x000007FEE148B9DC)
[16:44:20] INIT: Registering script 'NativeTrainer.asi' (0x000007FEDFA71C2B)
[16:44:20] INIT: Registering script 'NitroMod.asi' (0x000007FEF9CB2FB0)
[16:44:20] INIT: Registering script 'OpenInteriors.asi' (0x000007FEF4BC65B0)
[16:44:20] INIT: Registering script 'RareCars.asi' (0x000007FEE322111D)
[16:44:20] INIT: Registering script 'RiotMode.asi' (0x000007FEF4B44EC0)
[16:44:20] INIT: Registering script 'ScriptHookVDotNet.asi' (0x000007FEE90F27C0)
[16:44:32] INIT: GtaThread collection size 164
[16:44:32] INIT: wnd proc 0x00000000FFFF092D
[16:45:28] CORE: Requesting thread creation
[16:45:28] CORE: Creating threads
[16:45:30] CORE: Started control thread, id 28 active 1
[16:45:30] CORE: Started thread 'HeistVeh.asi', id 29 active 1
[16:45:30] CORE: Started thread 'LUA.asi', id 30 active 1
[16:45:30] CORE: Started thread 'NativeTrainer.asi', id 31 active 1
[16:45:30] CORE: Started thread 'NitroMod.asi', id 32 active 1
[16:45:30] CORE: Started thread 'OpenInteriors.asi', id 33 active 1
[16:45:30] CORE: Started thread 'RareCars.asi', id 34 active 1
[16:45:30] CORE: Started thread 'RiotMode.asi', id 35 active 1
[16:45:30] CORE: Started thread 'ScriptHookVDotNet.asi', id 36 active 1
[16:45:30] CORE: Launching main() for 'HeistVeh.asi'
[16:45:30] CORE: Launching main() for 'LUA.asi'
[16:45:30] CORE: Launching main() for 'NativeTrainer.asi'
[16:45:30] CORE: Launching main() for 'NitroMod.asi'
[16:45:30] CORE: Launching main() for 'OpenInteriors.asi'
[16:45:30] CORE: Launching main() for 'RareCars.asi'
[16:45:30] CORE: Launching main() for 'RiotMode.asi'
[16:45:30] CORE: Launching main() for 'ScriptHookVDotNet.asi'
[17:41:28] UNINIT: Unregistering script 'ScriptHookVDotNet.asi' (0x000007FEE90F27C0)
[17:41:28] UNINIT: Unregistering script 'RareCars.asi' (0x000007FEE322111D)
[17:41:28] UNINIT: Unregistering script 'NitroMod.asi' (0x000007FEF9CB2FB0)

 

 

which Lua scripts did u tried and show me the content of your scripts and addins folder

Link to comment
Share on other sites

 

 

i also cant get any LUA script to work. :\

 

my log:

 

 

 

// GTA V SCRIPT HOOK (build May 2 2015, v1.0.350.2a)
// © Alexander Blade 2015
[16:44:20] INIT: Started
[16:44:20] INIT: Success, game version is VER_1_0_350_2_NOSTEAM
[16:44:20] INIT: Registering script 'HeistVeh.asi' (0x000007FEF7015CA0)
[16:44:20] INIT: Registering script 'LUA.asi' (0x000007FEE148B9DC)
[16:44:20] INIT: Registering script 'NativeTrainer.asi' (0x000007FEDFA71C2B)
[16:44:20] INIT: Registering script 'NitroMod.asi' (0x000007FEF9CB2FB0)
[16:44:20] INIT: Registering script 'OpenInteriors.asi' (0x000007FEF4BC65B0)
[16:44:20] INIT: Registering script 'RareCars.asi' (0x000007FEE322111D)
[16:44:20] INIT: Registering script 'RiotMode.asi' (0x000007FEF4B44EC0)
[16:44:20] INIT: Registering script 'ScriptHookVDotNet.asi' (0x000007FEE90F27C0)
[16:44:32] INIT: GtaThread collection size 164
[16:44:32] INIT: wnd proc 0x00000000FFFF092D
[16:45:28] CORE: Requesting thread creation
[16:45:28] CORE: Creating threads
[16:45:30] CORE: Started control thread, id 28 active 1
[16:45:30] CORE: Started thread 'HeistVeh.asi', id 29 active 1
[16:45:30] CORE: Started thread 'LUA.asi', id 30 active 1
[16:45:30] CORE: Started thread 'NativeTrainer.asi', id 31 active 1
[16:45:30] CORE: Started thread 'NitroMod.asi', id 32 active 1
[16:45:30] CORE: Started thread 'OpenInteriors.asi', id 33 active 1
[16:45:30] CORE: Started thread 'RareCars.asi', id 34 active 1
[16:45:30] CORE: Started thread 'RiotMode.asi', id 35 active 1
[16:45:30] CORE: Started thread 'ScriptHookVDotNet.asi', id 36 active 1
[16:45:30] CORE: Launching main() for 'HeistVeh.asi'
[16:45:30] CORE: Launching main() for 'LUA.asi'
[16:45:30] CORE: Launching main() for 'NativeTrainer.asi'
[16:45:30] CORE: Launching main() for 'NitroMod.asi'
[16:45:30] CORE: Launching main() for 'OpenInteriors.asi'
[16:45:30] CORE: Launching main() for 'RareCars.asi'
[16:45:30] CORE: Launching main() for 'RiotMode.asi'
[16:45:30] CORE: Launching main() for 'ScriptHookVDotNet.asi'
[17:41:28] UNINIT: Unregistering script 'ScriptHookVDotNet.asi' (0x000007FEE90F27C0)
[17:41:28] UNINIT: Unregistering script 'RareCars.asi' (0x000007FEE322111D)
[17:41:28] UNINIT: Unregistering script 'NitroMod.asi' (0x000007FEF9CB2FB0)

 

 

which Lua scripts did u tried and show me the content of your scripts and addins folder

 

my scripts folder has:

addins folder

lib folder

main.lua

 

inside addins i got:

health.lua

immersiveHUD.lua

regen.lua

szabopersist.lua

Link to comment
Share on other sites

headscript

 

 

 

i also cant get any LUA script to work. :\

 

my log:

 

 

 

// GTA V SCRIPT HOOK (build May 2 2015, v1.0.350.2a)
// © Alexander Blade 2015
[16:44:20] INIT: Started
[16:44:20] INIT: Success, game version is VER_1_0_350_2_NOSTEAM
[16:44:20] INIT: Registering script 'HeistVeh.asi' (0x000007FEF7015CA0)
[16:44:20] INIT: Registering script 'LUA.asi' (0x000007FEE148B9DC)
[16:44:20] INIT: Registering script 'NativeTrainer.asi' (0x000007FEDFA71C2B)
[16:44:20] INIT: Registering script 'NitroMod.asi' (0x000007FEF9CB2FB0)
[16:44:20] INIT: Registering script 'OpenInteriors.asi' (0x000007FEF4BC65B0)
[16:44:20] INIT: Registering script 'RareCars.asi' (0x000007FEE322111D)
[16:44:20] INIT: Registering script 'RiotMode.asi' (0x000007FEF4B44EC0)
[16:44:20] INIT: Registering script 'ScriptHookVDotNet.asi' (0x000007FEE90F27C0)
[16:44:32] INIT: GtaThread collection size 164
[16:44:32] INIT: wnd proc 0x00000000FFFF092D
[16:45:28] CORE: Requesting thread creation
[16:45:28] CORE: Creating threads
[16:45:30] CORE: Started control thread, id 28 active 1
[16:45:30] CORE: Started thread 'HeistVeh.asi', id 29 active 1
[16:45:30] CORE: Started thread 'LUA.asi', id 30 active 1
[16:45:30] CORE: Started thread 'NativeTrainer.asi', id 31 active 1
[16:45:30] CORE: Started thread 'NitroMod.asi', id 32 active 1
[16:45:30] CORE: Started thread 'OpenInteriors.asi', id 33 active 1
[16:45:30] CORE: Started thread 'RareCars.asi', id 34 active 1
[16:45:30] CORE: Started thread 'RiotMode.asi', id 35 active 1
[16:45:30] CORE: Started thread 'ScriptHookVDotNet.asi', id 36 active 1
[16:45:30] CORE: Launching main() for 'HeistVeh.asi'
[16:45:30] CORE: Launching main() for 'LUA.asi'
[16:45:30] CORE: Launching main() for 'NativeTrainer.asi'
[16:45:30] CORE: Launching main() for 'NitroMod.asi'
[16:45:30] CORE: Launching main() for 'OpenInteriors.asi'
[16:45:30] CORE: Launching main() for 'RareCars.asi'
[16:45:30] CORE: Launching main() for 'RiotMode.asi'
[16:45:30] CORE: Launching main() for 'ScriptHookVDotNet.asi'
[17:41:28] UNINIT: Unregistering script 'ScriptHookVDotNet.asi' (0x000007FEE90F27C0)
[17:41:28] UNINIT: Unregistering script 'RareCars.asi' (0x000007FEE322111D)
[17:41:28] UNINIT: Unregistering script 'NitroMod.asi' (0x000007FEF9CB2FB0)

 

 

which Lua scripts did u tried and show me the content of your scripts and addins folder

 

my scripts folder has:

addins folder

lib folder

main.lua

 

inside addins i got:

health.lua

immersiveHUD.lua

regen.lua

szabopersist.lua

 

ok give this version a try https://mega.co.nz/#!8BQBQIBZ!BL-Ob84kLAjdUM_-VLTxcxqaWo-rHbharyGkbjBolE8

many people reported that this one wokrs better

replace the lua.asi(or use the SDK to see errors if it still happens :S) with the one of this archive and the main.lua

Link to comment
Share on other sites

The LUA script is becoming a major part of some of my scripts (which I like to automate during the startup of my game). Thanks for all of the hard work here.

 

@headscript: Are you still waiting on more updates on the Natives DB? I see there are still some natives which require their param types to be update. I've been randomly trying a few here and there and some are broken while I compiled some new ones in .NET.

 

Maybe this sub could use an IRC channel for group collaboration (irc.Rizon.net is pretty good)?

Link to comment
Share on other sites

headscript

The LUA script is becoming a major part of some of my scripts (which I like to automate during the startup of my game). Thanks for all of the hard work here.

 

@headscript: Are you still waiting on more updates on the Natives DB? I see there are still some natives which require their param types to be update. I've been randomly trying a few here and there and some are broken while I compiled some new ones in .NET.

 

Maybe this sub could use an IRC channel for group collaboration (irc.Rizon.net is pretty good)?

The LUA script is becoming a major part of some of my scripts (which I like to automate during the startup of my game). Thanks for all of the hard work here.

 

Thank You :)

 

Are you still waiting on more updates on the Natives DB?

Alex told me that he will Update NativeDB soon (whatever that means ^^)

 

I see there are still some natives which require their param types to be update ?

as i cant test every single by my one add them here please http://178.62.61.147/index.php?title=Wishes

 

maybe this sub could use an IRC channel for group collaboration (irc.Rizon.net is pretty good)?

I personally like more Skype groups as im not always active and i can just read the History there what do you think about that?

Edited by headscript
Link to comment
Share on other sites

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
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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