Jump to content

Desaster

Members
  • Posts

    243
  • Joined

  • Last visited

Everything posted by Desaster

  1. Desaster

    kill cam

    still show me the dancing camera
  2. so make buttons at the left that shows you a window
  3. Desaster

    kill cam

    still the same addEventHandler ( 'onPlayerLogin', getRootElement ( ), function() --fadeCamera ( source, false, 1, 0, 0, 0 ) --setTimer ( fade, 10000, 10, source ) killPed(source) --spawnPlayer (source, 0, 0, 5, 0, 0, 0, 0, spawnTeam) end ) addEventHandler ( 'onPlayerWasted', getRootElement ( ), function( source ) setCameraMatrix(source, -2246.4399414063, 0.65520000457764, 49.66189956665, -2247.34375, 0.70009028911591, 49.236320495605) end )
  4. Desaster

    kill cam

    I tryed addEventHandler ( 'onPlayerLogin', getRootElement ( ), function() killPed(source) --spawnPlayer (source, 0, 0, 5, 0, 0, 0, 0, spawnTeam) setCameraMatrix(source, -2246.4399414063, 0.65520000457764, 49.66189956665, -2247.34375, 0.70009028911591, 49.236320495605) end ) it set the camera there but then I see the player
  5. Desaster

    kill cam

    when you die you see a dancing camera how to remove that ?
  6. as allentus sayed fix that 200mb of download it's the 1/5 of GTA no one will download it anyways keeps that fyling car looks awsome
  7. thnx all that helps me alot
  8. Desaster

    GIRD list

    I mean I have a cart and I want to get all the iteams prices in it ( thecart = girslist ) with this guiGridListGetItemData but just for every iteam in that gird list
  9. Desaster

    GIRD list

    hello I am learning to handle with gird list so I´have some questions about it how to get all Iteams of 1 gird list ?
  10. how to add this function to your function castillo ? guiGridListSetItemText (ammoGirdcart, row2, 2, text, false, true)
  11. what's the problem here ? local text = guiGetText ( ammotext ) guiGridListSetItemText (ammoGirdcart, row2, 1, wepName1, false, true) guiGridListSetItemText (ammoGirdcart, row2, 2, text, false, true) guiGridListSetItemText (ammoGirdcart, row2, 3, wepCost1, false, true) ) ps: this is in a fuction
  12. useful but i need an other thing I am making a edit box where you should put your the ammo you want and I want that the player just type numbers no text
  13. local alpha1 = 255 local alpha2 = 0 Image = guiCreateStaticImage( 690, 200, 100, alpha, "R1.png", false ) function setalpha() setTimer ( function() guiSetAlpha(Image, alpha2) end, 3000, 1 ) end
  14. how to enable a sting format like I want just numbers in my edit box if you type any other thing it won't be written
  15. what's the problem ? Client : addEvent("onPlayerEnter", true) addEventHandler("onPlayerEnter", resourceRoot, function() GUIEditor.button[1] = guiCreateButton(0.57, 0.82, 0.21, 0.10, "spawn", true) guiSetFont(GUIEditor.button[1], "sa-header") GUIEditor.button[2] = guiCreateButton(0.43, 0.82, 0.13, 0.10, "<<<", true) guiSetFont(GUIEditor.button[2], "sa-gothic") GUIEditor.button[3] = guiCreateButton(0.78, 0.82, 0.13, 0.10, ">>>", true) guiSetFont(GUIEditor.button[3], "sa-gothic") end ) Server: addEventHandler ( 'onPlayerLogin', getRootElement ( ), triggerClientEvent ( "onPlayerEnter1", source, source ) )
  16. Desaster

    table ...

    I can sell them but I don't get the price the sell function is triggered from server
  17. Desaster

    table ...

    maybe this function guiClick6 (button, state, absoluteX, absoluteY) if (source == FirstSlotSell) then triggerServerEvent ("carSellShop",getLocalPlayer(),3) guiSetVisible (CarSellWindow, false) showCursor (false) for i,v in ipairs (cars) do carID = getElementData (source, "hisCar1") value = table.concat(cars, carID) givePlayerMoney ( value + 1 ) end elseif (source == SecondSlotSell) then elseif (source == ThirdSlotSell) then elseif (source == cancel123) then guiSetVisible (CarSellWindow, false) showCursor (false) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick6) but won't work
  18. Desaster

    table ...

    nop every car have it's slot in total there are 3
  19. Desaster

    table ...

    I am saving them into setAccoutData but I don't get what you mean
  20. we don't help you with stolen scripts
  21. Desaster

    table ...

    hello , I am trying to sell a car by finding the first value of the table and to find the matching one with the car's ID and then to take the second value wish is the price and to give the half of it to the player I had some problems to make it could you help me what I made : local cars = {{519,250000},{460,80000},{593,65000},{511,125000},{513,70000},{447,180000},{563,200000},{497,350000},{488,70000},{487,300000},{520,4000000},{417,160000}} function guiClick6 (button, state, absoluteX, absoluteY) if (source == FirstSlotSell) then triggerServerEvent ("carSellShop",getLocalPlayer(),3) guiSetVisible (CarSellWindow, false) showCursor (false) for i,v in ipairs (cars) do carID = getElementData (source, "hisCar1") if carID == v[1] then givePlayerMoney ( v[2] ) end end end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick6)
  22. hello, this is my script and I you couldn't find how to slove the following problems - when two players take the train at the sametime if anyone of them stop at a station the other will stop too and that's bad -when the player quits the car the colCuboids won't be destroyed so every time the player run throught the colshape he must pay oney for nothing I tryed every thing but I can't find what I must do Server Side : function TrainlvTols(source, myTrain) if (getPlayerMoney (source) > 499) then local myTrain = createVehicle(537,1453.8831787109, 2628.9331054688, 11.392612457275) -- This will make a freight train just east of the LS train station driver = getVehicleOccupant ( myTrain ) setTrainDerailable(myTrain, false) -- myTrain can not be derailed now warpPedIntoVehicle(source, myTrain) -- This will warp you to inside the train setTrainSpeed(myTrain, 3) -- Set the train speed to 1 - 100mph, 160kmh for i,v in ipairs(trainStopPos) do thecol = createColCuboid(unpack(envy)) addEventHandler ( "onVehicleExit", myTrain, function(thecol) --- here the remove col shape destroyElement(thecol) destroyElement(myTrain) end ) addEventHandler ( "onColShapeHit", thecol, function(driver) setTrainSpeed(myTrain, 0) -- Set the train speed to 1 - 100mph, 160kmh takePlayerMoney ( driver, 250 ) if (getPlayerMoney (source) < 499) then destroyElement(myTrain) outputChatBox ( "You can't afford to go to the next station!", source, 255, 0, 0, true ) end setTimer ( function() setTrainSpeed(myTrain, 3) end, 5000, 1 ) end ) end addEventHandler ( "onVehicleExit", myTrain, function() destroyElement(myTrain) end ) else outputChatBox ( "You can't afford to go to the next station!", source, 255, 0, 0, true ) end end thnx for reading ps : there is also a client side but nothing important is in it
×
×
  • Create New...