โ†—๏ธScript Exports

These exports are CLIENT SIDE.

ToggleHologramState

Usage:

--- Note: This is a client only toggle state, not for server

exports.abp_holograms:ToggleHologramState(holoId, state)


exports.abp_holograms:ToggleHologramState('abplogo', false)

CreateHologram

exports.abp_holograms:CreateHologram(holoId, holoData)

exports.abp_holograms:CreateHologram('abplogo', {
	enabled = true,
	htmlTarget = "abplogo",
	attachTo = 'world',
	type = 'hologram',
	typeProperties = {
		---- MARKER PROPERTIES
		rotation = vector3(90.0, 0.0, 0.0), -- vertial, horizontal
		scale = vector3(4.5, 4.5, 4.5),
		rotate = false,
		cameraFollow = false,
		bobUpAndDown = false,
	},
	position = vector3(405.2, -949.5, -98.9),
	distanceView = 100,
	scale = vec2(1024, 1024)
})

UpdateHologram

--- Note: These are runtime update (not saved to file)
--- Note 2: You can't change from htmlTarget to targetUrl

exports.abp_holograms:UpdateHologram(holoId, holoData)

exports.abp_holograms:UpdateHologram('abplogo', {
    distanceView = 150,
    position = vec3(400.0, -950.0, -98.0)
})

Last updated

Was this helpful?