NEXO Scripts · Documentation

Everything to install, configure and get the most out of every NEXO resource.

Ped Generator

In-game interactive ped placer with preview, animations and ox_target interactions (talk/shop/event/command). Resource: nx-pedgenerator.

Installation

nx-pedgenerator folder in resources/.

ensure nx-pedgenerator

ACE in server.cfg (without this nobody can open the editor):

add_ace group.admin nxpedgenerator.admin allow
add_ace group.god   nxpedgenerator.admin allow

No database: peds are saved in peds.json.

Features

  • Full official model catalog + custom, with live preview.
  • Animations by category or dict + manual clip.
  • ox_target interactions: Talk, Shop (server-validated), Event, Command.
  • Local proximity spawn (configurable radius).

Configuration

OptionDescription
Config.LocaleLanguage 'en' / 'es'
Config.command / Config.openKeyCommand (pedgenerator) and key (F4)
Config.aceAccess ACE (nxpedgenerator.admin)
Config.spawnRadiusSpawn/despawn distance
Config.shopAccountShop account: 'cash' or 'bank'
Config.models / Config.animCategories / Config.iconsEditable catalogs

Commands & Exports

Command / keyDescription
/pedgenerator or F4 (rebindable)Open/close the editor

No public exports. Internal events prefixed nx-pedgenerator:, server-validated.

Common errors

  • The editor won't open → missing the nxpedgenerator.admin ACE (ACEs load at server boot).
  • F4 doesn't work after renaming the command → rebind the key in Settings → Key bindings.
  • The purchase fails → the buyer needs money in Config.shopAccount and a free slot; the item must exist in your shared items.
  • Peds don't appear → they spawn within Config.spawnRadius; validate the model with the preview.