Jump to content

Intervention of codes from external file


Casti

Recommended Posts

Hello, I don't know if this topic has been created in this forum before, but I have a few problems, I write my own script and offer it for sale, these scripts of course check a database to see if that server is there and run it, but all functions can be changed from the side file. you know, this causes the product I sell to be shared for free, I thought of many ways, but we have no way because the function is interfered with from the side file, we can avoid this problem if the authorities allow us to create our own _G table, https://luac.multitheftauto.com It would be great if there is an option on the site where we can create the _G (https://www.lua.org/pil/14.html) table ourselves, please respect our efforts.

We can see the data sent to many functions such as fetchRemote, dbQuery and we can interfere with them easily, I just showed you how I intervened in a function where we can get the player name, I hope you find a solution to this problem.

s.lua - side file

_getPlayerName = getPlayerName

function getPlayerName(a)
	iprint(a)
  	return "lalala"
end

server.luac - main file

local name = getPlayerName(player)
--Output > "lalala"


 

Link to comment
  • Recently Browsing   0 members

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