LUA GTA V SCRIPS/functions (for making cheats)

Posts 1–11 of 11 · Page 1 of 1
LUA GTA V SCRIPS/functions (for making cheats)
Hi guys ive been making cheats and i thought some people would like some scrips/functions for lua cheats i will be bringing out a tutorial at a later date so if you dont know how to use them or make cheats look out for it. hope you like (: P.S. if some dont work just say !

If you need help just ask (:


Give all weapons
Code:
function onlineFunctions.giveAllWeapons(p)
	if Player(p):Exists() then
		local weaponList = {"WEAPON_KNIFE", "WEAPON_NIGHTSTICK", "WEAPON_HAMMER", "WEAPON_BAT", "WEAPON_GOLFCLUB", "WEAPON_CROWBAR", "WEAPON_PISTOL", "WEAPON_COMBATPISTOL", "WEAPON_APPISTOL", "WEAPON_PISTOL50", "WEAPON_MICROSMG", "WEAPON_SMG", "WEAPON_ASSAULTSMG", "WEAPON_ASSAULTRIFLE", "WEAPON_CARBINERIFLE", "WEAPON_ADVANCEDRIFLE", "WEAPON_MG", "WEAPON_COMBATMG", "WEAPON_PUMPSHOTGUN", "WEAPON_SAWNOFFSHOTGUN", "WEAPON_ASSAULTSHOTGUN", "WEAPON_BULLPUPSHOTGUN", "WEAPON_STUNGUN", "WEAPON_SNIPERRIFLE", "WEAPON_HEAVYSNIPER", "WEAPON_GRENADELAUNCHER", "WEAPON_GRENADELAUNCHER_SMOKE", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_GRENADE", "WEAPON_STICKYBOMB", "WEAPON_SMOKEGRENADE", "WEAPON_BZGAS", "WEAPON_MOLOTOV", "WEAPON_FIREEXTINGUISHER", "WEAPON_PETROLCAN", "WEAPON_SNSPISTOL", "WEAPON_SPECIALCARBINE", "WEAPON_HEAVYPISTOL", "WEAPON_BULLPUPRIFLE", "WEAPON_HOMINGLAUNCHER", "WEAPON_PROXMINE", "WEAPON_SNOWBALL", "WEAPON_VINTAGEPISTOL", "WEAPON_DAGGER", "WEAPON_FIREWORK", "WEAPON_MUSKET", "WEAPON_MARKSMANRIFLE", "WEAPON_HEAVYSHOTGUN", "WEAPON_GUSENBERG", "WEAPON_HATCHET", "WEAPON_RAILGUN"}
		for k, weap in pairs(weaponList) do
			natives.WEAPON.GIVE_DELAYED_WEAPON_TO_PED(Player(p).ID, natives.GAMEPLAY.GET_HASH_KEY(weap), 1000, false)
		end
	end
end
Remove all weapons
Code:
function onlineFunctions.removeAllWeapons(p)
	if Player(p):Exists() then
		natives.WEAPON.REMOVE_ALL_PED_WEAPONS(Player(p).ID,true)
	end
end
Fix vehicle
Code:
function onlineFunctions.fixVehicle(p)
	if Player(p):Exists() then
		if Player(p):IsInVehicle() then
			local veh = Player(p):GetVehicle().ID
			if global.requestEntityControl(veh) then
				Player(p):GetVehicle():Fix()
			end
		end
	end
end
max upgrade vehicle
Code:
function onlineFunctions.upgradeVehicle(p)
	if Player(p):Exists() then
		if Player(p):IsInVehicle() then
			local veh = Player(p):GetVehicle().ID
			if global.requestEntityControl(veh) then
				natives.VEHICLE.SET_VEHICLE_MOD_KIT(veh, 0)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 0, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 0) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 1, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 1) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 2, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 2) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 3, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 3) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 4, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 4) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 5, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 5) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 6, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 6) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 7, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 7) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 8, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 8) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 9, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 9) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 10, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 10) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 11, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 11) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 12, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 12) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 13, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 13) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 14, 10, false)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 15, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 15) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 16, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 16) - 1, true)
				natives.VEHICLE.SET_VEHICLE_WHEEL_TYPE(veh, 7)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 23, 19, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 24, 30, true)
				natives.VEHICLE.TOGGLE_VEHICLE_MOD(veh, 18, true)
				natives.VEHICLE.TOGGLE_VEHICLE_MOD(veh, 20, true)
				natives.VEHICLE.TOGGLE_VEHICLE_MOD(veh, 22, true)
				natives.VEHICLE.SET_VEHICLE_TYRE_SMOKE_COLOR(veh, 255, 255, 255)
				natives.VEHICLE.SET_VEHICLE_WINDOW_TINT(veh, 1)
				natives.VEHICLE.SET_VEHICLE_TYRES_CAN_BURST(veh, false)
				natives.VEHICLE.SET_VEHICLE_NUMBER_PLATE_TEXT(veh, 'Kaney')
				natives.VEHICLE.SET_VEHICLE_CUSTOM_PRIMARY_COLOUR(veh, 0, 0, 0)
				natives.VEHICLE.SET_VEHICLE_MOD_COLOR_1(veh, 3, 0, 0)
				natives.VEHICLE.SET_VEHICLE_MOD_COLOR_2(veh, 3, 0, 0)
				natives.VEHICLE.SET_VEHICLE_CUSTOM_SECONDARY_COLOUR(veh, 0, 0, 0)
			end
		end
	end
