getBlipSize
Client-side
Server-side
Shared
Pair: setBlipSize
This function gets the size of a blip.
OOP Syntax Help! I don't understand this!
- Method: blip:getSize(...)
- Variable: .size
Syntax
int|false getBlipSize ( blip theBlip )
Required Arguments
- theBlip: The blip you wish to get the size of.
Returns
- int|false: size
Returns an int indicating the size of the blip. The default value is 2. The maximum value is 25.
Code Examples
shared
This example will reset the size of all blips to the default.
-- Retrieve a table containing all the blips that existlocal blips = getElementsByType ( "blip" )-- Loop through the list, storing the blip from the table in the variable blipValuefor blipKey, blipValue in ipairs(blips) do -- Retrieve the blip's size into the variable 'blipSize' local blipSize = getBlipSize ( blipValue ) -- If the blip's size wasn't 2 (the default size) already if ( blipSize ~= 2 ) then -- Set the blip's size to the default setBlipSize ( blipValue, 2 ) endend