Advertisement
rf0odxm0dz

SET_ENTITY_VISIBLE_IMP 1.47

Sep 8th, 2023 (edited)
1,470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.58 KB | None | 0 0
  1. unsigned long long (*getEntityAddress)(int entity) = ((unsigned long long(*)(int entity)) (0x1FE1810 + APP_BASE));
  2. unsigned long long (*sub_A5A9B0)(unsigned long long entityPointer, int a2, bool a3, int a4) = ((unsigned long long(*)(unsigned long long entityPointer, int a2, bool a3, int a4)) (0xA5A9B0 + APP_BASE));
  3.  
  4. void SET_ENTITY_VISIBLE_IMP(int entity, bool status, bool a3) {
  5. u64 v_entity_pointer = getEntityAddress(entity);
  6. if(v_entity_pointer ) {
  7.  sub_A5A9B0(v_entity_pointer, 2, status, 1);
  8.         if ( a3 )
  9.           *(uint16_t*)(v_entity_pointer + 56) = 1023;
  10. }
  11. }
  12.  
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement