ddedo709 Posted September 5, 2015 Share Posted September 5, 2015 (edited) a Edited December 23, 2015 by Guest Link to comment
0 Noki Posted September 5, 2015 Share Posted September 5, 2015 Don't use the tilde, use either ' or ", depending on your keyboard layout in the console. Link to comment
0 ddedo709 Posted September 5, 2015 Author Share Posted September 5, 2015 What are you talking about? i don't understanding.. T.T the ' or " in the map editor? Link to comment
0 Noki Posted September 5, 2015 Share Posted September 5, 2015 I was responding to the title itself. However, I'm here so I might as well tell you the rest. I'm assuming you have an account in your local server with admin rights. So, load into map editor, bring up your console, and log in. From there, write 'start runcode'. From there, write 'crun' followed by your code. But don't do the whole thing, just parts of it at a time. "crun col = engineLoadCOL(':resourceName/GTAV/dt1_24_bd_a_.col') dff = engineLoadDFF(':resourceName/GTAV/dt1_24_bd_a_.dff', 0) engineReplaceModel(dff, 10905) engineReplaceCOL(col, 10905)" Run something like that, where resourceName is the name of the resource in which they are declared in the meta file. Also make sure that resource is started. However, loading them in via runcode is slow and will probably not work. You're better off just putting them all in one resource, and starting that resource after you have logged into your account in the map editor. Link to comment
0 ddedo709 Posted September 5, 2015 Author Share Posted September 5, 2015 like this? http://image.kilho.net/8QcG should i run all code one by one? Link to comment
0 Noki Posted September 5, 2015 Share Posted September 5, 2015 crun means client run, which runs code client side. You cannot run client-side code in the console, as the console is the server itself. Put it in a .lua script and make it a new resource. Link to comment
0 ddedo709 Posted September 5, 2015 Author Share Posted September 5, 2015 .lua script is what mean? examply like this? http://image.kilho.net/8Qdy and how make it a new resource? please understand me because i am beginner in mta.. Link to comment
0 Noki Posted September 5, 2015 Share Posted September 5, 2015 https://wiki.multitheftauto.com/wiki/Resources https://wiki.multitheftauto.com/wiki/Meta.xml Link to comment
0 ddedo709 Posted September 5, 2015 Author Share Posted September 5, 2015 so where was 'crun' written? and thank you for your help to my inexperience Link to comment
0 Noki Posted September 5, 2015 Share Posted September 5, 2015 I would strongly recommend you use resources for this. Enter your map editor server => log in => start runcode => open console => crun Link to comment
0 ddedo709 Posted September 5, 2015 Author Share Posted September 5, 2015 what is relation new resource with crun? crun just is ((should i type all code? when i will be using crun))) what mean new resource? Link to comment
0 Noki Posted September 6, 2015 Share Posted September 6, 2015 I gave your two possible methods to do. One method is more efficient than the other. https://wiki.multitheftauto.com/wiki/Resourceshttps://wiki.multitheftauto.com/wiki/Meta.xml Read about resources. They contain one or more .lua files and a meta.xml file. Paste your code (engineLoadTXD and all of that stuff) into a .lua file. Declare that .lua file in the meta.xml with . Then, put those two files in a folder, and place that folder in /server/mods/deathmatch/resources/. Load up map editor, log in and type "start" followed by the name of your resource (which is the name of the folder your script is in). Link to comment
0 ddedo709 Posted September 15, 2015 Author Share Posted September 15, 2015 Like This? step1: http://image.kilho.net/8SGA step2: http://image.kilho.net/8SGC step3: http://image.kilho.net/8SGD and what should i do? Type "start testresource", using console with F8 in 'game'? Link to comment
0 Noki Posted September 16, 2015 Share Posted September 16, 2015 Yes, that will work. But make sure you are logged in in-game and you have admin access in the ACL.xml file (/server/mods/deathmatch/ACL.xml). Link to comment
0 ddedo709 Posted September 16, 2015 Author Share Posted September 16, 2015 Sorry i have done login with admin account by wiki explanation Link to comment
0 ddedo709 Posted September 19, 2015 Author Share Posted September 19, 2015 i have done following to your advice and but it isn't not working and cause crashing May mta limit the object number replaced with custom object? Link to comment
Question
ddedo709
a
Edited by GuestLink to comment
15 answers to this question
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