Jump to content

need help with GUI


COOKIE2

Recommended Posts

hey i made a gui for wins example

someone presses f6 and a gui appears but it doesnt say how many wins and deaths i had in race

i got server/client side scripts can someone give me an example without me showing u the lua's

btw if this was stolen?? why do i ask how to set a difinition to a button and not a lua

I DIDNT STEAL ANYTHING ( JOSE )

Edited by Guest
Link to comment

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

)

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...