xeon17 Posted October 19, 2014 Posted October 19, 2014 Why this doesen't work? Maverick1 = vehicle:create(487,1290.56885,-794.12842,96.55389) Maverick1:setColor(255, 0, 0)
crismar Posted October 19, 2014 Posted October 19, 2014 Maverick1:setColor(255, 0, 0, 255) Try setColor takes 4 integer arguments, RGB and I belive Alpha.
Saml1er Posted October 19, 2014 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
xeon17 Posted October 19, 2014 Author 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.
crismar Posted October 19, 2014 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)
Saml1er Posted October 19, 2014 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.
.:HyPeX:. Posted October 20, 2014 Posted October 20, 2014 Did you remember to enable OOP in your script?
xeon17 Posted October 21, 2014 Author Posted October 21, 2014 Did you remember to enable OOP in your script? No,how to enable?
zocken212 Posted October 21, 2014 Posted October 21, 2014 No,how to enable? add this to your meta: <oop>true</oop>
xeon17 Posted October 21, 2014 Author Posted October 21, 2014 No,how to enable? add this to your meta: <oop>true</oop> Thanks it works now!
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