Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Scripting - Values from Settings .INI File

Featured Replies

I've just began learning how to script for GTA IV using C# and the scripthook. Everything is fine and dandy (I'd say I have a strong programming background), but I can't for the life of me figure out how to get INI files to work. 

Here's a snippet my code (just the setting of variables from INI file): http://pastebin.com/J9EbG1h1

 

My .dll name is MyMod.net.dll and the INI is MyMod.net.ini, so I don't know what the problem is...

The code I'm using is shown below:
 

Keys startKey;

 

// inside constructor

startKey = Settings.GetValueKey( "KEY", "KEYS", Keys.F );

 

 

Inside my INI looks like this:

 

[KEYS]
KEY=H

Now when I run GTA and try to press the start key H, it doesn't work, but the default key (F), works instead. I've tried reloadingScripts and reloadingSettings in the console, but to no avail.

Any post is appreciated

Edited by metiri

  • Author

Try renaming MyMod.net.ini to MyMod.ini.  That may help.  I don't believe .NET scripts use .net.ini extensions for their ini files.  I don't work with GTA scripts at all, but it's an easy thing to try at least.

Friggn of course! Every tutorial I've seen says to use MyMod.net.ini. I could've sworn I tried with and without the .net, but now its working. I feel like a noob for posting this now. Thank you, again!

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...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.