Sign in to follow this  

Car spawn by house.

Recommended Posts

Hi , im using the Hous_system resource, but i need a script if anyone buy a car, the car spawn by the home of the owner.

Is this possible in mta?

Share this post

Link to post

All is possible in MTA but you have to script it ...

You have to found the position where the car have to be spawned for each house and "attach" this information to the house element

( by a setElementData( yourHouse, "SpawnX, yourXPosition ), setElementData( yourHouse, "SpawnY, yourYPosition ), setElementData( yourHouse, "SpawnZ, yourZPosition ) )

Then when a player buy a car, you have to get his house and get the X,Y,Z position with getElementData

Then create his car to those coordinates.

It's not very easy for a novice to make this system :|

Share this post

Link to post

instead of using a seperate element data for each pos. Use setElementData(yourHouse, "carPos", "PosX, PosY, PosZ", true) with "gettok"

Share this post

Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.