Jump to content
View in the app

A better way to browse. Learn more.

RDR2Mods.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I want to learn how make scripts but well i just need to ask if this is ok..

 

Spawn Option

	addTitle("Vehicles");
	addOption("Spawn a POLICE WAGON"); // option 1

	if (optionPress && getOption() == 1) {
		printf("SPAWN BUTTON PRESSED");
		Entity ent = PLAYER::PLAYER_PED_ID(); // GET THE ENTITY
		printf("Entity Player:", ent);

		SpawnVehicle("POLICEWAGON01X");
		printf("TRY POLICWAGON01X");
		//if (PED::IS_PED_ON_MOUNT(ent) == false) {
			
		//}
	}

	normalMenuActions();

 

SpawnVehicle fuc

	Entity ent = PLAYER::PLAYER_PED_ID();
	printf("Entity Player FUNCTION VEHICLE:", ent);
	Vector3 pos = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ent, 3.0, 2.0, 0);
	printf("Post: ", pos);
	DWORD Hash = MISC::GET_HASH_KEY(VehicleModel);;
	printf("Hash for model:", Hash);
	VEHICLE::CREATE_VEHICLE(Hash, pos.x, pos.y, pos.z, ENTITY::GET_ENTITY_HEADING(ent), false, false,false,false);

 

  • Author
1 hour ago, LMS said:

 

It looks fine to me, is something not working as expected?

Spawn ped are invisible

 

		//invisible horse
		Hash ped = MISC::GET_HASH_KEY("A_C_Horse_TennesseeWalker_Chestnut");
		Entity player = PLAYER::PLAYER_PED_ID();
		Vector3 playerCor = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(player, 0,5,0);
		Entity spawn = PED::CREATE_PED(ped, playerCor.x, playerCor.y, playerCor.z, 0.f, false, false, true, true, true, true);

I think the problem are some bools in the native create_ped any trainer maker have a example or how this create_ped has to be filled?

Edited by elchoky10

6 minutes ago, elchoky10 said:

Spawn ped are invisible

 


		//invisible horse
		Hash ped = MISC::GET_HASH_KEY("A_C_Horse_TennesseeWalker_Chestnut");
		Entity player = PLAYER::PLAYER_PED_ID();
		Vector3 playerCor = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(player, 0,5,0);
		Entity spawn = PED::CREATE_PED(ped, playerCor.x, playerCor.y, playerCor.z, 0.f, false, false, true, true, true, true);

I think the problem are some bools in the native create_ped any trainer maker have a example or how this create_ped has to be filled?

 

You need to call a native to reset the peds components after creation to make it visible. If you are using Alex's ScripHook, that native is called PED::SET_PED_VISIBLE. You can find it here too: 

 

  • Author
5 minutes ago, LMS said:

 

You need to call a native to reset the peds components after creation to make it visible. If you are using Alex's ScripHook, that native is called PED::SET_PED_VISIBLE. You can find it here too: 

No i using tuxi, i see this with same hash static void _0x283978A15512B2FE(Any p0, Any p1), supose is fir p0 the entityt Ped? and the other a true?

 i HAVE TOO THE  

 

IS_ENTITY_VISIBLE(Entity entity) 

_NETWORK_SET_ENTITY_INVISIBLE_TO_NETWORK(Entity entity, BOOL toggle)

 

SET_ENTITY_VISIBLE(Any p0, Any p1) 0x1794B4FCC84D812F

Edited by elchoky10

1 hour ago, elchoky10 said:

No i using tuxi, i see this with same hash static void _0x283978A15512B2FE(Any p0, Any p1), supose is fir p0 the entityt Ped? and the other a true?

 

Yes, you can call it with ped, true and it should work. The other natives you listed unfortunately do not have any effect on this.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.