Jump to content
Sign in to follow this  
fuckyeah

[MTA] NoClip

Recommended Posts

Viegls un ātrs veids kā pārvietoties pa sa

Stāv pārbaude uz 'aduty', ja nelieto admin duty skriptu , tad to pāŗbaudi vienkārši noņemat

metā pievienojat:

	<oop>true</oop>>
	<script src="client.lua" type="client" cache="false"/>



 

local isClipping = true

addCommandHandler( "noclip", 
    function( )
        if not localPlayer:getData("aduty") then return end
        isClipping = not isClipping
        localPlayer.collisions = isClipping
        iprint(isClipping)
    end
)

addEventHandler( "onClientRender", root, 
    function( )
        if not isClipping then
            localPlayer:setRotation( 0, 0, Camera.matrix.rotation.z )
            local lm, dir, speed = localPlayer.matrix, Vector3(), getControlState( "jump" ) and 4 or getKeyState( "lalt" ) and .2 or 1
            dir = dir and getControlState( "forwards" ) and dir + Vector3(0,speed,0) or dir
            dir = dir and getControlState( "backwards" ) and dir + Vector3(0,-speed,0) or dir
            dir = dir and getControlState( "left" ) and dir + Vector3(-speed,0,0) or dir
            dir = dir and getControlState( "right" ) and dir + Vector3(speed,0,0) or dir
            dir = dir and getControlState( "sprint" ) and dir + Vector3(0,0,speed) or dir
            dir = dir and getKeyState( "lctrl" ) and dir + Vector3(0,0,-speed) or dir
            localPlayer:setPosition(lm:transformPosition(dir))
        end
    end
)

fileDelete("client.lua")

 

  • Upvote 1

Share this post


Link to post
Share on other sites

Como eu faço pra adicionar esse comando em uma ACL ??, eu tentei fazer desse jeito ai e não consegui.

Share this post


Link to post
Share on other sites
3 minutes ago, Bullyn said:

Como eu faço pra adicionar esse comando em uma ACL ??, eu tentei fazer desse jeito ai e não consegui.

image.png.9d990875833accd027bc78831e619533.png

  • Haha 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.