NX CreativeNX CreativeDocs
ScriptsLaptop

Exports

Public exports registered by nx_laptop.

nx_laptop ships a small public surface. Most integration happens through the nx_laptop:client:useLaptop event (see Events) and through standard framework inventory and target wiring.

Server

exports.nx_laptop:base64Encodeserver

Base64 encode an arbitrary string. Used internally for inlining fetched vehicle and forum images as data URIs, and exposed so other resources can share the same encoder.

Parameters

  • datastringRaw input to encode. Binary-safe.

Returns

string
local encoded = exports.nx_laptop:base64Encode('hello world')
print(encoded) -- aGVsbG8gd29ybGQ=

On this page