Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/01/2019 in Posts

  1. Your examples is same. You use "elseif". So only one branch executed. "goto" is useless. Topicstarter need use separate "if", not "elseif" construction. [added 2 minutes later] You too lazy for read docs? What is that?
    2 points
  2. You need to handle the result returned by "multiChoice" function properly. According to the function documentation, returned value is either nil (in case of dialog being cancelled), or a table in which selected keys contain value "true". Therefore, proper handling may look like this: local choices = gg.multiChoice({'Option 1', 'Option 2'}) if choices == nil then -- action if dialog has been cancelled else if choices[1] then -- action if first option has been selected end if choices[2] then -- action if first option has been selected end end However, there may be tricky cases where one action prevents other action(s) from being executed. One of such cases is "goto" statement. Once it is executed, all other conditions won't be checked and therefore no actions will be executed. Consider the following example: local choices = gg.multiChoice({'Option 1', 'Option 2'}) if choices == nil then os.exit() else if choices[1] then print('Option 1') goto finish end if choices[2] then print('Option 2') end end ::finish:: Here, if user selects both option 1 and option 2, only actions related to option 1 will be executed, because after executing "goto" statement script execution continues from the specified label, "finish" in this case. Possible workaround here is to check the condition that represents option 1 being selected after all other conditions, so that other conditions will be checked first and related actions will or won't be executed depending on the result of each check. But this workaround can't be applied to the cases where there are "goto" statements in 2 or more blocks of actions related to different conditions. So don't use "goto" and there will be no need to deal with such problems. Use functions instead. There are quite little amount of cases where usage of "goto" is justified and your case is not one of them.
    2 points
  3. Hello dear, I tell you that in this version you can still hack gold and unlock all cars. Any questions related to NFS No Limits 3.7.4 can be made here. Greetings.
    1 point
  4. As far as i know they can find most value with unknown value search,need time and patience. sorry but they are geniuses from another planet, im not on that level..hahaha But for more precisely you can make another topic to discussion in this forum and mention famous name like @NoFear. With some luck Maybe some of them drop in.
    1 point
  5. Move function definition to start file.
    1 point
  6. It is called function definition. It is appear after your line.
    1 point
  7. AntiOn is nil at this line. Function must be defined before call it.
    1 point
  8. Can you help with hacking gold I feel like I am close but need someone with the knowledge
    1 point
  9. I did try the freeze it did not work...anyone working on the gold hack?
    1 point
  10. I refine the search till I got 3 values I don't know what Dword below the Xor means so just changed all three values to 2,888,888,888 and it works also. Did the same to health but reverted back to original value as soon as you get hit.
    1 point
  11. I've used GG plenty but this game seems to elude me. I've narrowed the SP down and tried changing and locking in the values but nothing seems to change the SP in game. Has anyone been able to successful in modding this value? If it's something server side and we just can't change it that's cool but I'd like to know. Thanks in advance.
    1 point
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.