Thumbs upLUA Plugin for Script Hook V

Posts 31–45 of 54 · Page 3 of 4
Quote Originally Posted by Porco Aranha View Post
what you are using in the script, bodyguard coming in the download ?
tried different scripts, right now using one to delete bad sport stuff
however other .asi files are working and do get loaded.. like the Endeavour Mod.

- - - Updated - - -

I got it.. forgot to install Visual Studio 2013 x64 Redist
Is there anyway to reset certain stats? Or perhaps deduct a certain amount from a stat?
Quote Originally Posted by sweetmonster View Post
Is there anyway to reset certain stats? Or perhaps deduct a certain amount from a stat?
Like what stats are you talking about in specific ?
Dont laught at me but can someone tell me what this does, is it like it gives you a console where you can type e.g Spawn Adder (i know thats not the code for it :P, just image it is) and them it spawns a adder. Or is it so you can load multiple Mods at the same time like the clear bad sport and e.g a trainer
Quote Originally Posted by Simmoax View Post
Dont laught at me but can someone tell me what this does, is it like it gives you a console where you can type e.g Spawn Adder (i know thats not the code for it :P, just image it is) and them it spawns a adder. Or is it so you can load multiple Mods at the same time like the clear bad sport and e.g a trainer
This allows you to run custom lua scripts to do pretty much anything which the game lets you do and more ^^
Quote Originally Posted by .Zer0 View Post
This allows you to run custom lua scripts to do pretty much anything which the game lets you do and more ^^
LUA scripts been like the ones that clears reports .ect, and it it only ones like that or do LUA scipts include ones like the native trainer
Quote Originally Posted by Simmoax View Post
LUA scripts been like the ones that clears reports .ect, and it it only ones like that or do LUA scipts include ones like the native trainer
I don't quite get what you are trying ot say but yes you could basically do an entire trainer with lua.
wasnt sure which section to put this comment in, but i have a bodyguard script. but the fkers wont shoot when in vehicle? can any1 tell me whts rong or wht i missed

local SWATteam = {}

function SWATteam.tick()
local playerPed = PLAYER.PLAYER_PED_ID()
local player = PLAYER.GET_PLAYER_PED(playerPed)
local playerExists = ENTITY.DOES_ENTITY_EXIST(playerPed)
if(PLAYER.IS_PLAYER_ONLINE() and playerExists) then
if(get_key_pressed(114)) then
local veh = PED.GET_VEHICLE_PED_IS_IN(playerPed,true)
local SWATskinID = GAMEPLAY.GET_HASH_KEY("ig_fbisuit_01")
local coords = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(play erPed, 0.0, 5.0, 0.0);
STREAMING.REQUEST_MODEL(SWATskinID)
local SWAT = PED.CREATE_PED( 26,SWATskinID,coords.x, coords.y, coords.z,0,false,true)
local group = PLAYER.GET_PLAYER_GROUP(PLAYER.PLAYER_ID());
PED.SET_PED_AS_GROUP_MEMBER(SWAT, group);
AI.TASK_COMBAT_HATED_TARGETS_AROUND_PED(SWAT, 5000, 0);
PED.SET_PED_KEEP_TASK(SWAT, true);
PED.SET_PED_CAN_SWITCH_WEAPON(SWAT,true);
WEAPON.GIVE_DELAYED_WEAPON_TO_PED(SWAT, GAMEPLAY.GET_HASH_KEY("weapon_specialcarbine"), 1000, true);
WEAPON.GIVE_DELAYED_WEAPON_TO_PED(SWAT, GAMEPLAY.GET_HASH_KEY("WEAPON_MICROSMG"), 1000, true);
ENTITY.SET_ENTITY_INVINCIBLE(SWAT, false);

end






end
end

return SWATteam
So how would one call to the clear cheating script he has posted? through the main.lua? I'm completely new at this so I'm not sure what I would write to make this happen.
Quote Originally Posted by Repentancex1 View Post
So how would one call to the clear cheating script he has posted? through the main.lua? I'm completely new at this so I'm not sure what I would write to make this happen.
It is way easier then you actually think man ^^

1. Create a lua name it whatever Example : clear_reports.lua
2. Put it into the addins folder
3. Insert this code

