IWorldServiceCreateMenu Method |
Creates the menu in this world.
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
SyntaxMenu 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:
MenuThe created menu.
See Also