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:base64EncodeserverBase64 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
datastring— Raw input to encode. Binary-safe.
Returns
stringlocal encoded = exports.nx_laptop:base64Encode('hello world')
print(encoded) -- aGVsbG8gd29ybGQ=