end
God mode
Code:
function plyFunctions.godModeToggle()
	if(MenuGUI.isActiveButtonToggledOn() == false) then
		godMode = true
	else
		godMode = false
	end
end
Invisible mode
Code:
function plyFunctions.invisibleToggle()
	if(MenuGUI.isActiveButtonToggledOn() == false) then
		invisible = true
	else
		invisible = false
		LocalPlayer():SetVisible(true)
	end
end
no cops
Code:
function plyFunctions.nocopsToggle()
	if(MenuGUI.isActiveButtonToggledOn() == false) then
		noCops = true
		natives.PLAYER.SET_POLICE_IGNORE_PLAYER(LocalPlayer().ID, true)
	else
		noCops = false
		natives.PLAYER.SET_POLICE_IGNORE_PLAYER(LocalPlayer().ID, false)
	end
end
Unlimited ammo
Code:
function plyFunctions.unlimitedAmmoToggle()
	if(MenuGUI.isActiveButtonToggledOn() == false) then
		unlimitedAmmo = true
	else
		unlimitedAmmo = false
	end
end
no ragdoll
Code:
function plyFunctions.noragdollToggle()
	if(MenuGUI.isActiveButtonToggledOn() == false) then
		natives.PED.SET_PED_CAN_RAGDOLL(LocalPlayer().ID,false)
	else
		natives.PED.SET_PED_CAN_RAGDOLL(LocalPlayer().ID,true)
	end
en
Quote Originally Posted by xXEGGxMANXx View Post
Hi guys ive been making cheats and i thought some people would like some scrips/functions for lua cheats i will be bringing out a tutorial at a later date so if you dont know how to use them or make cheats look out for it. hope you like (: P.S. if some dont work just say !

If you need help just ask (:


Give all weapons
Code:
function onlineFunctions.giveAllWeapons(p)
	if Player(p):Exists() then
		local weaponList = {"WEAPON_KNIFE", "WEAPON_NIGHTSTICK", "WEAPON_HAMMER", "WEAPON_BAT", "WEAPON_GOLFCLUB", "WEAPON_CROWBAR", "WEAPON_PISTOL", "WEAPON_COMBATPISTOL", "WEAPON_APPISTOL", "WEAPON_PISTOL50", "WEAPON_MICROSMG", "WEAPON_SMG", "WEAPON_ASSAULTSMG", "WEAPON_ASSAULTRIFLE", "WEAPON_CARBINERIFLE", "WEAPON_ADVANCEDRIFLE", "WEAPON_MG", "WEAPON_COMBATMG", "WEAPON_PUMPSHOTGUN", "WEAPON_SAWNOFFSHOTGUN", "WEAPON_ASSAULTSHOTGUN", "WEAPON_BULLPUPSHOTGUN", "WEAPON_STUNGUN", "WEAPON_SNIPERRIFLE", "WEAPON_HEAVYSNIPER", "WEAPON_GRENADELAUNCHER", "WEAPON_GRENADELAUNCHER_SMOKE", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_GRENADE", "WEAPON_STICKYBOMB", "WEAPON_SMOKEGRENADE", "WEAPON_BZGAS", "WEAPON_MOLOTOV", "WEAPON_FIREEXTINGUISHER", "WEAPON_PETROLCAN", "WEAPON_SNSPISTOL", "WEAPON_SPECIALCARBINE", "WEAPON_HEAVYPISTOL", "WEAPON_BULLPUPRIFLE", "WEAPON_HOMINGLAUNCHER", "WEAPON_PROXMINE", "WEAPON_SNOWBALL", "WEAPON_VINTAGEPISTOL", "WEAPON_DAGGER", "WEAPON_FIREWORK", "WEAPON_MUSKET", "WEAPON_MARKSMANRIFLE", "WEAPON_HEAVYSHOTGUN", "WEAPON_GUSENBERG", "WEAPON_HATCHET", "WEAPON_RAILGUN"}
		for k, weap in pairs(weaponList) do
			natives.WEAPON.GIVE_DELAYED_WEAPON_TO_PED(Player(p).ID, natives.GAMEPLAY.GET_HASH_KEY(weap), 1000, false)
		end
	end
end
Remove all weapons
Code:
function onlineFunctions.removeAllWeapons(p)
	if Player(p):Exists() then
		natives.WEAPON.REMOVE_ALL_PED_WEAPONS(Player(p).ID,true)
	end
end
Fix vehicle
Code:
function onlineFunctions.fixVehicle(p)
	if Player(p):Exists() then
		if Player(p):IsInVehicle() then
			local veh = Player(p):GetVehicle().ID
			if global.requestEntityControl(veh) then
				Player(p):GetVehicle():Fix()
			end
		end
	end
end
max upgrade vehicle
Code:
function onlineFunctions.upgradeVehicle(p)
	if Player(p):Exists() then
		if Player(p):IsInVehicle() then
			local veh = Player(p):GetVehicle().ID
			if global.requestEntityControl(veh) then
				natives.VEHICLE.SET_VEHICLE_MOD_KIT(veh, 0)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 0, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 0) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 1, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 1) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 2, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 2) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 3, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 3) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 4, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 4) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 5, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 5) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 6, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 6) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 7, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 7) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 8, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 8) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 9, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 9) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 10, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 10) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 11, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 11) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 12, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 12) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 13, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 13) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 14, 10, false)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 15, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 15) - 1, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 16, natives.VEHICLE.GET_NUM_VEHICLE_MODS(veh, 16) - 1, true)
				natives.VEHICLE.SET_VEHICLE_WHEEL_TYPE(veh, 7)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 23, 19, true)
				natives.VEHICLE.SET_VEHICLE_MOD(veh, 24, 30, true)
				natives.VEHICLE.TOGGLE_VEHICLE_MOD(veh, 18, true)
				natives.VEHICLE.TOGGLE_VEHICLE_MOD(veh, 20, true)
				natives.VEHICLE.TOGGLE_VEHICLE_MOD(veh, 22, true)
				natives.VEHICLE.SET_VEHICLE_TYRE_SMOKE_COLOR(veh, 255, 255, 255)
				natives.VEHICLE.SET_VEHICLE_WINDOW_TINT(veh, 1)
				natives.VEHICLE.SET_VEHICLE_TYRES_CAN_BURST(veh, false)
				natives.VEHICLE.SET_VEHICLE_NUMBER_PLATE_TEXT(veh, 'Kaney')
				natives.VEHICLE.SET_VEHICLE_CUSTOM_PRIMARY_COLOUR(veh, 0, 0, 0)
				natives.VEHICLE.SET_VEHICLE_MOD_COLOR_1(veh, 3, 0, 0)
				natives.VEHICLE.SET_VEHICLE_MOD_COLOR_2(veh, 3, 0, 0)
				natives.VEHICLE.SET_VEHICLE_CUSTOM_SECONDARY_COLOUR(veh, 0, 0, 0)
			end
		end
	end
