Quick Start

Install, permissions, commands, and first placement tests

Install

  1. Copy envi-zone-tool into your resources folder.

  2. Run install.sql on your database.

  3. Start these resources in order:

    • ox_lib

    • oxmysql

    • envi-zone-tool

  4. Lock down server/permissions.lua before production.

Database tables

install.sql creates:

  • envi_permanent_props

  • envi_permanent_peds

Commands

Default commands:

  • /zone_tool

  • /polyzone_tool

  • /prop_tool [model]

  • /ped_tool [model]

  • /prop_admin

  • /ped_admin

Set a command string to false to disable registration.

You can also disable features through the matching Config.Enable*Command flags.

Permissions

The live gate lives in server/permissions.lua.

Important permission hooks:

  • CanUseZoneTool(source, commandType)

  • CanManagePermanentProps(source)

  • CanManagePermanentPeds(source)

Supported commandType values:

  • zone

  • polyzone

  • prop

  • ped

The default command gate is too open for most live servers.

Lock it down before production.

First test flow

Use this order:

1

Test a basic zone

Run /zone_tool.

Place a simple sphere or box zone and confirm the output UI opens.

2

Test polygon placement

Run /polyzone_tool.

Add at least three points before finishing.

3

Test prop and ped placement

Run these:

  • /prop_tool

  • /prop_tool prop_cs_cardbox_01

  • /ped_tool

  • /ped_tool a_m_m_skater_01

Confirm you can rotate, move, and finish placement.

4

Test permanent admin menus

Run /prop_admin and /ped_admin with an admin account.

Confirm browse, nearby, move, and delete actions work.

Good first checks

  • If a command does nothing, check server/permissions.lua first.

  • If permanent entities do not load, check oxmysql and the SQL import.

  • If generated target code is pasted into another script - make sure that script actually uses ox_target.

Last updated