GetAllWorldData

From GTA Network Wiki
Jump to: navigation, search

GetAllWorldData
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Gets all keys set in the server's world data, set with SetWorldData.

Syntax

string[] NAPI.Data.GetAllWorldData();

NOTE: This function returns an array of string[] type.

Usage example(s)

var keys = NAPI.Data.GetAllWorldData();
foreach (var key in keys) {
  NAPI.Util.ConsoleOutput("\"{0}\": \"{1}\"", key, NAPI.Data.GetWorldData(key));
}

Changelog

Version Description
1.0 Release.

References