# Qadr\_Map

![](https://580445893-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzf2ZAqGbUPk9K8cVFSgd%2Fuploads%2FCLi884haXelVtCq7zChI%2Fimage.png?alt=media\&token=bd9155a1-3a0d-4a69-8769-3cc534c93cf4)

|                       |                               |
| --------------------- | ----------------------------- |
| Code accessible       | No                            |
| Subscription based    | No                            |
| Lines (approximately) | 400                           |
| Requirements          | RedmRP base, RedmRP Inventory |
| Support               | Yes                           |

This script use these data from your server.

![](https://580445893-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzf2ZAqGbUPk9K8cVFSgd%2Fuploads%2FmTR4PKQ2SjV7jU5dqDCR%2Fimage.png?alt=media\&token=94ee07b8-0370-41e9-b4cc-d498f1920dac)

## **FEATURES**

* This resource has map open animation on pause menu or when was map opened.
* You can create a usable map and add pin, after that you can share with other players.
* You can change map prop
* Guarma support
  * If you want use this feature, you must set <mark style="color:orange;">`SetWorldWaterType`</mark> for guarma\
    Like this `Citizen.InvokeNative(0xE8770EE02AEE45C2, 1)`
  * <mark style="color:red;">**If you don't set it and use the map. Your game will most likely crash!**</mark>
* You can change map blip sprite
* You can set map name with meta
* Multi lang. support
* Add open map with item-only options to the config file
* Version checker options added

## **REQUIREMENTS**

* This resource has its own requirements please use these resources.

  1. Only work RedmRP base
  2. [Orjinal version of RedmRP Inventory](https://github.com/RedEM-RP/redemrp_inventory)
     * You must check your inventory script has this PR change! If you don't have it, you can update manually your inventory. \
       [<mark style="color:red;">https://github.com/RedEM-RP/redemrp\_inventory/pull/31/files</mark>](https://github.com/RedEM-RP/redemrp_inventory/pull/31/files)
     * If you want the inventory to automatically close after using the map item, apply this pull request to your own inventory. (Optional)\
       &#x20;<https://github.com/RedEM-RP/redemrp_inventory/pull/32/files> \
       After this pull request, you can use the events below to close your inventory `TriggerEvent("redemrp_inventory:closeinv") -- from client` `TriggerClientEvent("redemrp_inventory:closeinv",source) -- from server`
     * if you need metadat support check this PR (Optional) <https://github.com/abdulkadiraktas/redemrp_inventory/commit/0c937d3ea89558b6ff0eda851de18294d12baea3>
  3. Add this item to your inventory config :

  ```lua
  ["map"]={
     label="Map",
     description="Map Des.",
     weight=0.3,
     canBeDropped=true,
     requireLvl=0,
     canBeUsed=true,
     imgsrc="items/document_map_role_naturalist_legendary_animal.png",
     limit=10,
     type="item_standard",	
     obj="s_maprolled05x"
  }
  ```

## USAGE

Buy this package and download it. Copy all files to your server resource folder. After that add “ensure qadr\_map” to server.cfg file after RedemRP requirements.

## Config

```lua
qadr = {
	mainlang = "en",
	usableMapItemName = "map",
	mapblip = "blip_mp_spawnpoint",  -- More blips : https://github.com/abdulkadiraktas/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips_mp
	mapModel = "s_twofoldmap01x_us",
	lang = {
		["en"] = {
			title = "Set Map Name",	
		}
	},
	defaultMapZoom = 10.0,
	updatenotification = false,
	onlyOpenMapWithItem = false,
}
```

* `mainlang` you can change lang. to yours. But first you can add your lang. to lang array.
* `usableMapItemName` you can change item name
* `mapblip` you can change blip type on markered map
* `mapModel` you can change held map prop.
* `lang` you can add your lang array and set `mainlang`&#x20;
* `defaultMapZoom` you can set markered map zoom
* `updatenotification` you can turn on/off new update server notification
* `onlyOpenMapWithItem` you can force map open flow to owning map.

Video :&#x20;

{% embed url="<https://youtu.be/ch3htKVVb48>" %}

{% embed url="<https://www.youtube.com/watch?v=RJs56sKiND4>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://abdulkadir-aktas.gitbook.io/qadr_docs/qadr_map.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
