Last active
March 4, 2023 08:51
-
-
Save SunShineSilver-mdA/0ce92d88a0e39f540d73f21dce29161a to your computer and use it in GitHub Desktop.
GTA5 [1.50] CEO/MC Business Production/Research etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CBusiness={} | |
CBusiness={ | |
Address=1590446+1+(PLAYER_ID()*871), | |
HandleProductionMC=273+228, -- MC | |
HandleProductionCEO=273+240, -- CEO | |
HandleResearch=273+244, -- CEO | |
Offset={ | |
ProductsCreated=1, | |
LastCountSuppliesUsed=2, | |
CountSuppliesUsed=3, | |
idk_ProductionProcess=8, | |
ProductionTime=9, | |
ResearchProcess=12, | |
ResearchTime=13, | |
idk_ResupplyRate=75 | |
}, | |
SupplyCountMC=function(self) return self.Address+self.HandleProductionMC+self.Offset.LastCountSuppliesUsed end, | |
SupplyCountCEO=function(self) return self.Address+self.HandleProductionCEO+self.Offset.LastCountSuppliesUsed end, | |
TriggerProductionMC=function(self) return self.Address+self.HandleProductionMC+self.Offset.ProductionTime end, | |
TriggerProductionCEO=function(self) return self.Address+self.HandleProductionCEO+self.Offset.ProductionTime end, | |
TriggerResearch=function(self) return self.Address+self.HandleResearch+self.Offset.ProductionTime end, | |
} | |
function v_TriggerProductionMC() | |
local supplycount=_GetGlobal("Integer",CBusiness:SupplyCountMC()) | |
if supplycount>0 and supplycount<101 then | |
_SetGlobal("Integer",CBusiness:TriggerProductionMC(),1) | |
else ShowPopUpMessage('Trigger Production Function: ', 'Supplies are empty! Buy Supplies!', 4500) end | |
end | |
function v_TriggerProductionCEO() | |
local supplycount=_GetGlobal("Integer",CBusiness:SupplyCountCEO()) | |
if supplycount>0 and supplycount<101 then | |
_SetGlobal("Integer",CBusiness:TriggerProductionCEO(),1) | |
else ShowPopUpMessage('Trigger Production Function: ', 'Supplies are empty! Buy Supplies!', 4500) end | |
end | |
function v_TriggerResearch() | |
local supplycount=_GetGlobal("Integer",CBusiness:SupplyCountCEO()) | |
if supplycount>0 and supplycount<101 then | |
_SetGlobal("Integer",CBusiness:TriggerResearch(),1) | |
else ShowPopUpMessage('Trigger Research Function: ', 'Supplies are empty! Buy Supplies!', 4500) end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment