<?xml version="1.0"?>
<rss version="2.0"><channel><title>Tutorials: Hidden Category</title><link>https://www.lcpdfr.com/tutorials/index.action/grand-theft-auto-iv/hidden-category/?d=5</link><description>Tutorials: Hidden Category</description><language>en</language><item><title>Grand Theft Auto V Mod Maker Tutorial</title><link>https://www.lcpdfr.com/tutorials/index.action/grand-theft-auto-iv/hidden-category/grand-theft-auto-v-mod-maker-tutorial-r140/</link><description><![CDATA[


<p>
	<span style="font-size:14px;"><em><strong>Below, I will try and walk you through of how to make your first script in my <a href="https://www.lcpdfr.com/files/file/9353-grand-theft-auto-v-mod-maker-lua/" rel="">mod creator</a>.</strong></em></span>
</p>

<p>
	<strong>1)</strong>To begin, we want to load the program up and be sure to have the "Coding Help Tool" open.
</p>

<p>
	<span style="font-size:14px;"><em><strong>**If you wish, clear all text from the box and paste this, </strong></em></span>
</p>

<pre class="ipsCode">
-- Mod Name by Author, v1
local modname = {}

function modname.tick()
local playerID - PLAYER.PLAYER_ID()</pre>

<p>
	<strong>2)</strong> We will first add a title for the mod, I'm going to call mine Tutorial. Replace all the modname with the name you want the mod to go by.
</p>

<p>
	<strong>3)</strong>  under "local playerID - PLAYER.PLAYER_ID()" we are going to begin the mod. For today's mod example I'm going to give the player godmode, a 5 star wanted level, and unlimited ammo with three different keys.
</p>

<p>
	<strong>4)</strong> We will choose the key we want the user to press to enable Godmode, I'm going to use F4. After choosing the key from the coding help window, select the function or item you want the key to enable or do. For mine, I used "Player Invincible"
</p>

<p>
	<strong>5)</strong> To end this function of the mod, we will then press the button from the coding help window that says End "If..." Statement
</p>

<p>
	<span style="font-size:14px;"><em><strong>Your script should now look something like this</strong></em></span>
</p>

<pre class="ipsCode">
-- Tutorial by Author, v1
local Tutorial = {}

function Tutorial.tick()
local playerID - PLAYER.PLAYER_ID()

if get_key_pressed(Keys.F4) then
PLAYER.SET_PLAYER_INVINCIBLE(player, true)
end</pre>

<p>
	<strong>6)</strong> We will now add the wanted level to the player. I want the user to press F5 to enable the wanted level. I will find the F5 button on the coding help window and press it.
</p>

<p>
	<strong>7)</strong> Next, I will will select the button that says "5 Star Wanted Level"
</p>

<p>
	<strong>8)</strong> To end this function of the mod, we will then press the button from the coding help window that says End "If..." Statement
</p>

<p>
	<span style="font-size:14px;"><em><strong>Your script should now look something like this</strong></em></span>
</p>

<pre class="ipsCode">
-- Tutorial by Author, v1
local Tutorial = {}

function Tutorial.tick()
local playerID - PLAYER.PLAYER_ID()

if get_key_pressed(Keys.F4) then
PLAYER.SET_PLAYER_INVINCIBLE(player, true)
end

if get_key_pressed(Keys.F5) then
PLAYER.SET_PLAYER_WANTED_LEVEL(player, 5, true)
end</pre>

<p>
	<strong>9)</strong> For the last part of this mod, I want the player to have unlimited ammo. I want the user to be able to press F9 to enable unlimited ammo.
</p>

<p>
	<strong>10)</strong> Find the "If F9 Is Pressed" button in the coding help window and press it
</p>

<p>
	<strong>11)</strong> Next, find "Infinite Ammo" button in the coding help window and press it
</p>

<p>
	<strong>12)</strong> To end this function of the mod, we will then press the button from the coding help window that says End "If..." Statement
</p>

<p>
	<span style="font-size:14px;"><em><strong>Your script should now look something like this</strong></em></span>
</p>

<pre class="ipsCode">
-- Tutorial by Author, v1
local Tutorial = {}

function Tutorial.tick()
local playerID - PLAYER.PLAYER_ID()

if get_key_pressed(Keys.F4) then
PLAYER.SET_PLAYER_INVINCIBLE(player, true)
end

if get_key_pressed(Keys.F5) then
PLAYER.SET_PLAYER_WANTED_LEVEL(player, 5, true)
end

if get_key_pressed(Keys.F9) then
WEAPON.SET_PED_INFINITE_AMMO_CLIP(playerPed, true)
end
</pre>

<p>
	<strong><em>We now need to end the script!</em></strong>
</p>

<p>
	<strong>13)</strong> If you have closed the coding help tool, re-open it
</p>

<p>
	<strong>14)</strong> Find the button in the coding help window that reads "End Script"
</p>

<p>
	<strong>15)</strong> Press it
</p>

<p>
	<strong>16)</strong> Make sure you replace modname with the name of the mod you chose.
</p>

<p>
	<span style="font-size:18px;"><em><strong>Your final script should look like this</strong></em></span>
</p>

<pre class="ipsCode">
-- Tutorial by Author, v1
local Tutorial = {}

function Tutorial.tick()
local playerID - PLAYER.PLAYER_ID()

if get_key_pressed(Keys.F4) then
PLAYER.SET_PLAYER_INVINCIBLE(player, true)
end

if get_key_pressed(Keys.F5) then
PLAYER.SET_PLAYER_WANTED_LEVEL(player, 5, true)
end

if get_key_pressed(Keys.F9) then
WEAPON.SET_PED_INFINITE_AMMO_CLIP(playerPed, true)
end

end
return Tutorial</pre>

<p>
	<span style="font-size:18px;"><em><strong>Exporting Your Script</strong></em></span>
</p>

<p>
	<span style="font-size:14px;"><strong>1)</strong> Go back to the main window with the code</span>
</p>

<p>
	<span style="font-size:14px;"><strong>2)</strong> Click File in the corner</span>
</p>

<p>
	<strong>3)</strong> Click on Export Script (Or press Control+E in V4.0)
</p>

<p>
	<strong>4)</strong> Save it in the location of your choice<strong><em>; </em></strong><span style="font-size:20px;"><em><strong>however, </strong></em></span><span style="font-size:14px;"><strong>be sure it is all one word!!</strong></span>
</p>

<p>
	Click the letters below to download my script! Version 4 of Mod Maker includes "Import Scripts" feature!
</p>

<p>
	<a class="ipsAttachLink" href="//www.lcpdfr.com/applications/core/interface/file/attachment.php?id=30697" rel="">Tutorial.lua</a>
</p>

<p>
	 
</p>


]]></description><guid isPermaLink="false">140</guid><pubDate>Sun, 08 Nov 2015 04:52:32 +0000</pubDate></item></channel></rss>
