Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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)
```