
Paper
Members-
Posts
127 -
Joined
-
Last visited
Everything posted by Paper
-
No, i have skype: skiper964
-
How much you offer for these scripts?
-
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
-
You have to see how the script stores the datas and use the same method whit setting the data to 0 ^^
-
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
-
It's not a complicated script... anyone whit a small lua experience can make it lol
-
You can find the models in the web and you can find the code for reapleace the model: https://wiki.multitheftauto.com/
-
Non lo demoralizzare! Magari abbandona MTA per colpa tua!
-
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
-
Strano che non lo trovi... comunque l'importante che hai risolto
-
Pigroni che sono
-
Si, l'ho visto, ho letto tutta la discussione, ma siccome non hai menzionato il then mi è sembrato strano...
-
Oh ok, ma in ogni caso che ti cambia fare 2 resources separate? Anzi sarebbe anche meglio
-
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 )
-
usi altre funzioni dxCreateText oltre a quelle dello spectators?
-
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
-
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
-
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)
-
puoi provare a mettere l'ultima versione dei puma markers e modifica la mappa, ma non credo ne valga la pena...
-
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 ^^
-
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...
-
non funziona?