๐Ÿ‘พCreate WORLD Hologram

Setup

Saving in Config.Holograms

['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)
},

Code Explain

  • ['abplogo'] : Hologram ID (unique)

    • enabled: - (bool) Enable/Disable hologram display on server | default: false

    • htmlTarget?: - (string) Select the HTML target of ui/pages/{htmlTarget}

    • urlTarget?: - (string) Select an Internet URL. (Cannot combine with htmlTarget)

    • attatchTo: - (string) Select attach type:

      • 'world': 3D creation

      • 'player': Attach to player view

      • 'vehicle': Attach to vehicle view

    • type: (string): Select creating hologram algorithm

      • 'hologram': Create a 3D hologram with fivem natives

      • 'stream': (WIP) Create a 3D hologram with streamed textures.

    • typeProperties: (table)

      • rotation: (vec3): A headache rotation, use the editor.

      • scale: (vec3): Length, width, and depth (the depth is useless if you don't use the cube marker)

      • rotate: Always rotate in 360ยฐ

      • cameraFollow: The Hologram Follows the player's camera.

      • bobUpAndDown: Jump animation

    • position: (vec3) - a world 3d position

    • distanceView: (number) - render view

    • scale: (vec2) - (ATTENTION) Resolution scale of a hologram, not a virtual scale in a 3D world.

Last updated

Was this helpful?