Jump to content

#Paper

Members
  • Posts

    568
  • Joined

  • Last visited

Everything posted by #Paper

  1. setElementModel bad argument: local vehicleIDS = { 602, 545, 496, 517, 401, 410, 518, 600, 527, 436, 589, 580, 419, 439, 533, 549, 526, 491, 474, 445, 467, 604, 426, 507, 547, 585, 405, 587, 409, 466, 550, 492, 566, 546, 540, 551, 421, 516, 529, 592, 553, 577, 488, 511, 497, 548, 563, 512, 476, 593, 447, 425, 519, 520, 460, 417, 469, 487, 513, 581, 510, 509, 522, 481, 461, 462, 448, 521, 468, 463, 586, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 485, 552, 431, 438, 437, 574, 420, 525, 408, 416, 596, 433, 597, 427, 599, 490, 432, 528, 601, 407, 428, 544, 523, 470, 598, 499, 588, 609, 403, 498, 514, 524, 423, 532, 414, 578, 443, 486, 515, 406, 531, 573, 456, 455, 459, 543, 422, 583, 482, 478, 605, 554, 530, 418, 572, 582, 413, 440, 536, 575, 534, 567, 535, 576, 412, 402, 542, 603, 475, 449, 537, 538, 570, 441, 464, 501, 465, 564, 568, 557, 424, 471, 504, 495, 457, 539, 483, 508, 571, 500, 444, 556, 429, 411, 541, 559, 415, 561, 480, 560, 562, 506, 565, 451, 434, 558, 494, 555, 502, 477, 503, 579, 400, 404, 489, 505, 479, 442, 458, 606, 607, 610, 590, 569, 611, 584, 608, 435, 450, 591, 594 } function setRandomVehicle(theVehicle) setElementModel(theVehicle, math.random(math.min(#vehicleIDS), math.max(#vehicleIDS)) end function onSpawn() setRandomVehicle(getPedOccupiedVehicle(source)) end addEventHandler("onPlayerSpawn", getRootElement(), onSpawn)
  2. Where can i get an upadated Geolocation Database Upadated?
  3. #Paper

    Race Stats

    I fixxed don't worry
  4. #Paper

    Race Stats

    the error is in the code that i've posted, cuz if i use the first one code i've posted the fuction wont work, instead if i use the second one it works.. so...
  5. #Paper

    Race Stats

    Ye, i deleted the code and i posted just a part...
  6. #Paper

    Race Stats

    cuz the outputChatBox doesn't happen
  7. #Paper

    Race Stats

    it's just the same
  8. #Paper

    Race Stats

    in the same lua file
  9. #Paper

    Race Stats

    I saw it in the racestates_server.lua it needs
  10. Ty, it works But, for the 2nd problem?
  11. #Paper

    Race Stats

    If i use this code: function onWasted() if state == "Running" or state == "PostFinish" then end end addEventHandler("onPlayerWasted", getRootElement(), onWasted) the function wont work, if i use this one: function onWasted() end addEventHandler("onPlayerWasted", getRootElement(), onWasted) The function works. The "state" variable is defined here: local state = "" function raceStat(newStateName) state = newStateName end addEvent("onRaceStateChanging", true) addEventHandler( "onRaceStateChanging", getRootElement(), raceStat)
  12. Oh, my bad... ty Maybe onClientGamemodeMapStart? In the resource catalougue @ Mapmanager it isn't wroten if it's just for SS...
  13. ye, i inserted these parameters, but nothing. the event for pickup is triggere from recevoting_server.lua when someone sets nextmap, i inserted that trigger triggerClientEvent("onNextMapSet", getRootElement(), getMapName(map))
  14. Nothing For the sencod problem? do you see any error?
  15. Mhh, no sry, same problem Another Problem: The function is like not triggered, nothing happens: addEvent("onPlayerPickUpRacePickup", true) function disableGhostmode() if info == "Destruction derby" then if pickupType == "vehiclechange" then if vehicleModel == 425 then outputChatBox("* Hunter Reached! Ghostmode will be diasbled in 10 seconds!", getRootElement(), 35, 107, 142) setTimer(gmoff, 100000, 1) end end end end addEventHandler("onPlayerPickUpRacePickup",getRootElement(),disableGhostmode)
  16. Just the text doesn't changes to "Random" when new map starts: function onMapStart() g_dxGUI.nextmapdisplay:text("Next Map: Random") removeEventHandler("onGamemodeMapStart", getRootElement(), onMapStart) end addEvent("onNextMapSet", true) function setNextMapText(theText) g_dxGUI.nextmapdisplay:text("Next Map: "..theText) addEventHandler("onGamemodeMapStart", getRootElement(), onMapStart) end addEventHandler("onNextMapSet", getRootElement(), setNextMapText)
  17. Mybe you need to texturize the ddf model out of mta... idk, ask to Bonox.exe
  18. rly? LoL i thought he mean the race
  19. u have to edit the race mode...
  20. #Paper

    Y Assix

    it returns the line nums?
  21. It doesn't show any error: local chat = " #ff00cc>#ffcc00> " local dd = false function handleMapInfo(mapInfo) if string.find(name, "DD", 1, true) then dd = true else dd = false end end addEvent("onClientMapStarting",true) addEventHandler("onClientMapStarting",getRootElement(),handleMapInfo) function onContact(prev, current) if dd == true then if getElementType(current) == "player" then setElementData(getVehicleOccupant(source), "hitted", getPlayerName(source)) end end end addEventHandler ("onPlayerContact", getRootElement(), onContact) function onWastedShowKilled () if dd == true then if getElementData(source, "hitted") then outputChatBox(chat.."#ffffff"..getPlayerName(source).." has been killed by "..getElementData(source, "hitted").."!", getRootElement(), 255, 255, 255, true) end end end addEventHandler("onPlayerWasted", getRootElement(), onWastedShowKilled)
  22. #Paper

    Y Assix

    Ty city! it works
×
×
  • Create New...