Jump to content

Eth

Members
  • Posts

    41
  • Joined

  • Last visited

Details

  • Gang
    That Means WAR.

Eth's Achievements

Rat

Rat (9/54)

0

Reputation

  1. addEventHandler ( "onClientClick", getRootElement() function (button, state, absoluteX, absoluteY, worldX, worldY, worldZ, element) if not isCursorShowing() then return end if element and getElementType(element) == "player" then --your code end end) You still didn't get me, I want to know if there is a way to detect if a player has clicked on an other player , I tried to use onClientClick, but the problem is that onClientClick requires you to have the cursor on in order for it to work, if the player cursor is not showed then onClientClick doesn't work and I don't want that
  2. I know, but the event doesn't trigger if the player's cursor is not on.
  3. That would work, but I want to detect if a mouse has clicked on a player so onclientkey won't work like expected
  4. as title says, onclientclick function is only executed when showcursor is true. and I am pretty sure it's something wrong in mta because I saw this page here: https://bugs.multitheftauto.com/view.php?id=2509 and I tried Jax test script, and it works only (output "clicked") if I have showcursor enabled but does nothing when showcurser is disabled, any ideas?
  5. Eth

    Animation Name

    Hello guys, please watch this video: what is this animation? thanks!
  6. hmm no, the problem is, when I use WarpPedIntoVehicle the player gets in the vehicle for One second after that he is automaticly out with no reason
  7. Hello there, Right now I have this script: triggerClientEvent (cuffedPlayer,"onPlayerunCuffed", cuffedPlayer,true) setPedAnimation(cuffedPlayer,false) setElementFrozen(cuffedPlayer,false) setElementData(cuffedPlayer,"cuffed",0) setElementData(cuffedPlayer,"tazed",0) setElementData(cuffedPlayer,"jailed",1) setElementData(cuffedPlayer,"BeingArrested",1) setElementData(playerSource,"ArrestingPlayer",otherPlayer) setElementData(playerSource,"Arresting",1) local theVehicle = getPedOccupiedVehicle ( playerSource ) warpPedIntoVehicle(cuffedPlayer, theVehicle,1) triggerClientEvent (playerSource, "showArrestMarker", playerSource,true) I put this script in /arrest ommand but when the cuffedPlayer is wrapped inside the vehicle he gets out of it and he returns back to the spawn position (I have no Idea why) "onPlayerunCuffed" client side: function onPlayerunCuffed() uncuffPlayer() end function uncuffPlayer() if isTimer ( uncuffTimer ) then killTimer(uncuffTimer) end setElementFrozen(localPlayer,false) setElementData(localPlayer,"cuffed",0) setPedAnimation(localPlayer,false) end Can anyone please help?
  8. change playerSource to source.
  9. Eth

    Lookat camera

    Hello there guys, is there any way to set player to look at the camera? I am doing character selection similar to samp one.
  10. Hello guys, I am sorry if I have posted this question on the wrong section, I was confused where to post it . recently I have been trying to understand the mapmanager resource so I followed the tutorial on the wikia about it and it's really great! but here is my question, in the wikia it says: "Basically, the "onGamemodeMapStart" event gives us the handle of the map ("startedMap"), which we used to extract the handle of the resource containing the map ("mapRoot")." but let's say I have 3 maps : map1.map,map2.map,map3.map and all of them are attached to the gamemode, which map is going to start and why?
  11. lol I finally fixed it, Instead of placing the onplayerconnect on the "onPlayerConnect" handler I put it "onPlayerJoin" lol
  12. Yes the debugscript doesn't show any type of erros and even when I try to restart the server. I tried to delete the first thePlayer and it still doesn't work
  13. addEventHandler("ShowLoginWindow",root,LoginWindowShow) addEventHandler("ShowRegisterWindow",root,RegisterWindowShow) I changed it like you told me but still it doesn't show up
×
×
  • Create New...