kr0wns Posted June 11, 2016 Share Posted June 11, 2016 (edited) Yo, idk why I cant delete nearest planes.. just vehicles and motorbikes.. What is wrong? Found flags found in the b617d scripts for GET_CLOSEST_VEHICLE: http://pastebin.com/kghNFkRi 00000000001000110 = 70 - (Not from scripts. Recommended by the native db). Only works with motorbikes and cars. 00100000000000000 = 16384 - returns planes only. I changed 70 to 16384 but doesn't work. Hash Plane = { 0x53174EEF };//cargobob3=0x53174EEFVector3 playerPosition = GET_ENTITY_COORDS(PLAYER_PED_ID(), false);int veh = GET_CLOSEST_VEHICLE(playerPosition.x, playerPosition.y, playerPosition.z, 25, Plane, 70);DELETE_ENTITY(&veh); Edited June 11, 2016 by kr0wns Link to comment Share on other sites More sharing options...
unknown modder Posted June 11, 2016 Share Posted June 11, 2016 get_closest_vehicle is a weird native, best bet is to use worldGetAllVehicle then check for planes in that list Link to comment Share on other sites More sharing options...
EERZZ Posted June 11, 2016 Share Posted June 11, 2016 (edited) get_closest_vehicle is a weird native, best bet is to use worldGetAllVehicle then check for planes in that list do you mean GET_PED_NEARBY_VEHICLES? worldGetAllVehicle doesnt seems to exist i converted it to hash in some ways but nothing found Edited June 11, 2016 by EERZZ Link to comment Share on other sites More sharing options...
unknown modder Posted June 11, 2016 Share Posted June 11, 2016 get_closest_vehicle is a weird native, best bet is to use worldGetAllVehicle then check for planes in that list do you mean GET_PED_NEARBY_VEHICLES? worldGetAllVehicle doesnt seems to exist i converted it to hash in some ways but nothing found worldGetAllVehicles is a function inside ScriptHookV. If you have a look in the sdk pools example it will show you how to use it 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