Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Summer Special
      2. The Diamond Casino Heist
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA VI

      1. St. Andrews Cathedral
    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Sign in to follow this  
RR DeLorean

Cleo3 Coding.

Recommended Posts

RR DeLorean

Hi, Sorry if this is in the wrong spot.

 

I'm just wondering if there are any Cleo tutorials out there? I want to start to code Cleos but I need a tutorial to get started.

Share this post


Link to post
Share on other sites
SandroTheDarkness
Hi, Sorry if this is in the wrong spot.

 

I'm just wondering if there are any Cleo tutorials out there? I want to start to code Cleos but I need a tutorial to get started.

http://www.gtaforums.com/index.php?showtop...0entry3936034

 

thought it is for the main.scm its a good tutorial for begginers, i started with it, hope it helps smile.gif

Share this post


Link to post
Share on other sites
james227uk
Hi, Sorry if this is in the wrong spot.

 

I'm just wondering if there are any Cleo tutorials out there? I want to start to code Cleos but I need a tutorial to get started.

Look, if you can code in the SCM, then you can code in cleo. It's very much the same.

Share this post


Link to post
Share on other sites
2pacproducer2

Just start making peds, weapon pickups, try giving weapons for those peds, then make those peds kill each other anuj_cop.gif , and just practise and practise. orly.gif

Share this post


Link to post
Share on other sites
RR DeLorean

I know how to make Car Spawns and Weapon Pick ups but I don't know how to make peds

Share this post


Link to post
Share on other sites
2pacproducer2
I know how to make Car Spawns and Weapon Pick ups but I don't know how to make peds

First you need to load a model for that ped you want to create and then create it:

 

 

:sh*t_1wait 0if0256:   player $PLAYER_CHAR defined    // You always need to do this checkjf @sh*t_1:sh*t0247: load_model #WMYAMMO 038B: load_requested_models if0248:   model #WMYAMMO available jf @sh*t:sh*t_10009A: [email protected] = create_actor_pedtype 4 model #WMYAMMO at 0.0 0.0 0.0   // those r your cords

 

 

The pedtype list here:

 

0  PLAYER1  1  PLAYER2  2  PLAYER_NETWORK  3  PLAYER_UNUSED  4  CIVMALE  5  CIVFEMALE  6  COP  7  GANG1 (Ballas) 8  GANG2 (Grove Street Families) 9  GANG3 (Los Santos Vagos) 10  GANG4 (San Fierro Rifa) 11  GANG5 (Da Nang Boys) 12  GANG6 (Mafia) 13  GANG7 (Mountain Cloud Triad) 14  GANG8 (Varrio Los Aztecas) 15  GANG9 (unused) 16  GANG10 (unused) 17  DEALER  18  MEDIC  19  FIREMAN  20  CRIMINAL  21  BUM*  22  PROSTITUTE  23  SPECIAL  24  MISSION1  25  MISSION2  26  MISSION3  27  MISSION4  28  MISSION5  29  MISSION6  30  MISSION7  31  MISSION8  

 

 

Here is how to create the ped biggrin.gif

Share this post


Link to post
Share on other sites
RR DeLorean

I did a Cleo of that code you just gave me but I made the ped a cop and the cords are at doherty garage and the game crashed.

Edited by RR DeLorean

Share this post


Link to post
Share on other sites
2pacproducer2

 

I did a Cleo of that code you just gave me but I made the ped a cop and the cords are at doherty garage and the game crashed.

Thats because you need a check that always loops. Wait I will updated this message after I make a code

 

EDIT:

 

Here, try this:

 

 

{$CLEO .cs}//-------------MAIN---------------thread 'KAKA' :KAKA_1wait 0if0256:   player $PLAYER_CHAR defined    // You always need to do this checkjf @KAKA_1:KAKA_100247: load_model #WMYAMMO 038B: load_requested_models if0248:   model #WMYAMMO available jf @KAKA_10:KAKA_20009A: [email protected] = create_actor_pedtype 4 model #WMYAMMO at 0.0 0.0 0.0   // those r your cords:KAKA_30wait 0if0118:   actor [email protected] dead jf @KAKA_30  // now this is the check that will always loop until your ped is dead, and when your ped is dead, then the code will start again.wait 001C2: remove_references_to_actor [email protected] // Like turning an actor into a random pedestrian  , and now when your actor is dead , then he will dissapear later0249: release_model #WMYAMMOjump @KAKA_1

 

 

OOps , I forgot to remove references and release model, try the code above

Edited by 2pacproducer2

Share this post


Link to post
Share on other sites
RR DeLorean

it says

 

"Not enough actual parameters. Expected 6 params." when I compile

 

Edited by RR DeLorean

Share this post


Link to post
Share on other sites
2pacproducer2

try my code again above, I edited it

 

So ? It works ?

Share this post


Link to post
Share on other sites
RR DeLorean

It still crashed in game

Edited by RR DeLorean

Share this post


Link to post
Share on other sites
2pacproducer2
I tried the edited 2nd code but it still says that thing

It means that you forgot to put some info , like :

 

you forgot to replace my mdoel to cop model

 

you forgot to put cords

 

if it wouldn't work again, then post your code here

Share this post


