Dzsozi (h03) Posted September 27, 2018 Share Posted September 27, 2018 (edited) This utility script allows you to get a vehicle's available cargo space position, for example the roof rack of the Perennial, the bed of the Yosemite, the back of the Pony or many more vehicles! Also, as we know GTA has something called variants for vehicles (https://wiki.multitheftauto.com/wiki/Vehicle_variants), for example a Bobcat either spawns with some Sprunk cans, a single tire or nothing in it's bed. This resource also allows you to clear the cargo's available space if it is occupied by any unnecessary things (a.k.a. variant) if you need some space for something bigger (makes the vehicle's actual cargo placeholder variants (if there are any) disappear for example the planks in the Picador's bed, also, this same function adds the roof rack variant on the Perennial if it is missing and the function is being called)! In this resource you can find 2 exported functions: - getVehicleCargoPlacementPosition (client and server) | returns a table with x, y, z offset positions - setVehicleCargoSpaceFree (server) | returns true if the vehicle cargo space was cleared, false otherwise Open the exampleS.lua for further explanations and examples to how to use this script. DOWNLOAD Edited September 27, 2018 by Dzsozi (h03) 2 1 Link to comment
Swagy Posted October 15, 2018 Share Posted October 15, 2018 I really love what you did in here. I believe that RP servers need such features, but I'm going to ask you if you're able to determine exact position for the object you're going to place in the car's bed ? 2 Link to comment
Dzsozi (h03) Posted October 16, 2018 Author Share Posted October 16, 2018 Yes, I also believe that. Sorry, what do you mean by that? With the export functions you get the middle position of the defined vehicle's bed. So from that point on, you can adjust the position of the object by adding or extracting values to/from the position you got. 1 Link to comment
Swagy Posted October 18, 2018 Share Posted October 18, 2018 On 16/10/2018 at 10:06, Dzsozi (h03) said: Yes, I also believe that. Sorry, what do you mean by that? With the export functions you get the middle position of the defined vehicle's bed. So from that point on, you can adjust the position of the object by adding or extracting values to/from the position you got. Really appreciate your help, thanks. Keep up the good work mate, I loved this resource. 1 Link to comment
JuinoSCR Posted January 6, 2020 Share Posted January 6, 2020 Hey men, this script have has some way of making the charge appear only when it passes a circle mark? Link to comment
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