{"hash":"0x6228F159","ns":"CFX","name":"_ADD_BLIP_FOR_AREA","slug":"_ADD_BLIP_FOR_AREA","official":true,"named":true,"luaName":"AddBlipForArea","game":"cfx","apiset":"server","returnType":"Blip","params":[{"name":"x","type":"float","description":"The X coordinate of the center of the blip."},{"name":"y","type":"float","description":"The Y coordinate of the center of the blip."},{"name":"z","type":"float","description":"The Z coordinate of the center of the blip."},{"name":"width","type":"float","description":"The width of the blip."},{"name":"height","type":"float","description":"The height of the blip."}],"returnsDescription":"A handle to the blip.","summary":"Adds a rectangular blip for the specified coordinates/area.","descriptions":[{"source":"cfx","format":"md","body":"Adds a rectangular blip for the specified coordinates/area.\nIt is recommended to use [SET_BLIP_ROTATION](#\\_0xF87683CDF73C3F6E) and [SET_BLIP_COLOUR](#\\_0x03D7FB09E75D6B7E) to make the blip not rotate along with the camera.\nBy default, the blip will show as a *regular* blip with the specified color/sprite if it is outside of the minimap view.\n(Native name is *likely* to actually be ADD_BLIP_FOR_AREA, but due to the usual reasons this can't be confirmed)\n\n**This is the server-side RPC native equivalent of the client native [\\_ADD_BLIP_FOR_AREA](?\\_0xCE5D0E5E315DB238).**"}],"examples":[],"aliases":["0xCE5D0E5E315DB238"],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/_ADD_BLIP_FOR_AREA","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/_ADD_BLIP_FOR_AREA.md","snippets":{"lua":"local retval = AddBlipForArea(x, y, z, width, height)","luaInvoke":"local retval = Citizen.InvokeNative(0x6228f159, x, y, z, width, height, Citizen.ResultAsInteger())","js":"const retval = AddBlipForArea(x, y, z, width, height);","jsInvoke":"const retval = Citizen.invokeNative('0x6228f159', x + 0.0000001, y + 0.0000001, z + 0.0000001, width + 0.0000001, height + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x6228f159, x, y, z, width, height);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}