Client Exports

Here you will find all the useful exports for this asset, please read each step and example carefully to better understand how it works, we do not recommend using these if you are not an experienced developer.


inDecorate

Export that will return a boolean when you are in decoration mode.

exports['qs-housing']:inDecorate()

An example of using this system would be the following.

RegisterCommand('decorateCheck', function(source)
    local inDecorate = exports['qs-housing']:inDecorate()
    if inDecorate then
        print('User is using decoration mode.')
    else
        print('User is not using decoration mode.')
    end
end, false)

GetClosestHouse

Check to verify if you are close to a home or not.

exports['qs-housing']:GetClosestHouse()

getCurrentHouse

Export to verify the house you are in at the moment.

exports['qs-housing']:getCurrentHouse()

Last updated