Skip to content

Wix-Development/wix_car_spawner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wix Car Spawner

banner_small

Table of Contents

Description

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:

Installation

To install Wix Car Spawner, follow these steps:

  1. Download the latest release from the releases page.
  2. Make sure you have wix_core installed.
  3. Extract the downloaded files into your resources folder.
  4. Make sure the resource is called wix_car_spawner.
  5. Add ensure wix_car_spawner to your server.cfg file.
  6. Create the items for the vehicles

Items

  ["car_bf400"] = {
		label = "BF400",
		weight = 1,
		stack = false,
		close = true,
	},

  ["car_adder"] = {
		label = "Adder",
		weight = 1,
		stack = false,
		close = true,
	},
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);
    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' },

License

  • 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).

About

FiveM item car spawner

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages