xeon17 Posted October 19, 2014 Share Posted October 19, 2014 Why this doesen't work? Maverick1 = vehicle:create(487,1290.56885,-794.12842,96.55389) Maverick1:setColor(255, 0, 0) Link to comment
crismar Posted October 19, 2014 Share Posted October 19, 2014 Maverick1:setColor(255, 0, 0, 255) Try setColor takes 4 integer arguments, RGB and I belive Alpha. Link to comment
Saml1er Posted October 19, 2014 Share Posted October 19, 2014 (edited) Actually 3, RGB. Alpha is optional. Btw does it create the vehicle? EDIT: ... I just checked it has 4 arguements and there is no alpha. Go to wiki and check for setVehicleColor. Scroll down and you'll see it has 4 arguements. 3 arguements are gonna be in mta 1.5 Edited October 19, 2014 by Guest Link to comment
xeon17 Posted October 19, 2014 Author Share Posted October 19, 2014 Actually 3, RGB. Alpha is optional. Btw does it create the vehicle? No, there is a error ''no global class''maverick1'' got nil. Link to comment
crismar Posted October 19, 2014 Share Posted October 19, 2014 Actually 3, RGB. Alpha is optional. Btw does it create the vehicle?EDIT: ... I just checked it has 4 arguements and there is no alpha. Go to wiki and check for setVehicleColor. Scroll down and you'll see it has 4 arguements. 3 arguements are gonna be in mta 1.5 https://wiki.multitheftauto.com/wiki/SetVehicleColor Maverick1 = Vehicle(487, Vector3(0, 0, 0)) Maverick1:setColor(255, 0, 0, 255) Link to comment
Saml1er Posted October 19, 2014 Share Posted October 19, 2014 Actually 3, RGB. Alpha is optional. Btw does it create the vehicle?EDIT: ... I just checked it has 4 arguements and there is no alpha. Go to wiki and check for setVehicleColor. Scroll down and you'll see it has 4 arguements. 3 arguements are gonna be in mta 1.5 https://wiki.multitheftauto.com/wiki/SetVehicleColor Maverick1 = Vehicle(487, Vector3(0, 0, 0)) Maverick1:setColor(255, 0, 0, 255) Apparently you don't read. Warning: Informations below apply to MTA:SA v1.0.5 and older! This is for MTA 1.0.5. Link to comment
.:HyPeX:. Posted October 20, 2014 Share Posted October 20, 2014 Did you remember to enable OOP in your script? Link to comment
zocken212 Posted October 21, 2014 Share Posted October 21, 2014 Have you tried veh = Vehicle.create(...) ? Link to comment
xeon17 Posted October 21, 2014 Author Share Posted October 21, 2014 Did you remember to enable OOP in your script? No,how to enable? Link to comment
zocken212 Posted October 21, 2014 Share Posted October 21, 2014 No,how to enable? add this to your meta: <oop>true</oop> Link to comment
xeon17 Posted October 21, 2014 Author Share Posted October 21, 2014 No,how to enable? add this to your meta: <oop>true</oop> Thanks it works now! 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