Jump to content

itsHasaN

Members
  • Posts

    4
  • Joined

  • Last visited

itsHasaN's Achievements

Vic

Vic (3/54)

0

Reputation

  1. thanks, i hope we can have this in feature updates, for anyone else that need this, there is a way to achieve this, just create the element in that other resource by createElement and pass it as a parameter to api resource.
  2. hi, as you may know when we creating an element it will connect to the resource, and that resource will become his parent, and it will get destroyed on resource stop. i am creating an api resource, there is an custom made element, i want to change its creator resource to the resource that used this api resource exported function to create this new element so it dont get destroyed when the api resource stop or restarted. i tried using setElementParent(element, getResourceDynamicElementRoot(sourceResource) ) but the element would still destroy when the api resource stop, any idea how can i achieve this?
  3. hi, i have a problem with re-setting element model to the base model, for example i set a my skin to 20001, its base model id is 1, when i try to re-set the element model to 1 it will not happen, tried with players skin and vehicles. with skins it will work if you change it to something other than the base model but with vehicles its diffrent, you cant use setElementModel to change vehicle model to anything, it will remain the moded model but the handling will get buggy, and after a little bit of time (after the moded model get freed because its no longer needed) it will change, yet to the base model, not the model i asked for. but the server thinks its alright, the vehicle name when i enter is the one i changed to and when i reconnect the model will be the model i requested
  4. hi, i have an issue with custom made events, i added an event myself, now when the resource which has the addEvent in it get restarted, the other resources that had handlers to that events wont get called, i guess the event get recreated, and because of resources start order, the older handlers would not work anymore, now how can i avoid this? for example i made an onPlayerFirstSpawn event on my utilities resource, imagine i have to update it and i need to restart the resource, then the handlers will stop working on other resources!
×
×
  • Create New...