Garry's Mod Wiki

Garry's Mod Wiki

  CreateNewAddonPreset( string data )

Description

Creates a new Preset from the given JSON string.

Arguments

1 string data
A JSON string containing all necessary information. JSON structue should be Preset structure

Example

Creating a custom Preset.

local preset = { ["enabled"] = {}, ["disabled"] = {}, ["name"] = "Example", ["newAction"] = "" -- do nothing with addons not in the preset. } CreateNewAddonPreset( util.TableToJSON( preset ) )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...