📱
APhone
  • What is APhone ?
  • Installation
    • Workshop
    • Configuration ( Lua part )
    • Configuration ( In-game )
  • How you make your own apps
    • Create your first app
    • App functions
    • App Metas
    • Tips you NEED to know
  • API ( Clientside )
    • Parameters ( Clientside )
    • UI - General Functions
    • UI - Required Functions
    • UI - Colors
    • UI - Fonts
    • UI - Web/Imgur Pictures
    • UI - Renderview
    • UI - Stencils
    • UI - Panels
    • Notifications
    • Rotate functions
  • API ( Shared )
    • Numbers
  • API - App Specific
    • Contacts ( Clientside )
    • Messages ( Clientside )
    • Bank ( Shared )
Powered by GitBook
On this page
  • APP:Open(PANEL main, int main_x, int main_y)
  • APP:OnClose()
  • APP:ShowCondition()
  • APP:Open2D(PANEL main, int main_x, int main_y)

Was this helpful?

  1. How you make your own apps

App functions

There are the most useful functions you will use in the apps.

APP:Open(PANEL main, int main_x, int main_y)

Parameters

Purposes

main

This is the panel you need to parent everything on. You can paint it.

main_x

Wide of the main

main_h

Height of the main

This function will be called when someone opens your app

APP:OnClose()

This function will be called when someone closes your app or switch weapon

APP:ShowCondition()

Return false to hide the app

// From weather app
function APP:ShowCondition()
	return tobool(StormFox or StormFox2)
end

APP:Open2D(PANEL main, int main_x, int main_y)

This function will be called when someone puts the phone horizontally. Parameters are the same as Open

If this function is available, the player will be able to put his phone horizontal in your app. Else, he can't.

PreviousCreate your first appNextApp Metas

Last updated 3 years ago

Was this helpful?