IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Buyable House

 How can I make a BUYABLE house?
 
sci4me  
Posted: Thursday, Jun 23 2011, 01:56
Quote Post


Snitch
Group Icon
Group: Members
Joined: Feb 6, 2010

XXXXX



Hi all, I have been trying to make a buyable house for awhile now... and i cant seem to figure it out... Can someone help me? i want it to be EXACTLY like the regulat one.. goto the green house pickup, and press tab, play the music with the widescreen, and take my money, then open up the interior. PLEASE HELP ME!!!!
Users WebsitePM
  Top
 

 
Adler  
Posted: Thursday, Jun 23 2011, 03:56
Quote Post


Easily Amused
Group Icon
Group: Leone Family Mafia
Joined: Jul 25, 2009

us.gif

XXXXX



Is this for a CLEO/SCM mod or for a PAWN script (I'm asking because of your SA:MP server advertised in your signature)? The CLEO/SCM method seems pretty easy to make but has three parts to it:

1) Make an asset_pickup in front of the house which will trigger the short cutscene with the "music." See threads "BUY1" "BUY2" "BUY3" "BUY_PRO" and the mission "BUYPRO1" in the main.scm to see how the game does it.

2) Create a teleport marker (or and EnEx marker if you'd prefer not to script it). Here is an example script.

3) Place a save point in your house. Refer here for details.

As for the PAWN method: No clue. turn.gif
PM
  Top
 

 
sci4me  
Posted: Thursday, Jun 23 2011, 19:17
Quote Post


Snitch
Group Icon
Group: Members
Joined: Feb 6, 2010

XXXXX



I meant the SCM method. I kinda quit on sa-mp lol. Heres what I have so far...
CODE

:BuyHouse
thread "BuyHouse"
0518: $House = create_available_asset_pickup 'PROP_3' at 137.06 1934.6522 19.2586 price 5000000  // Press ~k~~PED_ANSWER_PHONE~ to buy this property.
0570: $8964 = create_asset_radar_marker_with_icon 31 at 137.06 1934.6522 19.2586

:BUY1
WAIT 0
0214:   pickup $House picked_up
IF @BUY1
JUMP @HOUSEBOUGHT

:HOUSEBOUGHT
03BF: set_player $PLAYER_CHAR ignored_by_everyone 1
0169: set_fade_color_RGB 0 0 1
Player.CanMove($PLAYER_CHAR) = False
02A3: enable_widescreen 1
$ONMISSION = 1
Camera.SetPosition(136.2481, 1924.7318, 25.1699, 0.0, 0.0, 0.0)
Camera.PointAt(137.06, 1934.6522, 19.2586, 2)
00BA: show_text_styled GXT 'BUYPRO' time 5000 style 2  // Property bought!
0394: play_music 2
wait 5000
00BE: text_clear_all
Camera.SetBehindPlayer
Camera.Restore_WithJumpCut
Player.CanMove($PLAYER_CHAR) = True
03BF: set_player $PLAYER_CHAR ignored_by_everyone 0
02A3: enable_widescreen 0
$ONMISSION = 0
01BD: $CURRENT_TIME_IN_MS = current_time_in_ms
mission_cleanup
end_thread

As you can tell, im a bit of a noob. sad.gif But anyway, I get this error:
CODE

Unknown directive @BUY1.

What to do? Thanks for all the help! PLEASE REPLY!

This post has been edited by sci4me on Thursday, Jun 23 2011, 19:20
Users WebsitePM
  Top
 

 
fireguy109  
Posted: Thursday, Jun 23 2011, 19:21
Quote Post


Come in, cause trouble, leave for another week.
Group Icon
Group: Leone Family Mafia
Joined: Aug 30, 2010

us.gif

XXXXX



It should not be
CODE
IF @BUY1
it should be
CODE
jf @BUY1
Users WebsitePMPlayStation Network
  Top
 

 
sci4me  
Posted: Thursday, Jun 23 2011, 19:29
Quote Post


Snitch
Group Icon
Group: Members
Joined: Feb 6, 2010

XXXXX



CODE

