From c9cb880979aa2926051c6bd2764cda1d2520b5bb Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Tue, 7 Feb 2023 15:35:26 +1100 Subject: [PATCH] add example of ox_inventory shop with ped --- docs/ox_inventory/Guides/shops.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/ox_inventory/Guides/shops.md b/docs/ox_inventory/Guides/shops.md index 69e2f855..bc280486 100644 --- a/docs/ox_inventory/Guides/shops.md +++ b/docs/ox_inventory/Guides/shops.md @@ -24,6 +24,7 @@ Builtin shops are defined in [data/shops.lua](https://github.com/overextended/ox vec3(25.7, -1347.3, 29.49), }, targets = { + -- Shop using a BoxZone { loc = vec3(25.06, -1347.32, 29.5), length = 0.7, @@ -33,6 +34,13 @@ Builtin shops are defined in [data/shops.lua](https://github.com/overextended/ox maxZ = 29.9, distance = 1.5 }, + -- Shop using a ped + { + ped = `mp_m_shopkeep_01`, + scenario = 'WORLD_HUMAN_AA_COFFEE', + loc = vec3(24.407, -1347.283, 28.497), + heading = 270.311, + }, } } } @@ -63,7 +71,7 @@ Builtin shops are defined in [data/shops.lua](https://github.com/overextended/ox - locations?: `vector3[]` - An array of coordinates to create unique instances of the shop archetype at, using markers. - targets?: `table[]` - - An array of BoxZone settings to create unique instances of the shop archetype at. + - An array of target settings to create unique instances of the shop archetype at, using peds or BoxZones (PolyZone data structure). - model?: `number[]` - An array of models that can be targetted to open a shop. Used for vending machines.