Jump to content

Baseplate

Members
  • Posts

    1,417
  • Joined

  • Last visited

Everything posted by Baseplate

  1. Nice server, no lagging (execpt my net sucks) and he's too helpful thanks mate
  2. Baseplate

    Problem

    Meh iz idiot , Thanks Tapl, working fine now
  3. Baseplate

    Problem

    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)
  4. Baseplate

    COdesigns

    Nice! Great working
  5. it's just a change on ACL, nothing to say good work on
  6. 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
  7. try MTA Diag and pastebin the result
  8. Baseplate

    Tec-9 crashing

    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?
  9. and how to make it or is it available at community?
  10. well, title says all is there any way to change the _ to space in nicks?
  11. and that would be 100 GB download lolz
  12. I didn't get shit, but gl..
  13. Baseplate

    GUI Help

    EDIT: Your code isn't working IceMan but i solved it thanks guys
  14. Baseplate

    GUI Help

    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)
  15. Baseplate

    GUI Help

    but still when i click on the Ped the GUI isn't showing loolz
  16. Baseplate

    GUI Help

    alright, still the GUI showing up when i start the resouce...any ideas? and be patient with me lolz, i'm just slow
  17. Baseplate

    GUI Help

    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 )
  18. Baseplate

    GUI Help

    got this error, ERROR: wip\script.lua:9: attempt to call global 'guiCreateWindow' (a nil value)
  19. Baseplate

    GUI Help

    Alright! thanks for helping ;D Edit: got this error, ERROR: wip\script.lua:9: attempt to call global 'guiCreateWindow' (a nil value)
  20. Baseplate

    GUI Help

    Thanks, I didn't really understand how to use it, so would you like please to explain more?
  21. Baseplate

    GUI Help

    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??
  22. lolz, u have to go in the IRC Channel that u added on your script
  23. i'd say that you can learn LUA, it's soo easy to learn, wiki have everything u want
  24. all I can say is gj! i liked the script
×
×
  • Create New...