Categories > Exploiting > Scripts >

Question on require scripts

Posts: 2

Threads: 2

Joined: Jan, 2022

Reputation: 0

Posted

What type are require scripts are they like ss or ff like what are they?

  • 0

MINISHXP

[REDACTED]

Posts: 974

Threads: 3

Joined: Jan, 2021

Reputation: 9

Replied

its like dofile

  • 0

Posts: 867

Threads: 34

Joined: Aug, 2020

Reputation: 6

Replied

-- my_module.lua
lib = {};

function lib:test()
    print('Hello World! From my_module.lua!');
end

return lib;

-- main.lua

lib = require('my_module');

lib:test()
  • 0

Users viewing this thread:

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