Jump to content

About double side


SkatCh

Recommended Posts

Posted

Does any one know how to start double sided transaction ?

Failure is simply an opportunity to begin again more intelligently - Henry Ford

Posted

Create a function which when you execute it, it replaces the original createObject with a custom one, which creates the object and sets it double sided, then create another which restores the original function, to end the transaction.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Yes bro i know how to do this but it always appear

attempt to call global doubleSideTransaction (a nil value)

Failure is simply an opportunity to begin again more intelligently - Henry Ford

Posted

Post your code.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted (edited)

thx fixed

Edited by Guest

Failure is simply an opportunity to begin again more intelligently - Henry Ford

Posted

You are unpacking "arg" which is not defined anywhere @ createObjectDoubleSided.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

sorry bro did work again

function createObjectDoubleSided( ... ) 
  local args = {...} 
    local temp = _createObject( unpack(args) ) 
    setElementDoubleSided(temp, true) 
    return temp 
end 

Failure is simply an opportunity to begin again more intelligently - Henry Ford

Posted

I guess you want something like this:

_createObject = createObject 
  
function createObject( ... ) 
  local args = {...} 
    local temp = _createObject( unpack(args) ) 
    setElementDoubleSided(temp, true) 
    return temp 
end 

CiTLh.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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