Jump to content

Creating global/native functions


Sorata_Kanda

Recommended Posts

Posted

Hey everyone,

I've been wondering if there's a way to create functions that are natively available without using functions exports.

I did a little research and found modules which might be suiting in this case. However, I downloaded the SDK and opened it in Visual Studio, and it sort of looks like outdated?

So does there a method of creating native functions in Lua exist? If so, how do you do it?

Thanks in advance!

  • Discord Moderators
Posted (edited)

Nope, since all resources have their own LuaVM.

Edited by Pirulax
  • Thanks 1
Posted
1 hour ago, Pirulax said:

Nope, since all resources have their own LuaVM.

But how were all the functions ported to all LuaVMs? They must have been defined in the source code. So I suspect that you could manage to provide your own functions natively by creating modules.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...