Pirulax

Members
  • Content count

    70
  • Joined

  • Last visited

Community Reputation

7 Neutral

About Pirulax

  • Rank
    Transformer
  1. DebugScript?
  2. Hello!Write me a PM if you feel like, so i can answer the question in hungarian! And, please give us a code...
  3. you should use wiki before creating a plan... if the plan fails use GOOOGlE and then forum.
  4. @pa3ck Belive me, i would comment "use /debugscript 3 and read this" everywhere, in every post.Nah, even if you know enligsh, than u can suppose whats the error..For example i never have read that Debugging turorial. P.S. bad enlgish... sometimes
  5. --//*** --//**Server-Side --//*** addEvent("warpPedIntoVehicleEvent", resourceRoot, function(veh) -- use resourceRoot if you want only to call the event from the same res, this way you can save CPU warpPedIntoVehicle(client,veh) --here i use global variable client, its always the players element who calls the function with triggerServerEvent.Its more secure then sending the player thru. end) --//*** --//**Client-Side --Use this ClientSide to warp the ped into the veh. --//*** triggerServerEvent("warpPedIntoVehicleEvent",resourceRoot) --use resourceRoot if the event is in the same resource as triggerServerEvent / triggerClientEVent, this way u cant save CPU. Btw WarpPedIntoVehicle() is a shared function.
  6. I want to help you, but i cant write a script now..Use some setElementData, and some if statements.And, if you have a custom minimap, that its much easier Btw, if the blip is created client side, i think you can destroy it with destroyElement(), but im not sure about that(and im lazy to look at the element list) Edit ==> Blip is an element.Element list ==> elements.
  7. MTA is not that kind of game which loves trailers...There will be some syncing bugs
  8. The problem is that the element data named "acc:admin" doesnt exists.. try to relog.. if that doesnt help, then just download the newest version..The newest mod is publicated by DNS.. like 6 days ago And guys, it is a leaked script... But let him open an External edit server, and i cant do some NON on it >DD
  9. I would change that root to just resourceRoot, because the eventHandler is in the same resource.You can save a little bit of cpu. addEventHandler("onColShapeHit", resourceRoot, function(player, dimension) if colshapes[source] then outputChatBox("player entered the col shape", player) end end) btw i think everything is working fine.
  10. function onClientResStart() local file = downloadFile("http://216.172.184.135:21/fastdl/soundtracks/soundtrack1.mp3") end addEventHandler("onClientResourceStart",resourceRoot,onClientResStart) function loool(filename,succ) if succ and filename == "soundtrack1.mp3" then playSound(filename) else outputChatbox("Downloading of " .. filename .. " failed!" end end addEventHandler("onClientFileDownloadComplete", resourceRoot,loool) should work.
  11. Did i mention somehwere that i want done scripts?I dont think so, i just wanted a function, a freaking in-built MTA function for it.. if theres no in-built function, than okey, i will write a lua one, and thats it... i didnt mention that i want a full script... omg Lol, good idea And freeze the player + anim, and thats it.
  12. *Can i solve this bug * im from Romania. No, you cant solve this.. this is a sync bug, MTA is good at syincing, but not when syncing towned vehicles, trains, and anything thats attached. Or maybe you can, if you disable player damage, or attach yourself to the train(i dont think that this will work..)
  13. Or just creating a simple script local posTable = {} function replaceAllWorldModels() for k,v in ipairs(getElementsByType("objects")) do --gets alll the object elemnts in the gta world local rotx,roty,rotz = getElementRotation(v) -- gets the rotation local posTable[v] = {Vector3(getElementPosition(v)),getElementModel(v),rotx,roty,rotz} -- stores the position, and such thing in a table with key of the element. removeWorldModel(getElementModel(v),1000,posTable[v][1]) -- removes the world object end for k,v in ipairs(posTable) do createObject(v[2],v[1],v[3],v[4],v[5]) -- This creates the object. end end should work fine.. but still cant understand why the hell u want to replace all the objects..this is laggy btw..