Jump to content

OOP


xeon17

Recommended Posts

Posted

Why this doesen't work?

Maverick1 = vehicle:create(487,1290.56885,-794.12842,96.55389)  
Maverick1:setColor(255, 0, 0) 

A unique GangWar gamemode waiting for you!
Click here for more information.

560x95_FFFFFF_FF9900_000000_000000.png

Posted
  
Maverick1:setColor(255, 0, 0, 255) 
  

Try :)

setColor takes 4 integer arguments, RGB and I belive Alpha.

Contact me if you are looking for a Web Developer.

3rd of October 2014 - Founder of RomaniaZ

Posted (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 by Guest
Posted
Actually 3, RGB. Alpha is optional. Btw does it create the vehicle?

No, there is a error ''no global class''maverick1'' got nil.

A unique GangWar gamemode waiting for you!
Click here for more information.

560x95_FFFFFF_FF9900_000000_000000.png

Posted
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) 
  

Contact me if you are looking for a Web Developer.

3rd of October 2014 - Founder of RomaniaZ

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

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