Jump to content

I can't entre the car


Recommended Posts

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

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
Link to comment

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

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