molinaa1 Posted May 21, 2014 Share Posted May 21, 2014 Ayudenmen en esto porfavor.. local vehicleMarker = createMarker(1032.47998, -1032.34766, 31.1,"cylinder",1,255,255,255) createMarker(-2421.6904296875, -608.36328125, 132.5625,"cylinder",1,255,255,255) function vehicleGUI() vehicleGUI = guiCreateWindow(277, 204, 269, 266, "Vehicle Spawn", false) guiWindowSetSizable(vehicleGUI, false) vehicleFaggio = guiCreateButton(9, 31, 250, 50, "Faggio", false, vehicleGUI) vehicleBMX = guiCreateButton(9, 95, 250, 50, "BMX", false, vehicleGUI) vehicleMountain = guiCreateButton(9, 162, 250, 50, "Mountain Bike", false, vehicleGUI) vehicleClose = guiCreateButton(178, 229, 81, 27, "Close", false, vehicleGUI) if source == vehicleMarker then guiSetVisible(vehicleGUI, true) showCursor( true ) end end addEventHandler("onClientMarkerHit",getRootElement(),vehicleGUI) function vehicleClose() if source == vehicleClose then guiSetVisible(vehicleGUI,false) showCursor(true) end end addEventHandler("onClientGUIClick",getRootElement(),vehicleClose) function vehicleFaggio( player ) if source == vehicleFaggio then triggerServerEvent("vehFaggio", localPlayer) guiSetVisible(vehicleGUI,false) showCursor(false) outputChatBox("You have spawned a civilian Faggio.",source) end end addEventHandler("onClientGUIClick",getRootElement(),vehicleFaggio) function vehicleBMX( player ) if source == vehicleBMX then triggerServerEvent("vehBMX",localPlayer) guiSetVisible(vehicleGUI,false) showCursor( false ) outputChatBox("You have spawned a civlian BMX.",source) end end addEventHandler("onClientGUIClick",getRootElement(),vehicleBMX) function vehicleMountain( player ) if source == vehicleMountain then triggerServerEvent("vehMountain",localPlayer) guiSetVisible(vehicleGUI,false) showCursor( false ) outputChatBox("You have spawned a civilian Mountain Bike.",source) end end addEventHandler("onClientGUIClick",getRootElement(),vehicleMountain) Link to comment
Tomas Posted May 21, 2014 Share Posted May 21, 2014 No nos dijiste tu problema... Intenté comprenderlo, fijate si esto te sirve: local vehicleMarker = createMarker(1032.47998, -1032.34766, 31.1,"cylinder",1,255,255,255) createMarker(-2421.6904296875, -608.36328125, 132.5625,"cylinder",1,255,255,255) vehicleGUI = guiCreateWindow(277, 204, 269, 266, "Vehicle Spawn", false) guiWindowSetSizable(vehicleGUI, false) guiSetVisible(vehicleGUI,false) = guiCreateButton(9, 31, 250, 50, ":O", false, vehicleGUI) vehicleBMX = guiCreateButton(9, 95, 250, 50, "BMX", false, vehicleGUI) vehicleMountain = guiCreateButton(9, 162, 250, 50, "Mountain Bike", false, vehicleGUI) vehicleClose = guiCreateButton(178, 229, 81, 27, "Close", false, vehicleGUI) function vehicleGUII() if source == vehicleMarker then guiSetVisible(vehicleGUI, true) showCursor( true ) end end addEventHandler("onClientMarkerHit",vehicleMarker,vehicleGUII) function vehicleClose() if source == vehicleClose then guiSetVisible(vehicleGUI,false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),vehicleClose) function ( player ) if source == then triggerServerEvent(":O", localPlayer) guiSetVisible(vehicleGUI,false) showCursor(false) outputChatBox("You have spawned a civilian .",source) end end addEventHandler("onClientGUIClick",getRootElement(),) function vehicleBMX( player ) if source == vehicleBMX then triggerServerEvent("vehBMX",localPlayer) guiSetVisible(vehicleGUI,false) showCursor( false ) outputChatBox("You have spawned a civlian BMX.",source) end end addEventHandler("onClientGUIClick",getRootElement(),vehicleBMX) function vehicleMountain( player ) if source == vehicleMountain then triggerServerEvent("vehMountain",localPlayer) guiSetVisible(vehicleGUI,false) showCursor( false ) outputChatBox("You have spawned a civilian Mountain Bike.",source) end end addEventHandler("onClientGUIClick",getRootElement(),vehicleMountain) Link to comment
molinaa1 Posted May 21, 2014 Author Share Posted May 21, 2014 uh perdon. era am el cursor-.- que no se muestra Link to comment
Tomas Posted May 21, 2014 Share Posted May 21, 2014 Prueba si te funciona lo de arriba. Link to comment
Recommended Posts