end
God mode
Code:
function plyFunctions.godModeToggle()
	if(MenuGUI.isActiveButtonToggledOn() == false) then
		godMode = true
	else
		godMode = false
	end
end
Invisible mode
Code:
function plyFunctions.invisibleToggle()
	if(MenuGUI.isActiveButtonToggledOn() == false) then
		invisible = true
	else
		invisible = false
		LocalPlayer():SetVisible(true)
	end
end
no cops
Code:
function plyFunctions.nocopsToggle()
	if(MenuGUI.isActiveButtonToggledOn() == false) then
		noCops = true
		natives.PLAYER.SET_POLICE_IGNORE_PLAYER(LocalPlayer().ID, true)
	else
		noCops = false
		natives.PLAYER.SET_POLICE_IGNORE_PLAYER(LocalPlayer().ID, false)
	end
end
Unlimited ammo
Code:
function plyFunctions.unlimitedAmmoToggle()
	if(MenuGUI.isActiveButtonToggledOn() == false) then
		unlimitedAmmo = true
	else
		unlimitedAmmo = false
	end
end
no ragdoll
Code:
function plyFunctions.noragdollToggle()
	if(MenuGUI.isActiveButtonToggledOn() == false) then
		natives.PED.SET_PED_CAN_RAGDOLL(LocalPlayer().ID,false)
	else
		natives.PED.SET_PED_CAN_RAGDOLL(LocalPlayer().ID,true)
	end
en

Yay!
Thanks for this.
I will test the scripts later
Quote Originally Posted by Nyaro View Post
Yay!
Thanks for this.
I will test the scripts later
np i will be testing out some other later so if you want just hit me up on skype - stoppitkizzer
Quote Originally Posted by xXEGGxMANXx View Post
np i will be testing out some other later so if you want just hit me up on skype - stoppitkizzer
I wanna make a menu so bad but I dont know where to start
Quote Originally Posted by Jordan Belfort View Post
I wanna make a menu so bad but I dont know where to start
If u can code
its easy
Quote Originally Posted by Jordan Belfort View Post
I wanna make a menu so bad but I dont know where to start
i might be making a tutorial at a later date or i can help you over skype if you want my name is stoppitkizzer
Quote Originally Posted by Nyaro View Post
If u can code
its easy
I know java lol thats about it
crash player is it on this script? Sorry but i need to defend my self sometime.
Quote Originally Posted by Billy_22 View Post
crash player is it on this script? Sorry but i need to defend my self sometime.
what do you mean?
Quote Originally Posted by xXEGGxMANXx View Post
what do you mean?
I meant the crash player option, the (feature). Is it included in this script or how can i add it. To clone player until they crash.
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Talk with us