Khalil Cherif Posted June 19, 2023 Share Posted June 19, 2023 I'm not a programmer but want to test the cars in the map editor by changing textures etc... Here's the block of code function applySkin() txd = engineLoadTXD("mod.txd", 411) engineImportTXD(txd, 411) dff = engineLoadDFF("mod.dff", 411) engineReplaceModel(dff, 411) local x,y,z = getElementPosition(localPlayer) local veh = createVehicle(411,x+2,y+2,z+1) setVehicleColor(veh, 255, 255, 255, 255, 255, 255) end addEventHandler("onClientResourceStart",resourceRoot, function () setTimer ( applySkin, 300, 1) end) the problem is I can't get in the car Link to comment
Khalil Cherif Posted June 19, 2023 Author Share Posted June 19, 2023 Only those files I got, nothing else Link to comment
βurak Posted June 19, 2023 Share Posted June 19, 2023 (edited) You can't ride the cars on the client side, create the car on the server side You can't ride the cars on the client side, create the car on the server side You can't ride the cars on the client side, create the car on the server sid Edited June 19, 2023 by Burak5312 Link to comment
Khalil Cherif Posted June 19, 2023 Author Share Posted June 19, 2023 All want is to test that card mod , there's no solution to keep the block of code? 5 hours ago, Burak5312 said: create the car on the server side You can't ride the cars on the client side, create the car on the server side You can't ride the cars on the client side, create the car on the server sid and also how can I create a car on the server side? Link to comment
βurak Posted June 19, 2023 Share Posted June 19, 2023 (edited) same. No change in createVehicle function make another lua file and specify meta.xml as server side Edited June 19, 2023 by Burak5312 1 Link to comment
Khalil Cherif Posted June 20, 2023 Author Share Posted June 20, 2023 I got you, it works !thanks for help , you can close that topic Link to comment
βurak Posted June 20, 2023 Share Posted June 20, 2023 (edited) You're welcome. If there's anything else you don't know, open a topic, I'll help as much as I can. Edited June 20, 2023 by Burak5312 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