GetService (Function): Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
(created the page)
 
mNo edit summary
 
Line 6: Line 6:
name                  = GetService
name                  = GetService
|arguments            = [[String]] ''name''
|arguments            = [[String]] ''name''
|returns              = [[Service]] object
|returns              = [[Service-level|Service]] object
|description          = Returns the service which was requested.
|description          = Returns the service which was requested.
|object              = [[GBX.lua.ServiceProvider (Object)|ServiceProvider]]
|object              = [[GBX.lua.ServiceProvider (Object)|ServiceProvider]]

Latest revision as of 05:55, 27 September 2021

The GetService function returns a service that you ask it for. Send it the name of a service (such as "Debris") and it will return a value of the service. Useful for hidden services.


Function
Syntax GetService( String name )
Returns Service object
Description: Returns the service which was requested.
In Object: ServiceProvider