FSAOSkar Posted June 26, 2016 Share Posted June 26, 2016 Hey, does anyone know how to spawn a prop from the Heists DLC ? Example: \update\x64\dlcpacks\mpheist\dlc.rpf\x64\levels\gta5\props\mp_residential_heist.rpf\hei_heist_kit_coffeemachine_01.ydr I tried it like this but nothing happens: Hash TestProp = GAMEPLAY::GET_HASH_KEY("hei_heist_kit_coffeemachine_01");STREAMING::REQUEST_MODEL(TestProp);while (!STREAMING::HAS_MODEL_LOADED(TestProp)) WAIT(0);Vector3 LaunchPos = ENTITY::GET_ENTITY_COORDS(veh, true);Object Missile = OBJECT::CREATE_OBJECT(TestProp, LaunchPos.x, LaunchPos.y, LaunchPos.z + 5.0, 1, 1, false); What am I doing wrong? Link to comment Share on other sites More sharing options...
alloc8or Posted June 26, 2016 Share Posted June 26, 2016 You're doing everything correctly, you just need to unlock all objects before and it will work: FSAOSkar 1 Link to comment Share on other sites More sharing options...
FSAOSkar Posted June 26, 2016 Author Share Posted June 26, 2016 (edited) Thanks, didn't think about that! *edit* Tried it with the GTA MP Object Spawn Unlocker but it still doesn't work. Did you talk about something else when you said that I need to unlock all objects first ? Edited June 26, 2016 by FSAOSkar Link to comment Share on other sites More sharing options...
alloc8or Posted June 26, 2016 Share Posted June 26, 2016 Thanks, didn't think about that! *edit* Tried it with the GTA MP Object Spawn Unlocker but it still doesn't work. Did you talk about something else when you said that I need to unlock all objects first ? Did you use this? ⤵ void UnlockAllObjects(bool bUnlock) { UINT64 addr = FindPattern("\x48\x85\xC0\x0F\x84\x00\x00\x00\x00\x8B\x48\x50", "xxxxx????xxx"); if (addr) { DWORD old; uint8_t orig[24] = { 0 }; VirtualProtect((void *)addr, 24, PAGE_EXECUTE_READWRITE, &old); memcpy(&orig, (void *)addr, 24); if (bUnlock) memset((void *)addr, 0x90, 24); else memcpy((void *)addr, &orig, 24); VirtualProtect((void *)addr, 24, old, NULL); } } Link to comment Share on other sites More sharing options...
FSAOSkar Posted June 26, 2016 Author Share Posted June 26, 2016 Tested, still doesn't work Link to comment Share on other sites More sharing options...
FSAOSkar Posted July 1, 2016 Author Share Posted July 1, 2016 Could you do me a favour? Could you send me the compiled version + source code of the script you used to spawn the prop? I just wanna make sure that it isn't a script error from my side. Link to comment Share on other sites More sharing options...
ins1de Posted July 1, 2016 Share Posted July 1, 2016 Hash TestProp = GAMEPLAY::GET_HASH_KEY("hei_heist_kit_coffeemachine_01"); Isn't it supposed to be an int value? Link to comment Share on other sites More sharing options...
FSAOSkar Posted July 2, 2016 Author Share Posted July 2, 2016 Should be a Hash as far as I know. Link to comment Share on other sites More sharing options...
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