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.

Using Python to Create GTA IV Mods

Featured Replies

Hey everybody, 

 

I've just started to play around with Python 3 and I'm finding a ton of features that could be used effectively to create a GTA IV mod; is it even possible to create a GTA IV mod with Python? (A .dll?)

 

I've created a few mods with C#, C++ and other .net languages but never with Python. I was wondering if anyone had any ideas about where one would even go about starting a mod with Python?

 

Thank you, 

GtaGamerCop

[b][i]Graphic Designer & Web Developer[/i][/b]  

 

[font="verdana, geneva, sans-serif"][color=#ff8c00]Flip[/color][color=#0000ff]Switch[/color] Games Team Member[/font]

[font="verdana, geneva, sans-serif"]Check out EmergeNYC @: http://emergenycgame.com/[/font]

I'm not sure it's as simple as binding to the C++ scripthook. As I understand it, you'd need to launch the Python script in the context of the GTAIV.exe/EFLC.exe process (else the functions of aru's scripthook, which rely on having pointers into the GTA process's memory space, wouldn't be able to do their job). So you'd somehow have to get the Python loaded, which would require either making an ASI or using SHDN (I'm not aware of anything that loads scripts except ASI loaders and SHDN). To make that work, I'd think you'd need to either compile Python code down to native code (for an ASI), compile it down to .NET IL (for an SHDN script), find something that can launch an embedded Python interpreter and is easy-ish to use (also for an ASI), write your own code to launch an embedded Python interpreter (for an ASI), or write your own SHDN script or ASI to launch a Python runtime in the context of the game.

You still do have to write a compatibility layer, though, unless IronPython doesn't need it (which it might not).

MODERATOR NOTICE
Your thread has been moved to GTA IV Discussion & Media. The Computers & Technology is a subject-specific discussion forum for topics related to Computers and Technology.

Invenio, Investigatio, Imperium

  • 7 months later...

I'm new to lcpdfr, I want to learn how to make some mods, or atleast learn how to make my own cars, with skins, and adding the lights. I want to be able to customize every aspect of the car if possible. Is there a free program that is easy to use for a beginner? 

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.