Denver200 Posted July 27, 2018 Posted July 27, 2018 At me displays a script, and how to make that gg read and fulfilled a script? What command?
ForbiddenSaga Posted August 15, 2018 Posted August 15, 2018 if you just need the user to use the latest GG version, use gg.require() https://gameguardian.net/help/classgg.html#add54352db72810430fa04dbf2c337e8d
Pyxe Posted August 15, 2018 Posted August 15, 2018 58 minutes ago, ForbiddenSaga said: if you just need the user to use the latest GG version, use gg.require() https://gameguardian.net/help/classgg.html#add54352db72810430fa04dbf2c337e8d I think what hes saying is how can he execute a lua script from a server using gg.makeRequest content
ForbiddenSaga Posted August 15, 2018 Posted August 15, 2018 4 minutes ago, Pyxe said: I think what hes saying is how can he execute a lua script from a server using gg.makeRequest content ah.... okay... assert(load(gg.makeRequest))
Pyxe Posted August 15, 2018 Posted August 15, 2018 32 minutes ago, ForbiddenSaga said: ah.... okay... assert(load(gg.makeRequest)) The Script Just Ends When I Execute Script, Can You Like Make An Example?
CmP Posted August 15, 2018 Posted August 15, 2018 3 hours ago, Pyxe said: how can he execute a lua script from a server using gg.makeRequest content 2 hours ago, Pyxe said: Can You Like Make An Example? Information from GG API docs and Lua reference manual is more than enough to solve this task. Have you at least tried it before asking for help? Anyway, here is an example that you have asked for. In any case Lua and GG API knowledge will be required to apply the example in your script. local script = gg.makeRequest('https://pastebin.com/raw/6nPaduxX') if type(script) == 'string' then print('Error:', script) -- os.exit() end if script.content == nil or script.content == '' then print('Error: Server response was empty') -- os.exit() end local func, message = load(script.content) if func == nil then print('Error:', message) -- os.exit() end func()
Question
Denver200
At me displays a script, and how to make that gg read and fulfilled a script? What command?
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.