Garry's Mod Wiki

table.Sanitise

table table.Sanitise( table tab )

Description

Converts Vectors, Angles and booleans to be able to be converted to and from key-values. table.DeSanitise does the opposite

Arguments

1 table tab
Table to sanitise

Returns

1 table
Sanitised table

Example

Example of what this function does.

local table1 = { "A", "Golden", Angle( 1, 2, 3 ), Vector( 1, 2, 3 ) } PrintTable( table.Sanitise( table1 ) )
Output: 1 = A 2 = Golden 3: __type = Angle p = 1 r = 3 y = 2 4: __type = Vector x = 1 y = 2 z = 3

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 4
Generate Html 6
SaveChanges 9
Render Body 0
Render Sidebar 10