Skip to content

Add GetModID as a Legacy v4 Native Function#311

Open
EggBanana123 wants to merge 1 commit into
RSDKModding:masterfrom
EggBanana123:patch1
Open

Add GetModID as a Legacy v4 Native Function#311
EggBanana123 wants to merge 1 commit into
RSDKModding:masterfrom
EggBanana123:patch1

Conversation

@EggBanana123
Copy link
Copy Markdown

@EggBanana123 EggBanana123 commented Oct 23, 2025

Just like the RSDKv4 PR,
Adds the v4 native function GetModID, which gets the mod ID of a specified mod via folder name

One use case could be;

CallNativeFunction2(GetModID, "ModFolder", 0)
temp0 = checkResult
CallNativeFunction2(GetModActive, temp0, 0)

if checkResult == true
...

to check whether a specific mod is enabled before running a patch for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant