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-pedgeneratorACE in server.cfg (without this nobody can open the editor):
add_ace group.admin nxpedgenerator.admin allow
add_ace group.god nxpedgenerator.admin allowNo 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
| Option | Description |
|---|---|
| Config.Locale | Language 'en' / 'es' |
| Config.command / Config.openKey | Command (pedgenerator) and key (F4) |
| Config.ace | Access ACE (nxpedgenerator.admin) |
| Config.spawnRadius | Spawn/despawn distance |
| Config.shopAccount | Shop account: 'cash' or 'bank' |
| Config.models / Config.animCategories / Config.icons | Editable catalogs |
Commands & Exports
| Command / key | Description |
|---|---|
| /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.adminACE (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.shopAccountand 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.