Wix Car Spawner is a FiveM resource that allows players to spawn vehicles using inventory items. When a player uses a designated car item, the corresponding vehicle is spawned for them. The script supports automatic despawning of vehicles when the player exits, with an option to return the car item to the player's inventory if enabled. It includes anti-abuse measures. Configuration options include despawn timing, inventory checks, and customizable vehicle-item mappings.
Dependencies:
To install Wix Car Spawner, follow these steps:
- Download the latest release from the releases page.
- Make sure you have wix_core installed.
- Extract the downloaded files into your resources folder.
- Make sure the resource is called
wix_car_spawner. - Add
ensure wix_car_spawnerto yourserver.cfgfile. - Create the items for the vehicles
- U can find icons for the default vehicles in the FiveM docs
- Example items for ox_inventory
["car_bf400"] = {
label = "BF400",
weight = 1,
stack = false,
close = true,
},
["car_adder"] = {
label = "Adder",
weight = 1,
stack = false,
close = true,
},
- Example items for es_extended
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('car_adder', 'Adder', 1, 0, 1);
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('car_bf400', 'BF400', 1, 0, 1);
- Example items for qb_core
car_adder = { name = 'car_adder', label = 'Adder', weight = 1, type = 'item', image = 'car_adder.png', unique = false, useable = true, shouldClose = true, description = 'Spawnable Adder' },
car_bf400 = { name = 'car_bf400', label = 'BF400', weight = 1, type = 'item', image = 'car_bf400', unique = false, useable = true, shouldClose = true, description = 'Spawnable BF400' },
- This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
- You may not sell this script or redistribute it without providing the source code.
- Modifications must retain original credits and use the same license (GPLv3).
