sh-vehiclespawner

sh-vehiclespawner

$4.99

Add to Basket

Overview

Customizable vehicle spawner menu using WarMenu. Players with permissions can spawn categorized vehicles with mods, spawn options, and global whitelisting to restrict access server-wide (e.g., blocks unauthorized spawns from vMenu).

Standalone script; uses ACE permissions.

Features

- Categorized menus with submenus.

- ACE permissions for menu, categories, and per-vehicle access.

- Custom mods (colors, livery, upgrades like engine/turbo).

- Spawn controls: replace previous, spawn inside, offset/heading.

- Anti-abuse: max distance, global whitelist via `entityCreating`.

- Notifications: mythic_notify, ox_lib, sh-notify (or console fallback).

- Debug mode and customizable keybind (default F6).

Dependencies

- WarMenu (required for UI): [GitHub]().

- Optional: mythic_notify, ox_lib, or sh-notify.

Installation

1. Place files (`client.lua`, `server.lua`, `config.lua`) in `[resources]/sh-vehiclespawner`.

2. Add `start sh-vehiclespawner` to `server.cfg` (after WarMenu/notifications).

3. Configure `config.lua`.

4. Restart server or run `refresh` + `start sh-vehiclespawner`.

Configuration (`config.lua`)

  • **Debug/Keybind/Menu Styling**: Toggle debug, set key (F6), customize colors/width/position.

  • **Spawn Options**: Replace previous, spawn inside, offset, max distance, enable mods/whitelist.

  • **Vehicles**: Add categories/lists with models, labels, mods (e.g., `{engine = 3, turbo = true}`), optional per-vehicle permissions.

  • **Permissions**: Toggle checks; set open/all/category ACEs (e.g., `vehiclespawner.cars`).

  • **Whitelist**: `EnableGlobalWhitelist` blocks restricted vehicles from any source.

Permissions

In `server.cfg` or permissions file:

add_ace group.admin "vehiclespawner.open" allow

add_ace group.admin "vehiclespawner.all" allow

add_ace group.vip "vehiclespawner.bikes" allow

Usage

- Press keybind (F6) to open menu.

- Select category/vehicle; spawns with options/mods.

- Whitelist enforces restrictions globally.

Troubleshooting

- Menu issues: Check permissions, WarMenu loaded.

- No notifications: Verify system installed.

- Spawn fails: Validate models/permissions; check logs.

- Whitelist bypass: Ensure `EnableGlobalWhitelist = true`.

Discord: