Jump to content

Some help pls? (Example Inside)


Prise

Recommended Posts

Posted (edited)

So hey guys, you MAY know, but there's some scripts that I can't find, they are:

Recoil ( Gun shooting straight to the aiming place, not around it )

Example:

https://youtu.be/RLWlKOM-Gfk

Faster CJ Run ( When you tap SPACE quickly, you will sprint faster )

Example:

https://youtu.be/r4XucqsQxYQ

and

30 bullets in magazine ( I want to have 30 bullets in the magazine of my gun, not 50 )

Example:

https://youtu.be/OeL6ZQPksMU

Edited by Guest
Posted
Faster CJ Run ( When you tap SPACE quickly, you will sprint faster )

Example:

https://youtu.be/r4XucqsQxYQ

function resourceStart () 
  
 setGlitchEnabled ( "fastsprint", true ) 
  
end 
  
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) 

Posted (edited)
So ye, about that. I have to create some new files (meta.xml) or something like that? I'm new
   
  
  "..." name="..." version="..." type="script" description="..." /> 
  
        

Edited by Guest
Posted

Did I done it right?:

Sprint.lua

function resourceStart () 
  
 setGlitchEnabled ( "fastsprint", true ) 
  
end 
  
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) 

meta.xml

  
  "LoL987" name="CJ Faster Run" version="0.01" type="script" description="Faster Run while tapping space quickly" /> 
  
        

Posted
I do not understand you. Maybe can you say me the full script?

If your script name is Sprint.lua you must in meta.xml change "sprint.lua" to "Sprint.lua"

Posted

sprint.lua

function spr() 
setGlitchEnabled ( "fastsprint", true ) 
end 
addEventHandler ( "onResourceStart", root, spr ) 

meta

  
    "name" description="name" type="script" version="1.0.0" /> 
  
    

Posted

Script.lua

function setWeaponProperty 

Meta.xml

  
  "GTX" name="Recoil" version="0.01" type="script" description="Shooting straight to the point where aiming" /> 
  
        

What next? I'm new af :3

Posted

Yea, I was reading it. I don't even know HOW TO script the whole thing I mean like from the script start to the script end

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...