Jump to content
  • 0

Minimum version


MilkyGT

Question

Posted

help me..., gimme example of code to add minimum version gg to run script, i need it to secure my own script, thanks.

5 answers to this question

Recommended Posts

Posted
3 hours ago, MilkyGT said:

help me..., gimme example of code to add minimum version gg to run script, i need it to secure my own script, thanks.

if gg.BUILD < 5511 then
	gg.alert('You need more new version of GG for run this script. At least build 5511.')
	os.exit()
end

i got the example of it i guees, but i have no idea how is it works plsssss help me, i've searching in Lua Help but it didnt help at all

Posted
12 minutes ago, Lover1500 said:

Examples:

gg.require('8.31.1')

gg.require('8.31.1', 5645)

gg.require(nil, 5645)

 

Missed it? Thats the code to set minimum vertion of gg.

ohh get it, my question might make you think im stoopid but, if i change the number version as i have now, it should be work or no, cus in my mind was like " if i change the number as what i use now & it didnt work it might be the code is wrong"

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.