-
Posts
2,608 -
Joined
-
Last visited
Everything posted by 12p
-
Neon objects only work at night. Look for "ballypllr". You're gonna love that object.
-
Wrong. Not a real neon I meant. I meant a solid, blue structure, cylinder-like.
-
Castillo, look at bonbom's script - what Charlie says DO makes sense. My response is whateveridontcaredowhatyouwantifyouneedhelpaskhere.
-
I don't even get your urban language. Can you be more specific? Clear? Just say what do you want.
-
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.
-
Looks very good. But I don't like high downloads >
-
addEventHandler ( "onResourceStart", getResourceRootElement ( getResourceFromName ( "scoreboard" ) ), function ( ) --do something end, false ) Maybe that?
-
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
-
If I'm right, it's TAPL.
-
math.random ( istart, iend ) In the 2nd argument of giveWeapon
-
Also I already made a solution, why do you create another one?
-
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 )
-
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
-
onZombieSpawn has a player as source, michael. That won't work.
-
Ty for the supermega fast tutorial and the other thing
-
Ty TAPL. I'll now update the wiki. I was waiting for this reply to do it hahaha
-
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.
-
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
-
If anyone is going to answer to the money client functions thing, please don't use the wiki. Base your answer in your experience.
-
I was sure getPlayerMoney didn't need any argument.
-
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?
-
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.
-
Just, stop posting all of you and let Yakuza test it. lol.
