Jump to content

GamerDeMTA

Members
  • Posts

    559
  • Joined

  • Last visited

Everything posted by GamerDeMTA

  1. try function stopDamage ( ) addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), cancelEvent() ) end
  2. usa warpPedIntoVehicle pero es server solo!
  3. 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. ._.
  4. y xq usas un pickup? para obtener su posicion solo define x, y, z el no pidio un Pickup
  5. 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?
  6. how is that? for free because you were offering 1$?
  7. 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
  8. 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)
  9. 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?
  10. But it will make it inivisible and if someone hits it by error it will do the function no?
  11. 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?
  12. 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?
  13. but in some functions i use see: this doesnt work function test ( ) this works function test ( source )
  14. ? 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 )
  15. 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
  16. outputChatBox in client side doesn't need the argument 'to who'.
  17. 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
  18. 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.
  19. 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?
  20. 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?
  21. 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?
×
×
  • Create New...