UnKnownGuy Posted September 7, 2016 Posted September 7, 2016 Hello everybody I wanna know the script/mod for the running with weapons and it's named in some servers like Storm RPG by Combat thanks for your time
Walid Posted September 7, 2016 Posted September 7, 2016 Wrong section next time post your question here, anyways you can run with weapons by changing your walking style to sneak. Example: -- use /sneak to chnage your walking style function changeWalkStyle(player) setPedWalkingStyle(player,69) end addCommandHandler("sneak",changeWalkStyle) 1
UnKnownGuy Posted September 7, 2016 Author Posted September 7, 2016 Just now, Walid said: Wrong section next time post your question here, anyways you can run with weapons by changing your walking style to sneak. Example: -- use /sneak to chnage your walking style function changeWalkStyle(player) setPedWalkingStyle(player,69) end addCommandHandler("sneak",changeWalkStyle) I typed /sneak in Console and nothing happens What I do now?
Walid Posted September 7, 2016 Posted September 7, 2016 just copy and past my code server side then press T /sneak that's all.
UnKnownGuy Posted September 7, 2016 Author Posted September 7, 2016 (edited) Just now, Walid said: just copy and past my code server side then press T /sneak that's all. I did that and nothing Please I didn't understand I copied that: -- use /sneak to chnage your walking style function changeWalkStyle(player) setPedWalkingStyle(player,69) end addCommandHandler("sneak",changeWalkStyle) Then I typed in "T" chat /sneak and nothing happened Edited September 7, 2016 by UnKnownGuy
Walid Posted September 7, 2016 Posted September 7, 2016 4 minutes ago, UnKnownGuy said: I did that and nothing ??? run and press E or A to switch weapon.
UnKnownGuy Posted September 7, 2016 Author Posted September 7, 2016 Just now, Walid said: ??? run and press E or A to switch weapon. I wanna run with M4/AK47 and I can't run with them
Walid Posted September 7, 2016 Posted September 7, 2016 4 minutes ago, UnKnownGuy said: I wanna run with M4/AK47 and I can't run with them I'm pretty sure you don't undrestand how to use it , np try this code client side > restart your resource > switch to M4 > then run. addEventHandler("onClientPlayerWeaponSwitch", localPlayer, function (prevSlot, newSlot) if (newSlot == 5 and getPedWeapon(localPlayer, 5) == 31) then setPedWalkingStyle(localPlayer, 69) else setPedWalkingStyle(localPlayer, 0) end end )
UnKnownGuy Posted September 7, 2016 Author Posted September 7, 2016 Just now, Walid said: I'm pretty sure you don't undrestand how to use it , np try this code client side > restart your resource > switch to M4 > then run. addEventHandler("onClientPlayerWeaponSwitch", localPlayer, function (prevSlot, newSlot) if (newSlot == 5 and getPedWeapon(localPlayer, 5) == 31) then setPedWalkingStyle(localPlayer, 69) else setPedWalkingStyle(localPlayer, 0) end end ) Copy this and past it in Console??
Walid Posted September 7, 2016 Posted September 7, 2016 Just now, UnKnownGuy said: Copy this and past it in Console?? Copy and past it client side in your resource then use /restart <resourcename>
UnKnownGuy Posted September 7, 2016 Author Posted September 7, 2016 Sorry for this question but what is client side??xD
1LoL1 Posted September 7, 2016 Posted September 7, 2016 Wrong section. What do you have in meta.xml? <script src="file.lua" type="server"/> or <script src="file.lua" type="client"/> -- This is client-side ? If file.lua have in meta "client" then paste your code and use /restart <resource>
Walid Posted September 7, 2016 Posted September 7, 2016 i recommend you to read all of this : Scripting introduction
UnKnownGuy Posted September 7, 2016 Author Posted September 7, 2016 Just now, Walid said: i recommend you to read all of this : Scripting introduction Thanks I will work on it
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now