Gre3nPois0n Posted June 14, 2015 Share Posted June 14, 2015 Somebody can make me a 2k - 40k Script, i pretty mutch new at Scripting and Coding Credits for the Maker for sure. Gre3nPois0n GTA5 23Mod Menu v0.25 DEV5 Link to comment Share on other sites More sharing options...
NMDanny Posted June 14, 2015 Share Posted June 14, 2015 Not LUA, but I have C# code that does what you asked for, shouldn't be too hard to convert to lua. var pos = p.Character.Position; var hash = Function.Call<int>(Hash.GET_HASH_KEY, "PICKUP_MONEY_CASE"); var model = new Model(0x113FD533); // prop_money_bag_01 model.Request(1000); Function.Call(Hash.CREATE_AMBIENT_PICKUP, hash, pos.X, pos.Y, pos.Z, 0, 40000, 0x113FD533, false, true); model.MarkAsNoLongerNeeded(); Link to comment Share on other sites More sharing options...
alloc8or Posted June 14, 2015 Share Posted June 14, 2015 (edited) This is what I've done in my Lua Trainer: function Trainer.AddCash() local playerPed = PLAYER.PLAYER_PED_ID() local player = PLAYER.GET_PLAYER_PED(playerPed) local playerExists = ENTITY.DOES_ENTITY_EXIST(playerPed) if (playerExists) then local playerPosition = ENTITY.GET_ENTITY_COORDS(PLAYER.PLAYER_PED_ID(), false) OBJECT.CREATE_AMBIENT_PICKUP(GAMEPLAY.GET_HASH_KEY("PICKUP_MONEY_MED_BAG"), playerPosition.x, playerPosition.y, playerPosition.z, 0, 500000, 1, false, true) Trainer.updateMenus("Cash Added", nil) endend And spawn cash only: local cash = {}function cash.unload()endfunction cash.init()endfunction cash.tick() local playerPed = PLAYER.PLAYER_PED_ID() local player = PLAYER.GET_PLAYER_PED(playerPed) local playerExists = ENTITY.DOES_ENTITY_EXIST(playerPed) if (get_key_pressed(Keys.YOURFAVOURITEKEYHERE)) and (playerExists) then local playerPosition = ENTITY.GET_ENTITY_COORDS(PLAYER.PLAYER_PED_ID(), false) OBJECT.CREATE_AMBIENT_PICKUP(GAMEPLAY.GET_HASH_KEY("PICKUP_MONEY_MED_BAG"), playerPosition.x, playerPosition.y, playerPosition.z, 0, 40000, 1, false, true) endendreturn cash And here are the names for the pickups: PICKUP_MONEY_VARIABLEPICKUP_MONEY_CASEPICKUP_MONEY_WALLETPICKUP_MONEY_PURSEPICKUP_MONEY_DEP_BAGPICKUP_MONEY_MED_BAGPICKUP_MONEY_PAPER_BAGPICKUP_MONEY_SECURITY_CASE Edited June 14, 2015 by Unknown_Modder Link to comment Share on other sites More sharing options...
Gre3nPois0n Posted June 15, 2015 Author Share Posted June 15, 2015 Unknown Modder, is there any Way? to Spawn Money next to you? Link to comment Share on other sites More sharing options...
alloc8or Posted June 20, 2015 Share Posted June 20, 2015 (edited) Unknown Modder, is there any Way? to Spawn Money next to you? Of course! (Sorry for the late answer) local cash = {}function cash.unload()endfunction cash.init()endfunction cash.tick()local playerPed = PLAYER.PLAYER_PED_ID() local player = PLAYER.GET_PLAYER_PED(playerPed) local playerExists = ENTITY.DOES_ENTITY_EXIST(playerPed) if (get_key_pressed(Keys.YOURFAVOURITEKEYHERE)) and (playerExists) then local coords = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(playerPed, 0.0, 3.5, 0.0); OBJECT.CREATE_AMBIENT_PICKUP(GAMEPLAY.GET_HASH_KEY("PICKUP_MONEY_PAPER_BAG"), coords.x, coords.y, coords.z, 0, 40000, 1, false, true) endendreturn cash You can easily change the position of the cash spawn by changing the red marked numbers in this line (XYZ coords) local coords = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(playerPed, 0.0, 3.5, 0.0); and the amount of cash by changing the 40000 in this line OBJECT.CREATE_AMBIENT_PICKUP(GAMEPLAY.GET_HASH_KEY("PICKUP_MONEY_PAPER_BAG"), coords.x, coords.y, coords.z, 0, 40000, 1, false, true) Edited June 20, 2015 by Unknown_Modder Link to comment Share on other sites More sharing options...
MrGTAmodsgerman Posted June 21, 2015 Share Posted June 21, 2015 Ich habe nen detailiertes Money Menu geschrieben ich werde es bald veröffentlichen falls du danach gesucht hast. Link to comment Share on other sites More sharing options...
alloc8or Posted June 22, 2015 Share Posted June 22, 2015 (edited) @MrGTAmodsgerman LUA, ASI oder NET? EDIT: Hab's gerade bei GTAinside.com gesehen Edited June 22, 2015 by Unknown_Modder Link to comment Share on other sites More sharing options...
Enumerator Posted June 28, 2015 Share Posted June 28, 2015 (edited) This is way too easy.. Scan area for bullets owned by your ped Locate the bullet in this scan Drop pickup Add the bullet position to an array so your script does not drop anymore cash for this bullet vector. You would have to make an array that drops array items > 100 so that the game will not lag if array.length > 99 Array.removeat(0) end if Edited June 28, 2015 by Enumerator Link to comment Share on other sites More sharing options...
GRANDHEIST Posted July 16, 2015 Share Posted July 16, 2015 What do i do if i want to check has that pickup been collected? So what is the p0 part in HAS_PICKUP_BEEN_COLLECTED(p0) ? Link to comment Share on other sites More sharing options...
alloc8or Posted July 17, 2015 Share Posted July 17, 2015 What do i do if i want to check has that pickup been collected? So what is the p0 part in HAS_PICKUP_BEEN_COLLECTED(p0) ? It's used in place of a parameter. Link to comment Share on other sites More sharing options...
GRANDHEIST Posted July 21, 2015 Share Posted July 21, 2015 (edited) What do i do if i want to check has that pickup been collected? So what is the p0 part in HAS_PICKUP_BEEN_COLLECTED(p0) ? It's used in place of a parameter. Yeeeeeeeeeeeaaaaaah! i can undestand that, lol But i was asking what type it was.. But i already did some research on r* scripts and i figured it out myself.. it was the hash of the pickup created, but that HAS_PICKUP_BEEN_COLLECTED() dont even work for ambient or normal pickups.. i think it works just for that create_pickup_rotate, cause it used with that in R* scripts.. But if anyone wants to check if pickup has been collected, you can do that by create_pickup (not with ambient_pickup) and then calling OBJECT::DOES_PICKUP_OBJECT_EXIST() Edited July 21, 2015 by GRANDHEIST Link to comment Share on other sites More sharing options...
TragicMods Posted July 22, 2015 Share Posted July 22, 2015 sorry for the late answer but try this Vector3 mycoords = GET_ENTITY_COORDS(GET_PLAYER_PED(selectedClient), true); REQUEST_MODEL(289396019); if (HAS_MODEL_LOADED(289396019) != 1) { WAIT(0); } else if (HAS_MODEL_LOADED(289396019) == 1) { CREATE_AMBIENT_PICKUP(3463437675, mycoords.x, mycoords.y, mycoords.z, 0, 40000, 289396019, 0, 1); SET_MODEL_AS_NO_LONGER_NEEDED(289396019); } 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