# qadr\_train

|                       |                                                                                                                                                                                                                                  |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Code accessible       | No / This resource has api file. So you can add your changes.                                                                                                                                                                    |
| Subscription based    | No                                                                                                                                                                                                                               |
| Lines (approximately) | \~                                                                                                                                                                                                                               |
| Requirements          | <p><a href="https://github.com/abdulkadiraktas/redemrp_menu_base">An edited version of Menu Base</a> <br><a href="https://github.com/RedEM-RP/redemrp_inventory">Orjinal version of RedmRP Inventory</a> or your frame work.</p> |
| Support               | Only RedEM-RP base not Vorp                                                                                                                                                                                                      |

{% tabs %}
{% tab title="Buy" %}

{% embed url="<https://west-world.tebex.io/package/4800321>" %}
{% endtab %}

{% tab title="Forum" %}

{% embed url="<https://forum.cfx.re/t/paid-qadr-train-v1-1/4782830>" %}
{% endtab %}

{% tab title="Discord" %}

{% embed url="<https://dc.abdulkadiraktas.com.tr/>" %}
{% endtab %}

{% tab title="For Reboot 2023" %}
Read this page.

{% content-ref url="qadr\_train/for-reboot-2023" %}
[for-reboot-2023](https://abdulkadir-aktas.gitbook.io/qadr_docs/qadr_train/for-reboot-2023)
{% endcontent-ref %}
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Example mission data for lua" %}

```lua
qadrtrain.jobs = {
	["armadillo"] = {																		-- station name	you must equals qadrtrain.stations 
		["mission1"] = {  																	-- mission1 mean id you need set unique
			name = "to HeartLand", 															-- Mission name for menu and blip
			desc = "mission for heartland", 												-- Mission descriptions
			direction = 0, 																	-- Train direction
			tocoords = qadrtrain.stations.heartland:tocoord(), 								-- To coords for mission
			price = 10, 																	-- Reward price
			items = {
				{item = "bread", count = 1},
				{item = "stone", count = 2}
			}, 																				-- Rewards item if don't give item use `item = nil`
			trainhash = 1216031719, 														-- Spawn train hash. 
			startcamanim = true,															-- Start camera anim on/off
			circletimer = true,																-- Circle timer on/off
			rightimer = false,																-- Top right timer on/off	
			time = 0, 																		-- Mission time second or 0 for unlimited
			endcamanim = true, 																-- Mission train encam anim
			missionpedcoords = qadrtrain.stations.heartland.missionpedcoords,				-- Driver last coord
			missionisstarted = false,														-- Do not change.
		},
	},
}
```

{% endtab %}

{% tab title="Example mission data for json" %}

```json
"Rho To Valentine":{					-- mission1 mean id you need set unique
	"price":400,						-- Reward price	
	"items":{							
		{                               
			"item": "bread",            
			"count" : 1                 
		},                              
		{                               
			"item" : "stone",           
			"count" : 2                 
		}                               
	},                                  -- Rewards item if don't give item use "item" :"" DevMenu does not includes items reward function for the mission. Then you can add manually
	"desc":"Aciklama",                  -- Mission descriptions
	"name":"Rho To Valentine",          -- mission1 mean id you need set unique
	"endcamanim":1,                     -- Mission train encam anim
	"tostation":"valentine",            -- To station for mission
	"circletimer":1,                    -- Circle timer on/off
	"startstation":"rhodes",            -- station name	you must equals qadrtrain.stations 
	"trainhash":519580241,              -- Mission train hash. 
	"direction":1,                      -- Train direction
	"time":400,                         -- Mission time second or 0 for unlimited
	"rightimer":1,                      -- Top right timer on/off	
	"startcamanim":1                    -- Start camera anim on/off
},
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="FEATURES" %}

* Low resource consumption
* Add unlimited station and mission
* All station has their own mission
* Unique script no copy-paste :)
* Use native UI
* Camera transition animation
* Mission timer
* Rewards Money/Item
* You can edit only config.lua file other files encrypted.
* Added unlimited time support for mission
* Added train delete command
* Devmenu is available for creating new routes easily.
* Added version checker system and config. Check config.lua
* Added RedEM-RP Job support. Check config.lua
* Delete train command
* You can find more examples of missions from readme.md in the folder
* You can set train maks speed.
* Added animated marker. If you want to use you can set config lua.
* You can change notification system. Check conf.lua.
  {% endtab %}

{% tab title="USAGE" %}

* Buy this package and download it.&#x20;
* Copy all files to your server resource folder.&#x20;
* After that add “ensure qadr\_train” to server.cfg file after RedemRP requirements.
  {% endtab %}

{% tab title="Videos" %}
{% embed url="<https://www.youtube.com/watch?v=VcCj9qwmU8U>" %}

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

{% embed url="<https://www.youtube.com/watch?v=rnGX_aG-7Gk>" %}
{% endtab %}
{% endtabs %}
