Jump to content

Paper

Members
  • Posts

    127
  • Joined

  • Last visited

Everything posted by Paper

  1. No, i have skype: skiper964
  2. How much you offer for these scripts?
  3. Paper

    [TUT] Tables

    You miss a then function addNumber(source, cmd, arg) if arg == nil then -- theres no specific value to add (here you miss a then) arg = 1 else arg = arg end randomNumbers[6] = arg --- this will add a 6th value into the table end
  4. You have to see how the script stores the datas and use the same method whit setting the data to 0 ^^
  5. function betaaldeChaufeur(thePlayer, seat, jacked) theVehicleID = getElementModel ( source ) if (theVehicleID == 420) and ( seat ~= 0 ) then driver = getVehicleOccupant(source, 0) timerMoneyTaxi = setTimer( function() givePlayerMoney (driver, 900) end, 5000, 1) destroyElement ( taxiOphaalBlip ) end end addEventHandler ("onVehicleEnter", getRootElement(), betaaldeChaufeur) This should work
  6. It's not a complicated script... anyone whit a small lua experience can make it lol
  7. You can find the models in the web and you can find the code for reapleace the model: https://wiki.multitheftauto.com/
  8. Non lo demoralizzare! Magari abbandona MTA per colpa tua!
  9. Si bè ElementData è utile se si deve passare il colore dal client al server, per esempio lo setti dal panel, se non vuoi usare il triggerServerEvent che è un casino usi l'ElementData, se poi lo vuoi salvare senza doverlo risettare appena rientri si può usare l'AccountData
  10. Strano che non lo trovi... comunque l'importante che hai risolto
  11. Si, l'ho visto, ho letto tutta la discussione, ma siccome non hai menzionato il then mi è sembrato strano...
  12. Oh ok, ma in ogni caso che ti cambia fare 2 resources separate? Anzi sarebbe anche meglio
  13. Prova questo: -- * Collision/Scale object Manager * -- noCollsTab = {} noScaleTab = {} addEventHandler("onClientResourceStart", resourceRoot, function() for i, obj in ipairs(noCollsTab) do setElementCollisionsEnabled(obj, false) end for i, obj in ipairs(noScaleTab) do setObjectScale(obj, 0) end end )
  14. usi altre funzioni dxCreateText oltre a quelle dello spectators?
  15. You are triggering the event onClientClick, if you don't insert an if statement for check what you've clicked it will show the text always, do like this: function news(clickedElement) if (clickedElement == something) then addEventHandler("onClientRender",rootElement, serverBoxDesign) end end addEventHandler ( "onClientClick", getRootElement(), news ) You want that when you click on something like a text it shows another text? You must repleace "something" in the if whit the text name, and (i think) it will work
  16. Io amo gli zombies! *-* Comunque se non mi sbaglio devi creare degli spawnpoint con l'edf, salvi il file .map e lo metti nella resource
  17. Ma il then dopo "function()"? .___. Non sapevo si dovessero mettere quando si creano funzioni di questo tipo, o forse non sapevo io che si possono mettere, ma non credo... addEventHandler ("onPlayerJoin",getRootElement(), function() then --QUA ._. local serial = getPlayerSerial(source) -- User Panel function GetInfo(g_player) local source = g_player local ip = getPlayerIP(source) local serial = getPlayerSerial(source) achUnlockedNumber(g_player) setElementData ( source ,"data.ip",ip,true) setElementData ( source ,"data.serial",serial,true)
  18. puoi provare a mettere l'ultima versione dei puma markers e modifica la mappa, ma non credo ne valga la pena...
  19. Semplice, usi setElementData per salvare il colore dell'auto, e poi usi l'evento onGamemodeMapStart e getElementData insieme a setVehicleColor per settare il colore ad ogni inizio mappa ^^
  20. evidentemente c'è qualche contrasto con qualche codice dell'userpanel, usi altre funzioni dx oltre a quelle per lo spectators? se si controlla che il nome del testo dello spectators non sia uguale a quello di altri testi in dx...
×
×
  • Create New...