Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssVending Machine (vendingmachine)

Category:script
Author(s):$vvt
Downloads:710
Rate:You need to be logged in to vote
Rating:4.5 (2 Votes)
Description:
* This made for role-playing game mode

This is an advanced vending machine resource allows you to create machines all around san andreas, once a machine been created you can simply stand in front of the machine and a list of drinks will show up, select which beverage you want to drink and purchase it.

How to create a vending machine :

- Get the coordinate you wish to place the vending machine
(exemple): x="0", y="0", z="2" --middle of the map
- Open vendingMachine.xml and add this line of code

Syntax
<object object= int modelId, x= float x, y= float y, z= float z, rx= float rx, ry= float ry, rz = float rz, markerZ= float mz, bool markerVisible= true/>

Required Arguments
* object: A whole integer specifying the GTA:SA object model ID.
* x: A floating point number representing the X coordinate on the map.
* y: A floating point number representing the Y coordinate on the map.
* z: A floating point number representing the Z coordinate on the map.
* rx: A floating point number representing the rotation about the X axis in degrees.
* ry: A floating point number representing the rotation about the Y axis in degrees.
* rz: A floating point number representing the rotation about the Z axis in degrees.
* markerZ: A floating point number representing the Z coordinate on the map.
* markerVisible: This defines if marker will be visible or not.

You can also adjust items in client.lua

* You can change item name, price, hp
* you can add items
* you can remove items

Key binds

* up/down arrows to select items/drinks.
* Enter to purchase item.
* Backspace to close window.

Note: You need to have DGS resource installed if you wish to run this resource.

Enjoy!

Example Video :
https://youtu.be/kfBh-hf21Zc


Download latest version | Report

Version history

Version Publish Date Changes
1.1.0 2023-02-04 15:11:26 *Fixed minor bugs
*added marker size / type / colors
*added object interior / dimension
*added more vending machines on the map
Download
1.0.0 2023-01-29 19:27:22 First public release Download