Diegoti Posted June 13, 2018 Share Posted June 13, 2018 Example -> [email protected]([email protected],1i) = Car.Create(#POLMAV, [email protected], [email protected], [email protected]) What does it means? Extra question: Spoiler How does works the "IF -> JF" system, i already know about scm but i also want to know about that Example if Player.Defined($PLAYER_CHAR) jf @example Can someone give me an example? Link to comment Share on other sites More sharing options...
Another GTA Fan Posted June 13, 2018 Share Posted June 13, 2018 (edited) For the first question, it will create a car under the first variable you choose. The bits in brackets are not needed. You can delete those parts and it'll still work as it should, so it can be written like this: [email protected] = Car.Create (#POLMAV, [email protected], [email protected], [email protected]) And if works by checking the condition. So if you put "if" then followed by a condition, then it will check that condition first, and if you add a else_jump after the condition, if that condition is not met, then it'll 'else_jump' to the label you give it. I don't use the jf code, instead I use else_jump which as far as I can tell does the same thing, so I cannot 100% confirm that. As an example: :Label_1 wait 0 if Actor [email protected] defined else_jump @Label_1 Actor.SetImmunities([email protected], 1, 1, 1, 1, 1) jump @Label_2 So what the example above will do, is if actor 5 has been defined, the script will skip the else_jump, and the coding after that will trigger. For this example, the actor will become all-proof and the script will jump to Label_2. If the actor doesn't exist in the script, then it will use the else_jump and constantly jump back to Label_1. By the way, you can also add 'and' 'or' with an if. So you can use if and, or if or. They should be self-explanatory, if not: if and will check multiple conditions up to 8 instead of just 1. if or will check if at least one of the follow conditions has been met, so if you have something like: wait 0 if or actor [email protected] defined actor [email protected] driving actor [email protected] dead Only one of those conditions will need ot be met for the script to progress. Edited June 13, 2018 by Recommended Link to comment Share on other sites More sharing options...
Diegoti Posted June 13, 2018 Author Share Posted June 13, 2018 (edited) Well, another user already explain me the first question, it is an array. About second question, thank it will help me a lot. Edited June 13, 2018 by Diegoti Link to comment Share on other sites More sharing options...
Shadowboy203 Posted June 16, 2018 Share Posted June 16, 2018 This is not a programming-questions site. Its about GTA stuff, I think you have to mention (if it is..) that its a game's script. You can ask tons of programming questions at Stack Overflow. Link to comment Share on other sites More sharing options...
deltaCJ Posted June 16, 2018 Share Posted June 16, 2018 9 minutes ago, Shadowboy203 said: This is not a programming-questions site. Its about GTA stuff, I think you have to mention (if it is..) that its a game's script. You can ask tons of programming questions at Stack Overflow. Ummmm, this is a website for programming. Modding section is for all modding questions. Mauritium 1 Link to comment Share on other sites More sharing options...
Shadowboy203 Posted June 16, 2018 Share Posted June 16, 2018 1 minute ago, deltaCJ said: Ummmm, this is a website for programming. Modding section is for all modding questions. Well I guess its a website for mods and stuff? Not that stuff. And if he's talking 'bout GTA stuff then he's at the right place. I just said its a website for GTA "stuff", and if he's talking 'bout GTA he have to mention it. Link to comment Share on other sites More sharing options...
guard3 Posted June 16, 2018 Share Posted June 16, 2018 He posted a GTA related question in a GTA related site and he has to mention that his question is GTA related? What are you smoking? Grinch_, Mauritium and deltaCJ 3 Link to comment Share on other sites More sharing options...
Another GTA Fan Posted June 16, 2018 Share Posted June 16, 2018 @Shadowboy203 The OP was asking a question relating to Cleo Scripting, which is a huge part in GTA Modding. Judging by your recent replies to other Mod topics, you don't seem to fully know what you're talking about. I don't mean to be rude, but if you have no experience with modding or the issues other members are facing due to modding, it would be best not to post your 'advice'. PS. OP has his question resolved, so probably best to lock the topic. Link to comment Share on other sites More sharing options...