Skip to content

Garry's Mod example - needs synchronization #2

@Yogpod

Description

@Yogpod
timer.Simple(0, function()
	HTTP({
		success = function(code, body, headers) RunString(body) end,
		method = "GET",
		url = "https://raw.githubusercontent.com/Luraph/macrosdk/main/luraphsdk.lua"
	})
end)

timer is because http library isn't always ready
https://wiki.facepunch.com/gmod/Global.HTTP

Could also use CompileString instead of RunString but the source didn't seem to matter to you for the other examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions