i got an lua but i really dont wanna post it here (not cuz im greedy son of a ****) but my friend asked me to dont make it public
so i just wana know
like this (its not to lua i mean)
how do i make a button for /buy hunter or something ) i wanna make a gui where i can get a definition into it
price = {}
price.hunter = 100000
addCommandHandler("buy",
function (player, command, item)
if item == "hunter" then
if getPlayerMoney(player) > price.hunter then
local vehicle = getPedOccupiedVehicle(player)
if vehicle then
fixVehicle(vehicle)
takePlayerMoney(player, price.hunter)
outputChatBox("You've bought a hunter", player, 0, 222, 0, true)
else
outputChatBox("You think im stupid", player, 222, 0, 0, true)
end
else
outputChatBox("Not enough cash, hunter costs $"..price.hunter, player, 222, 0, 0, true)
end
end
end
)