MegaThorx Posted September 29, 2012 Share Posted September 29, 2012 <def name="test"> <element name="myvehicle" friendlyname="My Vehicle" icon="edf/icons/vehicle.png"> <data name="model" type="vehicleID" description="vehicle model" default="405" /> <data name="position" type="coord3d" default="0,0,0" /> <data name="rotation" type="coord3d" default="0,0,0" /> <data name="color1" type="color" description="RGB vehicle color 1" required="false" /> <data name="color2" type="color" description="RGB vehicle color 2" required="false" /> <data name="color3" type="color" description="RGB vehicle color 3" required="false" /> <data name="color4" type="color" description="RGB vehicle color 4" required="false" /> <vehicle model="!model!" rotation="!rotation!" /> </element> </edf> but i can't change the color in the mapeditor from "myvehicle" Link to comment
MegaThorx Posted October 2, 2012 Author Share Posted October 2, 2012 is this impossible for the mapeditor or what? please answer me Link to comment
50p Posted October 2, 2012 Share Posted October 2, 2012 Do not multi-post! I have used the editor couple of times but never tried element definition. You can try to change type of the data to coord3d and you may be able to change the colour then. Link to comment
MegaThorx Posted October 2, 2012 Author Share Posted October 2, 2012 i tried the coord3d but it doesn't work <data name="color1" type="color" description="RGB vehicle color 1" required="false" default="255,0,0,125" /> <data name="color2" type="color" description="RGB vehicle color 1" required="false" default="255,0,0,125" /> <data name="color3" type="color" description="RGB vehicle color 1" required="false" default="255,0,0,125" /> <data name="color4" type="color" description="RGB vehicle color 1" required="false" default="255,0,0,125" /> <data name="faction" type="selection:Zivilisten,Polizei,FBI,Bundeswehr,Reporter,Triaden,Varrios Los Aztecas,Terroristen,Mafia,Grove Street,San Fierro Rifa,Da Nang Boys,Los Santos Vagos" default="Zivilisten" /> <vehicle model="!model!" rotation="!rotation!" faction="!faction!" mycolor="!color1!,!color2!,!color3!,!color4!" /> <map edf:definitions="luna,editor_main"> <vehicle id="vehicle (Oceanic) (1)" paintjob="3" interior="0" alpha="255" model="467" plate="0B5BNDE" dimension="0" color="138,69,31,86,167,0,0,0,0,0,0,0" posX="2486.7998046875" posY="-1667.90234375" posZ="13.039228439331" rotX="0.1702880859375" rotY="0" rotZ="0"></vehicle> <factionvehicle id="factionvehicle (Stretch) (1)" model="409" faction="Zivilisten" posX="2479.3994140625" posY="-1670.69921875" posZ="13.300000190735" rotX="0" rotY="0" rotZ="0"></factionvehicle> <factionvehicle id="factionvehicle (Greenwood) (1)" model="492" faction="Zivilisten" posX="2479.2998046875" posY="-1661.2998046875" posZ="13.199999809265" rotX="0" rotY="0" rotZ="0"></factionvehicle> </map> doesn't save the color and sorry for multipost MfG MegaThorx Link to comment
50p Posted October 2, 2012 Share Posted October 2, 2012 I can't help you with this now. I hope someone who's better at making proper edf files will help you out but try not to multi post. You can also speak to us on IRC, I'm sure there will be someone who can help you out. Link to comment
MegaThorx Posted July 16, 2013 Author Share Posted July 16, 2013 I still know no soulution for it Link to comment
Wojak Posted July 16, 2013 Share Posted July 16, 2013 Property Type model vehicleID position coord3d rotation coord3d color vehiclecolors upgrades vehicleupgrades plate plate interior integer dimension integer Vehicles Name Description Value plate Number plate text for a vehicle. vehiclecolors colors of a vehicle colorID1,colorID2,colorID3,colorID4 vehicleupgrades Upgrades of a vehicle upgradeID1,upgradeID2,... 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