Jump to content

Help any one !


E-mail

Recommended Posts

Hi all iam makeing Glith script for BaseMode Players!

i have error in script

[ClientSide]

function xxx ( thePlayer, commandName ) 
    giveWeapon ( thePlayer, 2, 200 ) 
  
    setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) 
end 
addCommandHandler ( "giveweapons", givePlayerWeapons ) 

i want the Ped weapon Degal and 200 Amoo

[serverSide]

  
function resourceStart () 
    setGlitchEnabled ( "quickreload", true ) 
    setGlitchEnabled ( "fastmove", true ) 
    setGlitchEnabled ( "fastfire", true ) 
    setGlitchEnabled ( "crouchbug", true ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) 
  

Link to comment

giveWeapon is only server side so,

server side:

function xxx ( thePlayer, commandName ) 
    giveWeapon ( thePlayer, 2, 200 ) 
  
    setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) 
end 
addCommandHandler ( "giveweapons", givePlayerWeapons ) 
  
function resourceStart () 
    setGlitchEnabled ( "quickreload", true ) 
    setGlitchEnabled ( "fastmove", true ) 
    setGlitchEnabled ( "fastfire", true ) 
    setGlitchEnabled ( "crouchbug", true ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) 

Link to comment
function givePlayerWeapons ( thePlayer, commandName ) 
    giveWeapon ( thePlayer, 2, 200 ) 
  
    setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) 
end 
addCommandHandler ( "giveweapons", givePlayerWeapons ) 
  
function resourceStart () 
    setGlitchEnabled ( "quickreload", true ) 
    setGlitchEnabled ( "fastmove", true ) 
    setGlitchEnabled ( "fastfire", true ) 
    setGlitchEnabled ( "crouchbug", true ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) 

Link to comment

see

function givePlayerWeapons ( thePlayer, commandName ) 
    giveWeapon ( thePlayer, 2, 200 ) 
  
    setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) 
end 
addCommandHandler ( "giveweapons", givePlayerWeapons ) 
  
function resourceStart () 
    setGlitchEnabled ( "quickreload", true ) 
    setGlitchEnabled ( "fastmove", true ) 
    setGlitchEnabled ( "fastfire", true ) 
    setGlitchEnabled ( "crouchbug", true ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart  

?

Link to comment

The ) at the end of file.

Also WTH is

setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) 

function givePlayerWeapons ( thePlayer, commandName ) 
    giveWeapon ( thePlayer, 2, 200 ) 
end 
addCommandHandler ( "giveweapons", givePlayerWeapons ) 
  
function resourceStart () 
    setGlitchEnabled ( "quickreload", true ) 
    setGlitchEnabled ( "fastmove", true ) 
    setGlitchEnabled ( "fastfire", true ) 
    setGlitchEnabled ( "crouchbug", true ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) 

Link to comment

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...