IMyth Posted July 10, 2019 Share Posted July 10, 2019 How can ı Run With Heavy Weapons ? Like M4,Sniper ? And How Can I Get Dual Uzi,Sawed Off ? Link to comment
Scripting Moderators ds1-e Posted July 10, 2019 Scripting Moderators Share Posted July 10, 2019 1 hour ago, IMyth said: How can ı Run With Heavy Weapons ? Like M4,Sniper ? And How Can I Get Dual Uzi,Sawed Off ? https://wiki.multitheftauto.com/wiki/SetWeaponProperty Link to comment
HassoN Posted July 11, 2019 Share Posted July 11, 2019 14 hours ago, IMyth said: How can ı Run With Heavy Weapons ? Like M4,Sniper ? And How Can I Get Dual Uzi,Sawed Off ? To sprint with heavy weapons use: setPedWalkingStyle -- with MOVE_BLINDMAN 127 or MOVE_SNEAK 69 Link to comment
IMyth Posted July 11, 2019 Author Share Posted July 11, 2019 function onClientResourceStart() setPedWalkingStyle(localPlayer,126) end addEventHandler("onClientResourceStart",resourceRoot, onClientResourceStart) This is Lua. <meta> <info author="FMD Battlefield" version="1.0" type="script" /> <script src="walkstyle.Lua" type="server" /> </meta> This is meta So why is dont working this codes ?? Link to comment
Scripting Moderators ds1-e Posted July 11, 2019 Scripting Moderators Share Posted July 11, 2019 26 minutes ago, IMyth said: function onClientResourceStart() setPedWalkingStyle(localPlayer,126) end addEventHandler("onClientResourceStart",resourceRoot, onClientResourceStart) This is Lua. <meta> <info author="FMD Battlefield" version="1.0" type="script" /> <script src="walkstyle.Lua" type="server" /> </meta> This is meta So why is dont working this codes ?? Quote function onClientResourceStart() setPedWalkingStyle(localPlayer,126) end addEventHandler("onClientResourceStart",resourceRoot, onClientResourceStart) Quote <meta> <info author="FMD Battlefield" version="1.0" type="script" /> <script src="walkstyle.Lua" type="server" /> </meta> Change to client in meta.xml Link to comment
IMyth Posted July 11, 2019 Author Share Posted July 11, 2019 1 hour ago, majqq said: <meta> <info author="FMD Battlefield" version="1.0" type="script" /> <script src="walkstyle.Lua" type="server" /></meta> Its True Right ? Link to comment
Scripting Moderators ds1-e Posted July 11, 2019 Scripting Moderators Share Posted July 11, 2019 30 minutes ago, IMyth said: Its True Right ? No. You use client-side event, and define client-side script as server-side. This won't work. Link to comment
IMyth Posted July 11, 2019 Author Share Posted July 11, 2019 1 hour ago, majqq said: No. You use client-side event, and define client-side script as server-side. This won't work. function showObjectBrowser ( id ) -- code here end addEvent( "doShowObjectBrowser", true ) addEventHandler( "doShowObjectBrowser", getRootElement(), showObjectBrowser ) This is client-side triggerClientEvent ( somePlayer, "doShowObjectBrowser", getRootElement(), 1034 ) And this is server-side right ? Link to comment
HassoN Posted July 11, 2019 Share Posted July 11, 2019 50 minutes ago, IMyth said: function showObjectBrowser ( id ) -- code here end addEvent( "doShowObjectBrowser", true ) addEventHandler( "doShowObjectBrowser", getRootElement(), showObjectBrowser ) This is client-side triggerClientEvent ( somePlayer, "doShowObjectBrowser", getRootElement(), 1034 ) And this is server-side right ? Yes. Link to comment
IMyth Posted July 11, 2019 Author Share Posted July 11, 2019 11 minutes ago, HassoN said: Yes. I know These are Client-side and Server-Side,Now what should ı do Please Help Me I Want to Learn Scripts. If u are avaible Link to comment
HassoN Posted July 11, 2019 Share Posted July 11, 2019 1 minute ago, IMyth said: I know These are Client-side and Server-Side,Now what should ı do Please Help Me I Want to Learn Scripts. If u are avaible What's your question? Link to comment
IMyth Posted July 11, 2019 Author Share Posted July 11, 2019 3 minutes ago, HassoN said: What's your question? So This code should be added on meta file right ? Link to comment
HassoN Posted July 11, 2019 Share Posted July 11, 2019 Meta: <meta> <info author="FMD Battlefield" version="1.0" type="script" /> <script src="walkstyle.Lua" type="client" /> </meta> Lua function onClientResourceStart() setPedWalkingStyle(localPlayer,126) end addEventHandler("onClientResourceStart",resourceRoot, onClientResourceStart) Link to comment
IMyth Posted July 11, 2019 Author Share Posted July 11, 2019 2 minutes ago, HassoN said: Meta: <meta> <info author="FMD Battlefield" version="1.0" type="script" /> <script src="walkstyle.Lua" type="client" /> </meta> Lua function onClientResourceStart() setPedWalkingStyle(localPlayer,126) end addEventHandler("onClientResourceStart",resourceRoot, onClientResourceStart) It will working right ? Link to comment
HassoN Posted July 11, 2019 Share Posted July 11, 2019 Just now, IMyth said: It will working right ? If you try it. Yes. Link to comment
IMyth Posted July 11, 2019 Author Share Posted July 11, 2019 Just now, HassoN said: If you try it. Yes. Okey ı'll try it 5 minutes ago, HassoN said: If you try it. Yes. I Tried but it is not working so ı cant run with heavy weapons... Link to comment
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