IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

This is for the discussion and releasing of tutorials for modifying GTA. Anything that isn't a tutorial will be deleted without notification.

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 [Cleo-How To]Make ingame changeable variables

 
Saint Burak  
Posted: Sunday, Jul 8 2012, 14:48
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



This is my first English tutorial.If I've mistakes, please tell me.

First we need:

1.Cleo 4
2.IniFiles.cleo
3.A Brain biggrin.gif

Now we have to create a .ini file.I've created my .ini file and named it to "example" and I chose "home" key(deciminal of "home" key is 36) for my mod.Here's my codes:

CODE
[hereissection]
hereiskey=36

You can change "36" to deciminal of the key you want to.

Now create a cleo file(Of coure you can edit your cleo file if you want to biggrin.gif) and add the following opcode before key check:

CODE
0AF0: 1@ = get_int_from_ini_file "CLEO\example.INI" section "hereissection" key "hereiskey" //IF and SET


Now change deciminal of your keycheck to "1@" like that:
CODE

if
0AB0:   key_pressed 1@
else_jump @keycheck


Here is all of them:
CODE

0AF0: 1@ = get_int_from_ini_file "CLEO\example.INI" section "hereissection" key "hereiskey" //IF and SET
if
0AB0:   key_pressed 1@
else_jump @keycheck


Now save your cleo and open game.If you change deciminal of key in .ini file, cleo reads your changed deciminal and redirects to key check.I mean if I open game and change 36 to 8 in .ini file, my cleo works when I press Backspace.

I hope you can understand my English even I can't understand. biggrin.gif

This post has been edited by Saint Burak on Sunday, Jul 8 2012, 16:35
PM
  Top
 

 
Fable11  
Posted: Tuesday, Aug 21 2012, 21:33
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Jun 16, 2009

mw.gif

XXXXX



Thanks man , for me this is one of the most understandable tutorials ever made in the forums , we dont have to read it twice smile.gif
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG