Jump to content

Help givePed Weapon ,


Max+

Recommended Posts

Hello I tryed give the Ped a Weapon but it didnt work ,,

ClientSide ..

function start () 
    fadeCamera(true) 
    skin = createPed ( StartSkin, 2749.7502441406,-2232.7170410156,61.727611541748,60 ) 
    setCameraMatrix( 2745.8266601563,-2231.1694335938,62.25520324707, 3999.9999499991,-2607.4000244141,16.1) 
    setPedControlState(skin, 'aim_weapon', true) 
    setPedAnimation( skin, "DANCING", AnmieID[math.random(1,5)]) 
    Intro = playSound("sounds/Music.mp3",true) 
    showCursor(true) 
    showChat(false) 
    showPlayerHudComponent ( "all", false ) 
end 

i alraedy used triggerFormClientToServer like this ,

triggerServerEvent('give',localPlayer) 
  

addEvent ..  
addEventHandler.. 
function(skin) 
  
giveWeapon(skin, 34, 200 ) 
end 

...

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