Jump to content

I can't entre the car


Recommended Posts

Posted

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 
 

Posted (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 by Burak5312
Posted

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?

Posted (edited)

same. No change in createVehicle function

make another lua file and specify meta.xml as server side

Edited by Burak5312
  • Like 1
Posted (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 by Burak5312

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