INCepted Posted October 26, 2016 Share Posted October 26, 2016 Hey guys, I would like to integrate the resource 'customblips' (https://community.multitheftauto.com/index.php?p=resources&s=details&id=960) into my custom resource. The thing is, when I use the function inside my resource to create a blip, the blip is successfully created but the position on the radar is just terribly wrong. They rotation of it is not the same as when I use customblips as a extern resource. Whats the problem ? I mean I dont change the functions or anything I just import it in my own custom resource and the blips are already at the wrong radar position, what should I do ? Link to comment
iPrestege Posted October 26, 2016 Share Posted October 26, 2016 Can you post how are you using this script please? maybe there's something wrong with argument's? Link to comment
HeySlickThatsMe Posted October 26, 2016 Share Posted October 26, 2016 customblips gets the original radar positions if you have eg: rectangle radar then you should edit customblips resource (not sure what to edit) Link to comment
INCepted Posted October 26, 2016 Author Share Posted October 26, 2016 4 minutes ago, FaHaD said: Can you post how are you using this script please? maybe there's something wrong with argument's? exports.customblips:createCustomBlip(0, 0, 16, 16, "res/images/blips/1.png", 300) createCustomBlip(0, 0, 16, 16, "res/images/blips/1.png", 300) The arguments are the same, the only difference is that, the first function is directly from the customblips resource(exported) and the second function is integrated in my resource 3 minutes ago, ThatsMe said: customblips gets the original radar positions if you have eg: rectangle radar then you should edit customblips resource (not sure what to edit) But that isnt the answer to my problem, why does it work when the function is called extern ? Link to comment
HeySlickThatsMe Posted October 26, 2016 Share Posted October 26, 2016 because it gets the original radar positions.. if you make it own it still will use original ones Link to comment
INCepted Posted October 26, 2016 Author Share Posted October 26, 2016 3 minutes ago, ThatsMe said: because it gets the original radar positions.. if you make it own it still will use original ones Yes, but I imported all functions from the customblips resource into my resource, so its gets the radar positions from the same function, I didnt made the function by my own. 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