Jump to content

Help givePed Weapon ,


Max+

Recommended Posts

Posted

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 

...

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

Client-side elements do not exist in the server. You can't use the client-side elements as valid element values on the server.

-

Posted

so what i should do CrystalMv ,

Edit# It didn't worked , And No Errors,

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

alcholistu ,

it dosn't work ,

i dont know what is the problem :(

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

i will try there is an clientside elements, that's the problem ,

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

I could not do it ,

It's ok ,

Thank's You All For Responding ,

Topick Closed ,

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

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