I have created a GUI code
code is ->
GUIEditor = {
button = {},
window = {},
label = {},
memo = {}
}
GUIEditor.window[1] = guiCreateWindow(122, 97, 583, 368, "Pay N Spray", false)
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.memo[1] = guiCreateMemo(38, 28, 516, 222, "Cost :- Minimum :-10$\n Maximum :- 20000$\n\nINFORMATION :- \n1. If your car is broken you can repair it here . You cant change the color of the car for that go to upgrade shop.\n2. You will need to pay money to repair your car.\n3. If damage in your car is more the cost will be more .\n4. Cost of repair depends upon the type of Vehicle you have.", false, GUIEditor.window[1])
GUIEditor.button[1] = guiCreateButton(359, 270, 195, 46, "Repair", false, GUIEditor.window[1])
GUIEditor.button[2] = guiCreateButton(48, 273, 143, 43, "Cancel", false, GUIEditor.window[1])
GUIEditor.label[1] = guiCreateLabel(445, 344, 128, 24, "Designed by sankalp21", false, GUIEditor.window[1])
Now what help is needed
1.) i want this GUI to come when i hit the marker on coordinates XYZ
2.) when GUIEditor.button[1] is pressed it fixes the car and reduces the money of player as per percentage of damage of car.
3.) (IF possible) if the vehicle is low rider car than the cost of repair will be less ... if it is helicopter then the cost will be more if it is sports car than repair cost will be high ....... like this