Link to post
Share on other sites
RR DeLorean
{$CLEO .cs}//-------------MAIN---------------thread 'KAKA':KAKA_1wait 0if0256:   player $PLAYER_CHAR defined    // You always need to do this checkjf @KAKA_1:KAKA_100247: load_model #COP038B: load_requested_modelsif0248:   model #COP availablejf @KAKA_10:KAKA_20009A: [email protected] = create_actor_pedtype 4 model #COP at -2028.64 145.8998 28.39916   // those r your cords:KAKA_30wait 0if0118:   actor [email protected] deadjf @KAKA_30  // now this is the check that will always loop until your ped is dead, and when your ped is dead, then the code will start again.wait 001C2: remove_references_to_actor [email protected] // Like turning an actor into a random pedestrian  , and now when your actor is dead , then he will dissapear later0249: release_model #COPjump @KAKA_1

 

Share this post


Link to post
Share on other sites
2pacproducer2
{$CLEO .cs}//-------------MAIN---------------thread 'KAKA':KAKA_1wait 0if0256:   player $PLAYER_CHAR defined    // You always need to do this checkjf @KAKA_1:KAKA_100247: load_model #COP038B: load_requested_modelsif0248:   model #COP availablejf @KAKA_10:KAKA_20009A: [email protected] = create_actor_pedtype 4 model #COP at -2028.64 145.8998 28.39916   // those r your cords:KAKA_30wait 0if0118:   actor [email protected] deadjf @KAKA_30  // now this is the check that will always loop until your ped is dead, and when your ped is dead, then the code will start again.wait 001C2: remove_references_to_actor [email protected] // Like turning an actor into a random pedestrian  , and now when your actor is dead , then he will dissapear later0249: release_model #COPjump @KAKA_1

 

You havent changed almost anything, you need to change pedtype , and there is no model like #cop , if you want to make cop, the cop model is #LVFD1

 

Try this:

 

{$CLEO .cs}//-------------MAIN---------------thread 'KAKA':KAKA_1wait 0if0256:   player $PLAYER_CHAR defined    // You always need to do this checkjf @KAKA_1:KAKA_100247: load_model #LVPD1038B: load_requested_modelsif0248:   model #LVPD1 availablejf @KAKA_10:KAKA_20009A: [email protected] = create_actor_pedtype 6 model #LVPD1 at -2028.64 145.8998 28.39916   // pedtype for cops is 6:KAKA_30wait 0if0118:   actor [email protected] deadjf @KAKA_30  // now this is the check that will always loop until your ped is dead, and when your ped is dead, then the code will start again.wait 001C2: remove_references_to_actor [email protected] // Like turning an actor into a random pedestrian  , and now when your actor is dead , then he will dissapear later0249: release_model #LVPD1jump @KAKA_1

 

Share this post


Link to post
Share on other sites
RR DeLorean

It worked

Share this post


Link to post
Share on other sites
2pacproducer2
It worked

Offcourse it worked biggrin.giforly.gif

Share this post


Link to post
Share on other sites
james227uk
I know how to make Car Spawns and Weapon Pick ups but I don't know how to make peds

First you need to load a model for that ped you want to create and then create it:

 

 

:sh*t_1wait 0if0256:   player $PLAYER_CHAR defined    // You always need to do this checkjf @sh*t_1:sh*t0247: load_model #WMYAMMO 038B: load_requested_models if0248:   model #WMYAMMO available jf @sh*t:sh*t_10009A: [email protected] = create_actor_pedtype 4 model #WMYAMMO at 0.0 0.0 0.0   // those r your cords

 

 

The pedtype list here:

 

0  PLAYER1  1  PLAYER2  2  PLAYER_NETWORK  3  PLAYER_UNUSED  4  CIVMALE  5  CIVFEMALE  6  COP  7  GANG1 (Ballas) 8  GANG2 (Grove Street Families) 9  GANG3 (Los Santos Vagos) 10  GANG4 (San Fierro Rifa) 11  GANG5 (Da Nang Boys) 12  GANG6 (Mafia) 13  GANG7 (Mountain Cloud Triad) 14  GANG8 (Varrio Los Aztecas) 15  GANG9 (unused) 16  GANG10 (unused) 17  DEALER  18  MEDIC  19  FIREMAN  20  CRIMINAL  21  BUM*  22  PROSTITUTE  23  SPECIAL  24  MISSION1  25  MISSION2  26  MISSION3  27  MISSION4  28  MISSION5  29  MISSION6  30  MISSION7  31  MISSION8  

 

 

Here is how to create the ped biggrin.gif

You do not actually need theplayer defined check, but it is most adivised that you use it.

Share this post


Link to post
Share on other sites
2pacproducer2

Yeah, I know , I just wanted him to always write the player defined check , because in other codes where the player must do something , if you will not make the player defined , then the game simply crash

Share this post


Link to post
Share on other sites
RR DeLorean

How can I make the ped face a different way?

Share this post


Link to post
Share on other sites
SandroTheDarkness

 

How can I make the ped face a different way?

change the angle:

 

 

0173: set_actor $actor00 z_angle_to 262.0

 

Share this post


Link to post
Share on other sites
RR DeLorean

Mine doesn't have an angle in the cords and when I add one it screws up

Share this post


Link to post
Share on other sites
SandroTheDarkness

 

Mine doesn't have an angle in the cords and when I add one it screws up

you have to change the angle manualy:

Up- 180.0

Down- 0.0

Left- 90.0

Right- 270.0

Share this post


Link to post
Share on other sites
james227uk

Incorrect sort of.

 

Right click the sanny builder page, go to insert and click player angle. Same can be used for coords.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.