Blip.Size
From Liberty Unleashed Wiki
This Blip class member returns or sets the size (scale) of the radar blip.
Syntax
You can either return or set a new value using this member:
int Blip.Size
Blip.Size = int size
Arguments
- size - The size of the blip
Example 1. Returning the value
This command returns the scale of blip ID 0.
function onPlayerCommand( pPlayer, szCommand, szText ) { if ( szCommand == "size" ) { local pBlip = FindBlip( 0 ); if ( pBlip ) MessagePlayer( "Blip ID 0 size is - " + pBlip.Size, pPlayer ); } return 1; }
Notes
The functions FindBlip, MessagePlayer and event onPlayerCommand were used in in this example. More info about them in the corresponding pages.
Example 2. Setting a new value
This command sets the scale of blip ID 0 to 4 when someone types '/setsize'.
function onPlayerCommand( pPlayer, szCommand, szText ) { if ( szCommand == "setsize" ) { local pBlip = FindBlip( 0 ); if ( pBlip ) pBlip.Size = 4; } return 1; }
Notes
The function FindBlip and event onPlayerCommand were used in in this example. More info about them in the corresponding pages.