Giter Club home page Giter Club logo

xnvending's Introduction

xnVending

This adds workable vending machines around the map for ESX, walk up to any vending machine that is configured in the config.lua and press E to purchase. Included in this release is a bonus vending machine model I made which is a weed vending machine, currently it is not placed anywhere on the map, you must do that yourself. I won't be telling you how, it's easy enough to google how to add custom things to the map.

Installation

Copy xnVending to your resources folder and add start xnVending to your server.cfg\

Config

In the config are the animations for the vending machine (audio is part of the animation, so I wouldn't recommend changing it) Config.DispenseDict

There is also the animations for putting the item in the users pocket, there is probably a better one somewhere Config.PocketAnims

Last thing is the config for the vending machines and the items here is an example;

{
	model = `prop_vend_soda_01`, -- Model name
	item = "ecola", -- Database item name
	name = "E-Cola", -- Friendly display name
	prop = "prop_ecola_can", -- Prop to spawn falling in machine
	price = 1 -- Purchase price
},

It's pretty self explanatory. No coordinates need to be added for vending machines as it uses a searching native to find the closest model of type. So this will work for any new types you have on your server without any configuration.

Dependencies

Obviously this needs ESX

Videos

Normal Vending Machine Showoff

Weed Vending Machine Showoff

Note: Weed effects aren't included in this mod

xnvending's People

Contributors

92-smallo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.