Jump to content

12p

Members
  • Posts

    2,608
  • Joined

  • Last visited

Everything posted by 12p

  1. Neon objects only work at night. Look for "ballypllr". You're gonna love that object.
  2. Wrong. Not a real neon I meant. I meant a solid, blue structure, cylinder-like.
  3. Castillo, look at bonbom's script - what Charlie says DO makes sense. My response is whateveridontcaredowhatyouwantifyouneedhelpaskhere.
  4. I don't even get your urban language. Can you be more specific? Clear? Just say what do you want.
  5. SERVER-ONLY: function getMoney () for i, p in ipairs ( getElementsByType ( "player" ) ) do --We get a table with all players setElementData ( p, "Money", getPlayerMoney ( p ) ) --To every player, we get its money and set it as element data end end setTimer ( getMoney, 5000, 0 ) getMoney ( ) Btw this is not very efficient and uses very much server CPU. You could try to make another system, like, instead of using default GTA money, use element data for it. And create custom functions to work with the element data.
  6. 12p

    Snowmode v2

    Looks very good. But I don't like high downloads >
  7. addEventHandler ( "onResourceStart", getResourceRootElement ( getResourceFromName ( "scoreboard" ) ), function ( ) --do something end, false ) Maybe that?
  8. On Map Editor, write "bally", then search a blue object (not the ring, not the building, there is a little structure, blue and tall). Use it. It's one of the most used elements when giving "credits" inside the map
  9. If I'm right, it's TAPL.
  10. (Chile FTW ) No problem
  11. math.random ( istart, iend ) In the 2nd argument of giveWeapon
  12. ...Good point
  13. Also I already made a solution, why do you create another one?
  14. 12p

    need help

    First of all, don't bump your topics. We (at least me) hate that. Maybe this will work. local player = getLocalPlayer ( ) local fpsmode = false bindKey ( "r", "down", function ( ) fpsmode = not fpsmode toggle ( ) end ) function toggle ( ) if isPedInVehicle ( player ) and fpsmode then addEventHandler ( "onClientPreRender", setFPSCamera ) outputChatBox ( "View Mode |on|", 0 , 255, 0 , true) else removeEventHandler ( "onClientPreRender", setFPSCamera ) setCameraTarget ( player ) outputChatBox ( "View Mode |OFF|", 255, 255, 255, true ) end end addEventHandler ( "onClientPlayerVehicleEnter", player, toggle ) addEventHandler ( "onClientPlayerVehicleExit", player, toggle )
  15. I just understood my mistake and why all doesn't work. CLIENT. addEvent("Zomb_STFU",true) addEventHandler("Zomb_STFU",root, function ( zomb ) triggerServerEvent ( "onZombieSpawned", zomb ) end) SERVER: addEvent("onZombieSpawned",true) addEventHandler("onZombieSpawned",root, function ( ) giveWeapon ( source, 8, 1, true ) end) That should work
  16. onZombieSpawn has a player as source, michael. That won't work.
  17. 12p

    Various

    Ty for the supermega fast tutorial and the other thing
  18. 12p

    Various

    Ty TAPL. I'll now update the wiki. I was waiting for this reply to do it hahaha
  19. 12p

    Various

    Okay, thank you very much. And what about the first question? Does client getPlayerMoney need any argument, in fact? Or the wiki is wrong with it? I remember it didn't need any.
  20. setElementFrozen setVehicleHandling aren't highlighted within [ code=lua ] or [ lua ] tags. setElementFrozen setVehicleHandling Here's documentation, so you can check these function aren't outdated and should work on these tags: https://wiki.multitheftauto.com/wiki/SetElementFrozen https://wiki.multitheftauto.com/wiki/SetVehicleHandling
  21. 12p

    Various

    If anyone is going to answer to the money client functions thing, please don't use the wiki. Base your answer in your experience.
  22. 12p

    Various

    I was sure getPlayerMoney didn't need any argument.
  23. 12p

    Various

    In client, the use of getPlayerMoney returns local player's money and doesn't need any argument. For setPlayerMoney, only needs 1 argument. It sets local player's money. Am I right? Also, what happens if I replace any MTA built-in function with my own? For example, instead of built-in setPlayerMoney, I create my own custom function, and call it setPlayerMoney too. If I use it on my script file, what happens to MTA? Does it use the custom or the built-in function?
  24. addEvent("Zomb_STFU",true) addEventHandler("Zomb_STFU",root, function ( zomb ) if zomb and getElementType ( zomb ) == "ped" then giveWeapon ( zomb, 8, 1, true ) outputChatBox ( "zomb with weapon!" ) end outputChatBox ( "zombie spawned!" ) end) Try it and tell me what does it say when a zombie spawns.
  25. Just, stop posting all of you and let Yakuza test it. lol.
×
×
  • Create New...