
Baseplate
Members-
Posts
1,417 -
Joined
-
Last visited
Everything posted by Baseplate
-
Hosting your MTA Server or OVZ VPS for 1 month - for free!
Baseplate replied to =FAS=Shigawire's topic in Hosting solutions
Nice server, no lagging (execpt my net sucks) and he's too helpful thanks mate -
I have this script, the GUI shows up on marker hit, but buttons aren't working Client local vehicles = {"BMX", "Bike", "Mountain Bike"} local bikes = createMarker(1183.2487792969, -1314.9769287109, 12.546875, 'cylinder', 1.5, 255, 255, 255, 255) function createVehGui () MainGui = guiCreateWindow(408,203,240,349,"Vehicle",false) VehGrid = guiCreateGridList(17,32,200,256,false,MainGui) guiGridListSetSelectionMode(VehGrid,2) _bikes = guiGridListAddColumn(VehGrid,"Vehicle name:",0.85) Spawn = guiCreateButton(15,305,96,35,"Use",false,MainGui) guiSetFont(Spawn,"clear-normal") Cancel = guiCreateButton(128,305,96,35,"Close",false,MainGui) guiSetFont(Cancel,"clear-normal") for index, vehicle in ipairs(vehicles) do local row = guiGridListAddRow (VehGrid) guiGridListSetItemText ( VehGrid, row, _bikes, tostring(vehicle), false, false ) end end addEventHandler("onClientMarkerHit", bikes, function ( hitElement ) if (hitElement == localPlayer) then createVehGui ( hitElement ) if (MainGui ~= nil) then guiSetVisible(MainGui, true) showCursor(true) guiSetInputEnabled(true) else outputChatBox ("Error: Please Re-enter in the marker to get your vehicle.", 255, 0, 0) end end end ) addEventHandler("onClientGUIClick", root, function () if (source == Spawn) then local row,col = guiGridListGetSelectedItem(VehGrid) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(VehGrid, row, 1) if vehicleName then triggerServerEvent("spawnBike",localPlayer,vehicleName) end else outputChatBox("Error: Please select a vehicle from the list.",255,0,0) end elseif (source == Cancel) then guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler("onClientPlayerWasted", root, function () guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end) Server: function spawnBike (lol) local id = getElementModel(thevehicle) if id == 509 or id == 510 or id == 481 then local x, y, z = getElementPosition ( source ) local xr, yr, zr = getElementRotation ( source ) createVehicle = createVehicle (id, x, y, z + 0.5, xr, yr, zr ) warpPedIntoVehicle(source, createVehicle) end end addEvent( "spawnBike", true) addEventHandler("spawnBike",root,spawnBike)
-
it's just a change on ACL, nothing to say good work on
-
I'm sure anyone will decline a person who sends them a script and expect them to create something without a proper explanation. The resource was deleted from my hard disk the moment I declined your offer. I'm pretty sure I do not need a incomplete, inefficient and noobish script; I offered to help anyone previously, that offer has finished and now I am just scripting resources for money. You shouldn't determine whether someone is stealing without sufficient proof, there is no way to prove my innocence and the win is most probably on your side. I even explained to you before posting this that I would be going offline in any moment, but will help you as much as possible. Sorry for the inconvenience. Let's keep this out of this topic. - qaisjp Sorry for posting, but Qais is really helpful wtf he'll do with some shitty scripts he'll make in 2 minz? i asked for his help millions of times, give him 2 seconds and everything is done, i'm really apperciating his help
-
try MTA Diag and pastebin the result
-
Well this is not my first time, but wanted to report it, when you replace the Tec-9 model and you start the resource the server crashes, i used like 3 models and still crashing, any solutions?
-
and how to make it or is it available at community?
-
well, title says all is there any way to change the _ to space in nicks?
-
and that would be 100 GB download lolz
-
I didn't get shit, but gl..
-
EDIT: Your code isn't working IceMan but i solved it thanks guys
-
Server: ped1 = createPed (280, 1546, -1680.55, 13.56) --Police NPC setElementData(ped1,"message","Police, click on NPC to get job") setPedRotation ( ped1, 90 ) setElementFrozen ( ped1, true ) exports [ "extra_health" ]:setElementExtraHealth(ped1, 50000000) addEventHandler ( "onElementClicked", ped1, function ( ) end ) Client function changeVisibility ( ) guiSetVisible (policeWindow,true) end policeWindow = guiCreateWindow(259,170,515,408,"Police",true) acceptButton = guiCreateButton(93,360,119,39,"Accept",false,policeWindow) declineButton = guiCreateButton(258,360,123,39,"Decline",false,policeWindow) descLabel = guiCreateLabel(21,44,90,16,"Job Description",false,policeWindow) descMemo = guiCreateMemo(25,78,478,273,"",false,policeWindow) guiMemoSetReadOnly(descMemo,true)
-
but still when i click on the Ped the GUI isn't showing loolz
-
alright, still the GUI showing up when i start the resouce...any ideas? and be patient with me lolz, i'm just slow
-
yea, i forgot about it lolz, but still it's not working lol, when i click on the ped nothing shows up and no errors are on there EDIT: Code ped1 = createPed (280, 1546, -1680.55, 13.56) --Police NPC setElementData(ped1,"message","Police, click on NPC to get job") setPedRotation ( ped1, 90 ) setElementFrozen ( ped1, true ) addEventHandler ( "onElementClicked", ped1, function ( ) jobPanel = guiCreateWindow(259,170,515,408,"Police",false) acceptButton = guiCreateButton(93,360,119,39,"Accept",false,jobPanel) declineButton = guiCreateButton(258,360,123,39,"Decline",false,jobPanel) descLabel = guiCreateLabel(21,44,90,16,"Job Description",false,jobPanel) descMemo = guiCreateMemo(25,78,478,273,"",false,jobPanel) guiMemoSetReadOnly(descMemo,true) end )
-
got this error, ERROR: wip\script.lua:9: attempt to call global 'guiCreateWindow' (a nil value)
-
Alright! thanks for helping ;D Edit: got this error, ERROR: wip\script.lua:9: attempt to call global 'guiCreateWindow' (a nil value)
-
Thanks, I didn't really understand how to use it, so would you like please to explain more?
-
Well I have created a Ped and here is my ped code ped1 = createPed (280, 1546, -1680.55, 13.56) --Police NPC setPedRotation ( ped1, 90 ) setElementFrozen ( ped1, true ) now, i have a GUI, how can I make it show up when i click on that NPC with the cursor??
-
lolz, u have to go in the IRC Channel that u added on your script
-
i'd say that you can learn LUA, it's soo easy to learn, wiki have everything u want
-
all I can say is gj! i liked the script