Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/llnd/ORP-Plus
llnd's enhanced version of DimmiesTV's open source framework, Onset Roleplay.
https://github.com/llnd/ORP-Plus
Last synced: 3 months ago
JSON representation
llnd's enhanced version of DimmiesTV's open source framework, Onset Roleplay.
- Host: GitHub
- URL: https://github.com/llnd/ORP-Plus
- Owner: llnd
- Created: 2020-05-26T16:32:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T02:35:48.000Z (over 4 years ago)
- Last Synced: 2024-06-20T16:06:28.696Z (5 months ago)
- Language: Lua
- Size: 595 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-onset - ORP Plus - Enhanced version of ORP Framework (previous one). (Packages and Plugins / Frameworks)
README
# O:RP++
llnd's enhanced version of DimmiesTV's open source framework, Onset Roleplay.**Make sure you update the database.lua lines 14-17 according to your MySQL settings**
## THIS PROJECT IS NOT TO BE PLAYED AS IS AND REQUIRES A LOT OF WORK TO BE A FULLY FUNCTIONAL RP SERVER. THIS MERELY GIVES YOU THE TOOLS TO DO SO
**Garage is a WIP and not even close to functional**All of these functions are SERVER side.
Importpackage and prefix is required if using exports outside of the orp package.## How to import orp to your new package
```
ORP = Importpackage("orp")
```
## Exports
```
ORP.Withdraw(player, amount)
ORP.Deposit(player, amount)
ORP.GetPlayerJob(player)
ORP.GetPlayerJoblvl(player)
ORP.SetJob(player, job, jobrank)
ORP.GetPlayerCash(player)
ORP.GetPlayerBank(player)
ORP.GetPlayerDirtyMoney(player)
ORP.Wire(player, player2, amount)
ORP.Pay(player, player2, amount)
ORP.Transaction(player, amount)
ORP.GetClosePlayer(player)
```## Example
```
ORP = Importpackage("orp")Addcommand("policewithdraw", function(player, amount)
if amount == null then
AddPlayerChat(player, "the correct syntax is /policewithdraw ")
else
if ORP.GetPlayerJob(player) == "Police" then
ORP.withdraw(player, amount)
end
end
end)
```