Forum > Coding >

[ Help ] Need help on how to make a API using Lua

SkieHackerYT

Panda Development Team

vip

Posts: 322

Threads: 84

Joined: Apr, 2019

Reputation: 31

Posted

is it possible to make a API on lua like example

 

function hello()

    return 'hello world'

 

 

local a = loadstring(readfile(''hello world.lua''))();

print(a:Hellow());

 

Sorry if I wrote like that, buts kinda similar to UI Libraries

 

  • 0

https://media.discordapp.net/attachments/996322272547704845/1016492646820233246/standard.gif

https://cdn.discordapp.com/attachments/1074291934501290087/1085354909609754775/PelicanDevelopment.gif

Murz

PixelPenguin

Posts: 144

Threads: 10

Joined: Jul, 2021

Reputation: 28

Replied

I feel like this should be possible i dont see why not lol

if i remember correctly you make a table or something and add a function to that table by doing like

 

local table = {}

 

function table:hello()

       return "hello world"

end

 

then just call it like you did and it should work

  • 0

Added

@_realnickk youre gonna make me cry nickk

  • 0

 

Ty for rep: Swiney, Byoke, Lion, Locust, Waves, Weeb, Nickk, darkn, Atari, CubeFaces, Lux14, Rice, Delta, Syraxes, Aeon, Jordan, Pluto, and Hiroku!

P.S, I like cats better too!

aeon

Owner of Voyager

vip

Posts: 262

Threads: 25

Joined: Sep, 2022

Reputation: 12

Replied

oh thats very simple. i am export cader a t loa

local workspace.baseplate = baseplate 
local usercode=- C# && C++

using jjsploitapildllofficiallegit;

throw new NonImplementedException();

localplayer.LoadCoolrealjjsploithaxnolageditionv57

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )