Template:PT-BR/POO

From Multi Theft Auto: Wiki
Revision as of 23:55, 18 February 2020 by Lettify (talk | contribs) (Created page with "<includeonly><u>'''Sintaxe POOO(OOP)'''</u> <small>Não entendeu o que significa isso?</small> {{#if: {{{1|}}} |: '''Nota''': ''{{{1}}}''|}}{{#if: {{{2|}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Applications-office.pngTemplate Documentation

Template for OOP (object orientated programming)

Usage


OOP Syntax Help! I don't understand this!

Note: Set the variable to nil to execute removePedFromVehicle
Method: ped:warpIntoVehicle(...)
Variable: .vehicle
Counterpart: getPedOccupiedVehicle


{{OOP|Set the variable to nil to execute [[removePedFromVehicle]]|[[ped]]:warpIntoVehicle|vehicle|getPedOccupiedVehicle}}

Hey guys, here are a few "rules" in using the OOP template:

  • If it's a constructor, such as createPed, use "Ped" not "createPed" or "Ped.create"
  • If it's a static class function or a constructor, use a capital letter for the first character. (Player not player).
  • Likewise, if it's an object function such as "player:setName", use lowercase.
  • Use full stops (or if you're american, "periods.") for static functions and colons (:) for object functions.