LUA Plugin for Script Hook V
Is there anyway to reset certain stats? Or perhaps deduct a certain amount from a stat?
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
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
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.
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
4. Start up GTAV.exe
5. Press , on your NUMPAD while in-game
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
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 >.<
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.
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.
Similar Threads
Combat Arms Hacks & Cheatsneed help for ScriptCH 17 Art & Graphic DesignICO (Windows Icon) file format plugin for Photoshop
7 Combat Arms Mod Discussioni need help with the plugin for Photoshop
8 Visual Basic ProgrammingGift for script kiddies
2 Call of Duty Modern Warfare 2 Server / GSC Modding[RELEASE]Mod Fixer For Scripts *.gsc_ACE
27

