NanosWorld¶
Tip
This is a Static Class named NanosWorld
. You can access it’s methods directly with :
. It is not possible to initialize or create new instances.
Functions¶
Returns |
Name |
Description |
|
GetCharacters() |
Returns an array of all characters on the server. |
||
Grenade[] |
GetGrenades() |
Returns an array of all grenades on the server. |
|
Item[] |
GetItems() |
Returns an array of all items on the server. |
|
GetLocalPlayer() |
Returns the Local Player (Client Side) |
||
Player[] |
GetPlayers() |
Returns an array of all players on the server. |
|
Prop[] |
GetProps() |
Returns an array of all props on the server. |
|
Vehicle[] |
GetVehicles() |
Returns an array of all vehicles on the server. |
|
Weapon[] |
GetWeapons() |
Returns an array of all weapons on the server. |
Events¶
Name |
Parameters |
Description |
|
SpawnLocalPlayer |
Player LocalPlayer |
Called once LocalPlayer is created. |
Examples¶
-- change all vehicles on the server to black body colors
for key, veh in pair(NanosWorld:GetVehicles()) do
veh:GetBodyColor(Color(0, 0, 0, 0))
end
NanosWorld:on("SpawnLocalPlayer", function(local_player)
Package:Log("LocalPlayer is ready!")
end)