Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local JobMarker = createMarker( -2152.7998046875, 225.36972045898, 34.299999237061, "cylinder")
- local function createWindow()
- local gui = {}
- local X, Y, Width, Height = getMiddleGuiPosition(170,97)
- gui['ROOT'] = guiCreateWindow(X, Y, Width, Height, "HotDogStand",false)
- gui['KAUFEN'] = guiCreateButton(21,45,79,30,"Kaufen (7$)",false,gui['ROOT'])
- gui['CLOSE'] = guiCreateButton(116,47,29,26,"X",false,gui['ROOT'])
- showCursor( true )
- guiSetVisible( gui['ROOT'], true)
- addEventHandler("onClientGUIClick", gui['ROOT'], function()
- destroyElement(gui['ROOT'])
- showCursor(false)
- end, false)
- end
- addEventHandler('onClientMarkerHit', JobMarker,
- function(hElemt, dim)
- if(hElement ~= localPlayer) then
- createWindow()
- end
- end
- );
- fileDelete( 'client.lua' )
- function getMiddleGuiPosition(lol, lol2)
- local sWidth, sHeight = guiGetScreenSize()
- local Width,Height = lol, lol2
- local X = (sWidth/2) - (Width/2)
- local Y = (sHeight/2) - (Height/2)
- return X, Y, Width, Height
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement