Jump to content

spaghettikiller

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

503 profile views

spaghettikiller's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. No i’m not, i just like some of their scripts but my server is going to be way different. Thank you for the code, by the way.
  2. When he is changing the position by clicking on the map.
  3. Hello, a lot of you may know the Grafuroam or SAAF server in MTA. I'm trying to make a script where player gets parachute and is forced to fall with it when he's changing his position. Now, the question is. How do i make it?
  4. There was a bug where player could still shoot when he pressed only mouse1 button. So i changed code a bit and now it's not happening. function togglePlayerControl(weapon) toggleControl("fire", false) if getKeyState( "mouse1" ) == true and getKeyState( "mouse2" ) == true then toggleControl("fire", true) end end addEventHandler ( "onClientRender", root, togglePlayerControl)
  5. @Fist still doesn't work, tried both client and server side. I wrote meta.xml properly i hope <meta> <info version="1.0.0" type="script" name="toggle" /> <script src="toggle.lua" type="client" /> </meta>
  6. Hello, i want to make a script where player is able to shoot only when he's aiming, but shooting is disabled when he's not aiming. Here's my code: local localPlayer = getLocalPlayer() function togglePlayerControl(weapon) toggleControl("fire", false) if isPedAiming(localPlayer) then toggleControl("fire", true) end end addEventHandler ( "onClientResourceStart", getResourceRootElement(), togglePlayerControl) Now, player cannot shoot when he's not aiming, and that's good. But he cannot shoot when he's aiming too. How do i fix it? I'm not really good in scripting.
×
×
  • Create New...