I have a plugin, but how can I detect weather a game has http services enabled from inside the plugin?
Thanks!
Pretty simple:
if game:GetService("HttpService").HttpEnabled == true then
//Do something
end
Full Documentation: HttpService | Roblox Creator Documentation
Any way to do this with Third party sales, and third party teleports?
Unfortunately I don’t know of any way to check if third party teleports are allowed, but it’s again pretty simple to check for third party sales:
workspace.AllowThirdPartySales
https://create.roblox.com/docs/reference/engine/classes/Workspace#AllowThirdPartySales
Just was testing and this isnt possible since I get the error: The current identity (5) cannot HttpEnabled (lacking permission 3). Any other ideas?
Are you trying to change it or just read it? I’m pretty sure it’s a read only property.
Yeah im just using:
if game:GetService("HttpService").HttpEnabled == true then
hasHTTPEnabled = true
end
Not sure what could be causing that. You could give a better read through the documentation. If I have any other ideas I’ll post them.
Alright thanks. Remember this is in a plugin though.