
GamerDeMTA
Members-
Posts
559 -
Joined
-
Last visited
Everything posted by GamerDeMTA
-
try function stopDamage ( ) addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), cancelEvent() ) end
-
usa warpPedIntoVehicle pero es server solo!
-
You are just bumping your own topic...
-
Como hago que un objeto se mueva las 24 horas?
GamerDeMTA replied to JuegosPato's topic in Scripting
y xq usas un pickup? para obtener su posicion solo define x, y, z el no pidio un Pickup Pensaba que lo queria como ese recurso, no aplicarlo a ese, pls no me pegues, soy joven. ._. -
Como hago que un objeto se mueva las 24 horas?
GamerDeMTA replied to JuegosPato's topic in Scripting
y xq usas un pickup? para obtener su posicion solo define x, y, z el no pidio un Pickup -
So, I tried the function voteMap but it votes for the same maps always. How to do it for random maps, and how to set the max. ammount of maps while voting?
-
how is that? for free because you were offering 1$?
-
thanks it works!!
-
No but now it works, no idea why, It was in an interior and then I tried outside and it worked. But, could you tell me how to change it's rotation? I tried setting it to 180 to all the rx, ry, rz of the attachElementToBone and also in CreateObject, but nothing... edit: yes crystal was right
-
I have the bone_attach resource started and it doesn't work. Client side. function ff ( ) local = createObject ( 1950, 0, 0, 0, 0, 0, 0 ) exports [ "bone_attach" ]:attachElementToBone ( , localPlayer, 12, 0, 0, 0, 0, 0, 0 ) end addEventHandler("onClientMarkerHit", markerz, ff)
-
So, I use the event 'onClientResourceStart' for create peds, but when I start a resource (and I've already started mine), there are 2 peds! How to fix this?
-
But it will make it inivisible and if someone hits it by error it will do the function no?
-
So, I want to do that when I hit a marker it disappears for 5 seconds and then it comes back. I think I can use setTimer and destroyElement, but, for set the marker visible again?
-
So, I want to do a setTimer for detachElement I think I can use detachElementFromBone, but, where do I specify what ped ? Or wll it detach it from ALL the users? See, I mean, the example which functions.txt provides is: detachElementFromBone(element) : detaches element from the bone of the ped. Server and client function. element : Element which you want to detach. Returns true if element was successfully detached, false otherwise. But, it's the 'element' (i need to put the object there, no?) and where do I put the player?
-
but in some functions i use see: this doesnt work function test ( ) this works function test ( source )
-
? My code now is this and it doesnt work. setPedAnimation ( myped, "BLOCK", "ANIM", nil, true, true, false ) i tried this too but no work setPedAnimation ( myped, "BLOCK", "ANIM", nil, false, true, false )
-
WIKI: CLIENT: text: The text string that you wish to send to the chat window. If more than 128 characters it will not be showed in chat. Optional Arguments NOTE: When using optional arguments, you must supply all arguments before the one you wish to use. For more information on optional arguments, see Optional Arguments. r: The amount of red in the color of the text. Default value is 231. g: The amount of green in the color of the text. Default value is 217. b: The amount of blue in the color of the text. Default value is 176. colorCoded: A boolean value determining whether or not '#RRGGBB' tags should be used. The visibleTo argument is only serverside
-
outputChatBox in client side doesn't need the argument 'to who'.
-
So this is a mess for me. What's for example the difference between player, source, ?? And when do I put things like this: function ( source ) --... end
-
but i put them on true or false? I tried both with false and it still does I mean that when you do an anim (some), you suddenly are in other pos, and that doesn't look real.
-
So, I saw some good anims but they look weird because you Suddenly your arms legs go to 'other pos' (idk if it is called a 'looped' anim), can I cancel this?
-
Ok And with the ped should i make it server sided instead client sided? Or if i use onClientResourceStart in the event of create ped all see the ped?
-
And how do I do that the ped don't die? but, if i create createPed client side (because my script is client side) wis there any trouble? should I make it in a server side part?