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