Code:
local clear = {}
function clear.unload()
print("Clearing Stats")	
end
function clear.tick()
    local playerPed = PLAYER.PLAYER_PED_ID()
    local player = PLAYER.GET_PLAYER_PED(playerPed)
    local playerExists = ENTITY.DOES_ENTITY_EXIST(playerPed) 
	if(playerExists) then
		if(get_key_pressed(110)) then
			print("Clearing Stats")	
                                STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("BADSPORT_NUMDAYS_1ST_OFFENCE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("BADSPORT_NUMDAYS_2ND_OFFENCE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("BADSPORT_NUMDAYS_3RD_OFFENCE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("BADSPORT_NUMDAYS_4TH_OFFENCE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("BADSPORT_NUMDAYS_5TH_OFFENCE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("BADSPORT_NUMDAYS_6TH_OFFENCE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("BADSPORT_NUMDAYS_7TH_OFFENCE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("BADSPORT_NUMDAYS_8TH_OFFENCE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("BADSPORT_NUMDAYS_9TH_OFFENCE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("BADSPORT_NUMDAYS_10TH_OFFENCE"), 0, true)
				STATS.STAT_SET_FLOAT(GAMEPLAY.GET_HASH_KEY("BADSPORT_RESET_MINUTES"), 1.0, true)
                                STATS.STAT_SET_FLOAT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_OVERALL_BADSPORT"), 0, true)
				STATS.STAT_SET_BOOL(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_CHAR_IS_BADSPORT"), false, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_BECAME_BADSPORT_NUM"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_BAD_SPORT_BITSET"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_CHEAT_BITSET"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_REPORT_STRENGTH"), 32, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_COMMEND_STRENGTH"), 100, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_FRIENDLY"), 100, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_HELPFUL"), 100, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_GRIEFING"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_OFFENSIVE_LANGUAGE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_OFFENSIVE_UGC"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_VC_HATE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_GAME_EXPLOITS"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP0_MPPLY_ISPUNISHED"), 0, true)
                                STATS.STAT_SET_FLOAT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_OVERALL_BADSPORT"), 0, true)
				STATS.STAT_SET_BOOL(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_CHAR_IS_BADSPORT"), false, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_BECAME_BADSPORT_NUM"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_BAD_SPORT_BITSET"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_CHEAT_BITSET"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_REPORT_STRENGTH"), 32, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_COMMEND_STRENGTH"), 100, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_FRIENDLY"), 100, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_HELPFUL"), 100, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_GRIEFING"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_OFFENSIVE_LANGUAGE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_OFFENSIVE_UGC"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_VC_HATE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_GAME_EXPLOITS"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP1_MPPLY_ISPUNISHED"), 0, true)
                                STATS.STAT_SET_FLOAT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_OVERALL_BADSPORT"), 0, true)
				STATS.STAT_SET_BOOL(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_CHAR_IS_BADSPORT"), false, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_BECAME_BADSPORT_NUM"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_BAD_SPORT_BITSET"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_CHEAT_BITSET"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_REPORT_STRENGTH"), 32, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_COMMEND_STRENGTH"), 100, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_FRIENDLY"), 100, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_HELPFUL"), 100, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_GRIEFING"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_OFFENSIVE_LANGUAGE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_OFFENSIVE_UGC"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_VC_HATE"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_GAME_EXPLOITS"), 0, true)
				STATS.STAT_SET_INT(GAMEPLAY.GET_HASH_KEY("MP2_MPPLY_ISPUNISHED"), 0, true)
		end
	end
end

return clear
4. Start up GTAV.exe
5. Press , on your NUMPAD while in-game
how can open the gui?
an A B C D menu popped up and i dont know how to close it ... i can select the letters and it just spawns zombies and i want to get rid of it >.<
Quote Originally Posted by Kalamity222 View Post
an A B C D menu popped up and i dont know how to close it ... i can select the letters and it just spawns zombies and i want to get rid of it >.<
Delete The content of The addins folder.
And just put The scripts in you need.
i am trying it right now.. i put the "Clear cheating reports.lua" in the scripts\addins folder and popped the scripts folder and LUA.asi into the GTA directory. also the two other .dll files used for this. I assumed it would be the same since it's .asi... is there a totally different method I am missing?

also tried making my own lua file with Zer0's post a few above this one.. but that didnt work either.. not sure what im doing wrong.
Quote Originally Posted by blazeddd View Post
i am trying it right now.. i put the "Clear cheating reports.lua" in the scripts\addins folder and popped the scripts folder and LUA.asi into the GTA directory. also the two other .dll files used for this. I assumed it would be the same since it's .asi... is there a totally different method I am missing?

also tried making my own lua file with Zer0's post a few above this one.. but that didnt work either.. not sure what im doing wrong.
Does the console pop up when in-game ?
Posts 31–45 of 54 · Page 3 of 4

Post a Reply

Similar Threads

Tags for this Thread

Talk with us