davedavy Posted March 12, 2011 Share Posted March 12, 2011 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? Link to comment
Moderators Citizen Posted March 12, 2011 Moderators Share Posted March 12, 2011 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 Link to comment
qaisjp Posted March 12, 2011 Share Posted March 12, 2011 instead of using a seperate element data for each pos. Use setElementData(yourHouse, "carPos", "PosX, PosY, PosZ", true) with "gettok" 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