Simple library for creating server-side vending machines.
CreateVendingMachine(Float:X, Float:Y, Float:Z, Float:Rx, Float:Ry = 0.0, Float:Rz = 0.0, type = MACHINE_TYPE_SODA);
GetPlayerNearVendingMachineID(playerid);
GetVendingMachinePos(machineid, &Float:X, &Float:Y, &Float:Z);
GetVendingMachineRotation(machineid, &Float:RX, &Float:RY, &Float:RZ);
bool:IsValidVendingMachine(machineid);
DestroyVendingMachine(machineid);
public OnPlayerUseVendingMachine(playerid, type)
Special thanks to wuzi and his server-side vending machine library, for giving me the kickstart to create this library.