Base64Encode

From Multi Theft Auto: Wiki
Jump to:navigation, search

This function returns the base64 representation of the encoded block of data

Syntax

string base64Encode ( string data )

Required arguments

  • data: The block of data you want to encode

Returns

Returns the base64 representation of the encoded data if the encoding process was successfully completed, false otherwise.

Example

local k = base64Encode("Hello, world!")
outputConsole(k)
--Output: SGVsbG8sIHdvcmxkIQ==

See Also

  • addDebugHook
  • base64Decode
  • base64Encode
  • bitAnd
  • bitNot
  • bitOr
  • bitXor
  • bitTest
  • bitLRotate
  • bitRRotate
  • bitLShift
  • bitRShift
  • bitArShift
  • bitExtract
  • bitReplace
  • debugSleep
  • decodeString
  • encodeString
  • fromJSON
  • getColorFromString
  • getDevelopmentMode
  • getDistanceBetweenPoints2D
  • getDistanceBetweenPoints3D
  • getEasingValue
  • getFPSLimit
  • getNetworkStats
  • getNetworkUsageData
  • getPerformanceStats
  • getRealTime
  • getServerConfigSetting
  • getTickCount
  • getTimerDetails
  • getTimers
  • gettok
  • getUserdataType
  • getVersion
  • hash
  • inspect
  • interpolateBetween
  • iprint
  • isOOPEnabled
  • isTimer
  • killTimer
  • md5
  • passwordHash
  • passwordVerify
  • pregFind
  • pregMatch
  • pregReplace
  • removeDebugHook
  • resetTimer
  • setDevelopmentMode
  • setFPSLimit
  • setServerConfigSetting
  • setTimer
  • sha256
  • split
  • teaDecode
  • teaEncode
  • tocolor
  • toJSON
  • utfChar
  • utfCode
  • utfLen
  • utfSeek
  • utfSub


Retrieved from "https://wiki.multitheftauto.com/index.php?title=Base64Encode&oldid=48667"
Categories:
  • Server functions
  • Client functions

Navigation menu

Views

  • Page
  • Discussion
  • View source
  • History

Personal tools

  • Create account
  • Log in

Navigation

  • Home
  • How you can help
  • Recent changes
  • Random page

reference

  • Client Functions
  • Client Events
  • Server Functions
  • Server Events
  • Shared Functions
  • Useful Functions
  • MTA Classes
  • MTA Elements
  • Element Tree

 

Tools

  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link
  • Page information
GNU Free Documentation License 1.2
Powered by MediaWiki
  • This page was last edited on 5 August 2016, at 02:40.
  • Content is available under GNU Free Documentation License 1.2 unless otherwise noted.
  • Privacy policy
  • About Multi Theft Auto: Wiki
  • Disclaimers