R.I.P Logic

Members
  • Content Count

    160
  • Joined

  • Last visited

Community Reputation

3 Neutral

About R.I.P Logic

  • Rank
    Busta
  • Birthday 09/11/2003

Details

  • Location
    England

Recent Profile Visitors

300 profile views
  1. R.I.P Logic

    Warp player into vehicles

    I tried it using a simple code as a test: I tried in server side as: car = createVehicle( 411, 0, 0, 1, 0, 0 , 0) function testing() warpPedIntoVehicle( source, car) end addCommandHandler("w", testing) In client side as: car = createVehicle( 411, 0, 0, 1, 0, 0 , 0) function testing() warpPedIntoVehicle( localPlayer, car) end addCommandHandler("w", testing) At first I tried to warp only 1 player in the car, didn't work, in client side it's only for create peds as I saw at warpPedIntoVehicle but same at server side, it gave me nil at /debugscript 3
  2. R.I.P Logic

    Warp player into vehicles

    I need to warp players into vehicles, 10 players... When I use warpPedIntoVehicle they gave me a warning at /debugscript 3 that's they want a Ped arguments and the player return to nil. Anyone has a idea?
  3. R.I.P Logic

    Animations stuff

    I need to ask, about triggerClientEvent which root should I use which represent server? Nope, also didn't work XD
  4. R.I.P Logic

    Animations stuff

    hm trying XD Nope, didn't work, as always the body move but others can't see the animation, only I can
  5. R.I.P Logic

    Animations stuff

    Alright, thanks
  6. R.I.P Logic

    Animations stuff

    I tried to do it like this, well the animation worked, but couldn't see my friend making the animation... I understand that the function should be added at server side so all can see it but I'm still trying to find a way to make that work... if someone have a solution please share it with us. ( Us because that won't just help me, it will help too many other developers. )
  7. R.I.P Logic

    Some Problems..

    Hey, I've some problems in engineReplaceAnimation, I've added some new animations but the thing is I'm adding a walk style into it and I used the walk style id "69" it totaly worked using setElementData so I make a new walk style using the same walk style id but using setElementData so I can change the animations, but the thing is I tried to use setTimer, but it's like bugging because I've used engineReplaceAnimation and to set it back I used engineRestoreAnimation, so it's like: function test() if ( getElementData( localPlayer, "ModeOn" ) == "true" ) then local customBlockNames = "NewWalkStyle" local IFP = engineLoadIFP( "walkStyles/RIPeZpack.ifp", customBlockNames ) engineReplaceAnimation( localPlayer, "ped", "climb_idle", customBlockNames, "CLIMB_idle" ) elseif ( getElementData( localPlayer, "ModeOn" ) == "false" ) then engineRestoreAnimation( localPlayer, "ped", "climb_idle") end end setTimer( test, 1000, 0) When I do the animation of climb_idle .. Sometimes it do it twice sometimes and too many other problems, I knew that it's from the setTimer because on checking each 1 second it will replace the animation each 1 second so I need to find a way another of setTimer, ofc not onClientRender because it will bug the animation 🤣 already tested, so I wanted to ask if I can make something like add a event handler which is, "onClientChangeWalkStyle" so any ideas?
  8. R.I.P Logic

    is key has been pressed ..

    Thanks a lot, I'll go check about it at the MTA wiki pedia..
  9. R.I.P Logic

    is key has been pressed ..

    I need to check if a key has been pressed.. Example I need to check if the key " space " has been pressed then it's like..; function theBinds() if ( is the key space has been pressed.. ) then -- bindKey( "arrow_u", "down", a) bindKey( "arrow_d", "down", b) bindKey( "arrow_l", "down", c) bindKey( "arrow_r", "down", d) else unBindKey( "arrow_u", "down", a) unBindKey( "arrow_d", "down", b) unBindKey( "arrow_l", "down", c) unBindKey( "arrow_r", "down", d) end end addEvent("setBinds", true) addEventHandler("setBinds", root, theBinds) Is there a way that will make me check if a key has been pressed?
  10. R.I.P Logic

    Animations stuff

    Thank you all, now I understand, you mean the setPedAnimation should be at Server Side, because if it was on Client Side only the player will see it. Thanks again
  11. R.I.P Logic

    Animations stuff

    Well yeah, that's the problem
  12. R.I.P Logic

    Animations stuff

    It's in a folder.. folder name is parkourFiles It work fine but the thing is if you do the animation, only you can see yourself making that animation... Another player will see you moving not animating
  13. R.I.P Logic

    Animations stuff

    local customBlockName = "parkour" local parkourIFP = engineLoadIFP( "parkourFiles/parkour.ifp", customBlockName ) function setanimation( _, animationName ) if ( parkourIFP ) then setPedAnimation( localPlayer, customBlockName, animationName ) end end addCommandHandler( "animation", setanimation ) I was testing the parkour.ifp, the file is from https://wiki.multitheftauto.com/wiki/EngineReplaceAnimation , anyway I downloaded that parkour.ifp file and I add it..... but the problem is while I'm using example /animation HandPlant I don't see him doing the animation, I see his body moving nothing else.. Can anyone help me?
  14. R.I.P Logic

    setPedWalkingStyle...

    Thanks a lot, you're helpful as ever.
  15. R.I.P Logic

    setPedWalkingStyle...

    Hey guys I'm trying to add on my server a new walk style but the things.. I'm trying to find a way to add a new ID for walkstyles.. Is there a way so I can do that?