Skip to main content

Location Picker

Provides a system map component allowing the user to drop a pin to select a geographic location.

Type loc returns a dictionary with latitude and longitude.

KeyTypeDescription
latitudenumberLatitude
longitudenumberLongitude

Example

local group, name

group = 'Utility'
name = 'gps.fake(bid, latitude, longitude)'

return {
name = string.format('%s - %s', group, name),
description = "Location spoofing",
arguments = {
{type = 'app', hint = 'Select the target app'},
{type = 'loc', hint = 'Select a location'},
},
default = {
latitude = 39.92,
longitude = 116.46
},
generator = function(bid, loc)
return string.format('gps.fake(%q, %f, %f)', bid, loc.latitude, loc.longitude)
end,
}

IMG_0007.PNG