Popular Post Nurupo Posted April 15, 2021 Popular Post Share Posted April 15, 2021 SAMP MAP LOADER This resources adds the ability to load your favourite SA-MP maps into the MTA-SA! Screens Even works on this kinds of crazy map Resource Structure sampobj - provides the core functionality to load the samp.img, cols & texture materials. sampmap - SAMP Maploader, loads the map files either from specific format or SA-MP Texture-Studio file. Usage places the sampobj and sampmap into your mta-resrouces folder in sampmap resources, find a file nammed sampmap.lua , it already contains a example map made by samp texture-studio (special thanks to author Unu Alex for the creation of this hard work.), you can add your own map under this file. start the resources sampobj and sampmap & enjoy, you can check out /testmap command to teleport you to the sample example samp map. Exports sampobj createSAMPObject(model_id,x,y,z,rx,ry,rz) note the mode_id can be either sa stock object or an id from samp_model. setObjectMaterial(object,mat_index,model_id,lib_name,txd_name,color) Issues & todos in future Currently the material color is somehow bugged, especially the one contains the alpha materials. Drawdistance issue, due to the engine limitation the max distances viewdistance of a normal object is 300 unit, if your map contains the wide areas of custom samp objects, the far distances objects might not visible. Currently no SetObjectMaterialText Support, i'll do it in the furture, do check up my github High Memory Useage, due to the MTA current don't have the support of server-side defined object ids, therefore inorder to keep the original samp model id works i did a big mapping array to keep the mta-allocated ids & orignal samp ids in relation. however the down-side is the high RAM use, it might needs to takes some further optimzation in the furtue. Download & Github Due to the limitation 20MB of MTA-Commnity resources, I've upload the whole project into the github. https://github.com/gta191977649/MTA-SAMP-OBJ Happy Mapping & Hunting 4 2 Link to comment
mono1 Posted April 15, 2021 Share Posted April 15, 2021 This is amazing, I'll check it out! Link to comment
FernandoMTA Posted November 11, 2021 Share Posted November 11, 2021 I made my own fork which adds several features and changes how the SAMP objects and maps are loaded link: https://github.com/Fernando-A-Rocha/MTA-SAMP-OBJ @Nurupo 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