Click or drag to resize

IWorldServiceCreateMenu Method

Creates the menu in this world.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
Menu CreateMenu(
	string title,
	Vector2 position,
	float col0Width,
	float? col1Width = null,
	EntityId parent = default
)

Parameters

title
Type: SystemString
The title of the menu.
position
Type: SampSharp.Entities.SAMPVector2
The position of the menu.
col0Width
Type: SystemSingle
Width of the left column.
col1Width (Optional)
Type: SystemNullableSingle
Width of the right column or null if the menu should only have one column.
parent (Optional)
Type: SampSharp.EntitiesEntityId
The parent of the entity to be created.

Return Value

Type: Menu
The created menu.
See Also