Jump to content

[HELP]Function


Recommended Posts

Posted

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.

Posted (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 by DNL291
code removed, leaked gm/resource
Posted
<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 ( ... )

 

  • DNL291 locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...