Jump to content

Oekeokiki

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Oekeokiki's Achievements

Vic

Vic (3/54)

0

Reputation

  1. sorry that i was away. I can see the cursor but i can't click on anything. I will try the solutions and will update this post.
  2. Dear members of the MTA Sa Forum, I have a new problem. If i start this script when i am in the server, i see the GUI and i can't click anything, after that i need to reconnect because of this script. The marker doesn't work but i can luckly see it. I think that there is a problem with guiSetVisible. Can someone help me? Thanks in advance, Oekeokiki Client: local trainsf = createMarker( -1959, 138, 28, 'cylinder', 2.0, 255, 0, 0, 150 ) function weedspeedtrains () GUIEditor_Button = {} GUIEditor_Label = {} Weedspeed_Trains = guiCreateWindow(307,256,418,282,"Weedspeed Trains",false) GUIEditor_Label[1] = guiCreateLabel(0.1124,0.117,0.8062,0.2057,"Welcome at WeedSpeed Trains, where do you want to go?",true,Weedspeed_Trains) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) lossantosmarket = guiCreateButton(0.0622,0.3227,0.3038,0.1773,"Los Santos Market",true,Weedspeed_Trains) GUIEditor_Button[2] = guiCreateButton(0.5694,0.3227,0.3038,0.1773,"Los Santos Little Mexico",true,Weedspeed_Trains) GUIEditor_Button[3] = guiCreateButton(0.0646,0.5532,0.3038,0.1773,"San Fierro",true,Weedspeed_Trains) GUIEditor_Button[4] = guiCreateButton(0.3254,0.7695,0.3038,0.1773,"Las Venturas East",true,Weedspeed_Trains) GUIEditor_Button[5] = guiCreateButton(0.5718,0.5532,0.3038,0.1773,"Las Venturas North",true,Weedspeed_Trains) guiSetVisible(Weedspeed_Trains, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () weedspeedtrains() if (Weedspeed_Trains ~= nil) then guiSetVisible(Weedspeed_Trains, true) end showCursor(true) guiSetInputEnabled(true) end ) function lossantosmarketgo(button) if button == "left" then triggerServerEvent("warplsmarket", getRootElement() ) guiSetVisible(Weedspeed_Trains, false) showCursor(false) end end addEventHandler("onClientGUIClick", lossantosmarket, lossantosmarketgo, false) addEventHandler( "onMarkerHit", trainsf, weedspeedtrains ) Server: function spawnlsmarket(client) local x,y,z x = 1738 y = -1949 z = 15 if (client) then spawnPlayer(client, x, y, z) fadeCamera(client, true) end end addEvent("warplsmarket", true) addEventHandler("warplsmarket", getRootElement(), spawnlsmarket)
  3. Oekeokiki

    trains

    Ok, so the trains are just buggy. But is that also the reason why this doesn't work or not? The problem is that i even don't get errors from the console.
  4. Oekeokiki

    trains

    Yes i did, i tried every possible solution and order i could imagine
  5. Oekeokiki

    trains

    Hello all, I am trying to let a train drive across the bidge between San Fierro and the desert. The problem is, when I use /train, the train is spawning but not starting to ride/drive. I used for setTrainSpeed (train, 50) and (train, 0.5) but none of these work. Is there something wrong with my script or is it just not possible? btw: I changed the script to serverside but it doesn't work either. function train (command) local train = createVehicle (537, -1514, 576, 35) local trainped = createPed (252, -1515, 580, 35) warpPedIntoVehicle (trainped, train) setTrainSpeed (train, 50) end addCommandHandler ("train", train) Thanks in advance, Oekeokiki
×
×
  • Create New...