AddPatrolRouteLink
DocsAddPatrolRouteLink(id1, id2)Description
connects/links 2 route nodes
image representing the cyclic example below:
!image
Parameters
| Name | Type | Description |
|---|---|---|
id1 | int | the id representing the first route node |
id2 | int | the id representing the second route node |
Ped Models

mp_m_freemode_01
player_zero
ig_agatha
s_m_y_cop_01
s_m_m_gaffer_01
g_m_m_armboss_01
a_c_boar
a_m_m_bevhills_01Returns
voidThis native does not return a value.
Examples
Official
-- these lines connect 1,2,3,4,5,6 in a cyclic manner (1 > 2 > 3 > 4 > 5 > 6 > 1)
AddPatrolRouteLink(1,2)
AddPatrolRouteLink(2,3)
AddPatrolRouteLink(3,4)
AddPatrolRouteLink(4,5)
AddPatrolRouteLink(5,6)
AddPatrolRouteLink(6,1)