Main Power Base [MP-Base] 1.4
- Exports added to make functionality better
- New saving data function works with export
New Usages: Exports Server Side:
GetPlayer(source) - Returns player so local p = exports['MP-Base']:GetPlayer(source);
SetPlayersData(source, dataType, newData, newUtilityData) - Sets data if job then 2nd data entry is needed for grade: ex: exports['MP-Base']:SetPlayersData(source, "job", "police", 0)
GetPlayerData(source, dataType) - returns data type so ex: local pJob = exports['MP-Base']:GetPlayerData(source, "job") | pJob now = the job of player
Client Side Exports:
GetPlayerData(dataType) = Returns data type like server side | local pType = exports['MP-Base']:GetPlayerData("job") | pType now = job
How the setdata works:
It goes through our self function "self.Functions.setNewData = function(dataType, newData, newUtilityData)" then sets data and saves to client side therefor any updated data will be set on client side as well so there is no need for resources to make that update happen. Watch the video explaining it here: https://youtu.be/_1eCQAt9cUw
Main Power has picked up another developer to focus on creating scripts for the main power framework. Main Power is still being worked on bit by bit and allow any outside people to create scripts as we have offered all of our calls on https://mainpower.net/ The focus right now we are working on our HUD and our Phone as well as Jobs. We take in a lot of criticism and thank everyone for being with us! For the time being development will always continue as well as our development team as we actively look for people to help build and create with MP. Have something you think would be good to suggest for the framework? use general and tell us what you want to see!