murilo2929 Posted June 29, 2019 Posted June 29, 2019 how can I make a resource function work in my other resource, one of the resource is money for the player and the other is a mission, then I would add the function of money in the mission.
Moderators Patrick Posted June 29, 2019 Moderators Posted June 29, 2019 I don't fully understand what you want, but maybe you're looking for it. https://wiki.multitheftauto.com/wiki/Call
murilo2929 Posted June 29, 2019 Author Posted June 29, 2019 (edited) On 29/06/2019 at 15:29, stPatrick said: I don't fully understand what you want, but maybe you're looking for it. https://wiki.multitheftauto.com/wiki/Call I want this givemoney function of this resource Code removed i want to put here in this resource, Code removed You can help with that? Edited June 30, 2019 by DNL291 code removed, leaked gm/resource
SycroX Posted June 30, 2019 Posted June 30, 2019 <export function="giveMoney" type="server" /> add this to the first resource's meta.xml file and then when you want to call it from another resource use exports [ ResourceName ] : giveMoney ( ... )
keymetaphore Posted June 30, 2019 Posted June 30, 2019 Hey there folks. This is part of leaked code from the Owlgaming script and no support for it is provided. Cheers.
Recommended Posts