:SAVE
thread "SAVE"
$SAVE_X = 214.8009  
$SAVE_Y = 1913.4453
$SAVE_Z = 17.6406

:SAVE_38
wait 0
if 0004: $Bought = 1
else_jump @SAVE_38
0395: clear_area 1 at $SAVE_X $SAVE_Y $SAVE_Z radius 1.0
$SAVE_PICKUP = Pickup.Create(#PICKUPSAVE, 3, $SAVE_X, $SAVE_Y, $SAVE_Z)
0570: 2@ = create_asset_radar_marker_with_icon 35 at $SAVE_X $SAVE_Y $SAVE_Z
018B: set_marker 2@ radar_mode 2

:SAVE_97
wait 100
  Pickup.Picked_up($SAVE_PICKUP)
else_jump @SAVE_97
$ONMISSION = 1
Player.CanMove($PLAYER_CHAR) = False
03D8: show_save_screen

:SAVE_129
wait 100
03D9:   save_done
else_jump @SAVE_129
Pickup.Destroy($SAVE_PICKUP)

:SAVE_147
wait 100
  Player.Defined($PLAYER_CHAR)
else_jump @SAVE_147
Camera.Restore_WithJumpCut
Camera.SetBehindPlayer
Player.CanMove($PLAYER_CHAR) = True
$ONMISSION = 0

:SAVE_181
wait 0
80EC:   not actor $PLAYER_ACTOR 0 near_point 214.8009 1913.4453 radius 2.5 2.5
else_jump @SAVE_181
jump @SAVE_38
end_thread

:BuyHouse
thread "BuyHouse"
0518: $House = create_available_asset_pickup 'PROP_3' at 137.06 1934.6522 19.2586 price 5000000  // Press ~k~~PED_ANSWER_PHONE~ to buy this property.
0570: $8964 = create_asset_radar_marker_with_icon 31 at 137.06 1934.6522 19.2586

:BUY1
WAIT 0
0214:   pickup $House picked_up
jf @BUY1
JUMP @HOUSEBOUGHT

:HOUSEBOUGHT
03BF: set_player $PLAYER_CHAR ignored_by_everyone 1
0169: set_fade_color_RGB 0 0 1
Player.CanMove($PLAYER_CHAR) = False
02A3: enable_widescreen 1
$ONMISSION = 1
Camera.SetPosition(136.2481, 1924.7318, 25.1699, 0.0, 0.0, 0.0)
Camera.PointAt(137.06, 1934.6522, 19.2586, 2)
00BA: show_text_styled GXT 'BUYPRO' time 5000 style 2  // Property bought!
0394: play_music 2
wait 5000
00BE: text_clear_all
Camera.SetBehindPlayer
Camera.Restore_WithJumpCut
Player.CanMove($PLAYER_CHAR) = True
03BF: set_player $PLAYER_CHAR ignored_by_everyone 0
02A3: enable_widescreen 0
$ONMISSION = 0
01BD: $CURRENT_TIME_IN_MS = current_time_in_ms
$Bought = 1
mission_cleanup
end_thread

I can buy area 51, but the save thing doesnt appear... is there any way I could make these into 1 thread?
Users WebsitePM
  Top
 

 
Adler  
Posted: Thursday, Jun 23 2011, 21:27
Quote Post


Easily Amused
Group Icon
Group: Leone Family Mafia
Joined: Jul 25, 2009

us.gif

XXXXX



Yeah just move the Save thread after the BuyHouse thread.

In the BUY1 loop you can remove:
CODE
JUMP @HOUSEBOUGHT

since the HOUSEBOUGHT label is right after it.
PM
  Top
 

 
BnB  
Posted: Friday, Jun 24 2011, 08:33
Quote Post


sh*t Happens
Group Icon
Group: Members
Joined: Jun 28, 2010

gc.gif

Member Award




Use the model id of #PICKUPSAVE which is 1277.
PM
  Top
 

 
toddlar  
Posted: Friday, Jul 20 2012, 02:36
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 2, 2012

XXXXX



Anyone know how to finish this off?
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG