Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions AUTHORS

This file was deleted.

695 changes: 21 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

39 changes: 25 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,40 @@
# SF.lua
<p align="center"><img src="/logo.png" height="250px" /></p>
<p align="center"><img src="./logo.png" height="250px" /></p>

SF.lua is library for [MoonLoader](https://www.blast.hk/moonloader), which provides an opportunity to interact with SA-MP. This library doesn't replace all [SAMPFUNCS](https://www.blast.hk/sampfuncs), it just adds new functions for Lua script.
Version: v0.78.7-alpha.
SF.lua is a lua library for [MoonLoader](https://www.blast.hk/moonloader) that interaction with SA:MP. This library doesn't replace all [SAMPFUNCS](https://www.blast.hk/sampfuncs), it just adds new functions for the Lua script.

Version: v1.0-beta.

## Progress
At the moment, SF.lua is done at 78%, of this left:
At the moment, SF.lua doens't have all the functionality of SAMPFUNCS:
* Events onSendRpc/onSendPacket/etc;
* Functions with sending RPC/Packet;
* Custom handler of commands.
* Some RakNet functions;
* Custom handler for commands.

## Functional
Supporting versions of SA-MP: [0.3.7-R1](https://forum.sa-mp.com/showthread.php?t=572700). There are also new features for easy interaction.
Supporting versions of SA-MP: `0.3.7-R1`, `0.3.7-R3-1` and `0.3.7-R5-1`.

There will be no functions in SF.lua:
* Associated with the creation/editing of custom windows DXUT;
* Functions for manipulating of DXUT windows;
* Interaction with SAMPFUNCS/CLEO.

## Members
Main developers: [imring](https://github.com/imring), [DonHomka](https://github.com/DonHomka), [THE-FYP](https://github.com/THE-FYP), [4el0ve4ik](https://github.com/4el0ve4ik)
Also thanks:
* [Akionka](https://github.com/Akionka) - development and testing assistance;
* [crybaby](https://www.behance.net/schweitzerr) - created a logo for this project.
New functions:
```lua
sampAddChatMessageEx(type_msg, text, prefix, color, pcolor) -- Add a message with a specific type (CHAT/INFO/DEBUG)
sampAddDeathMessage(killer, killed, clkiller, clkilled, reason) -- Add a death message
sampGetLocalPlayerId() -- Get local player ID
sampGetLocalPlayerNickname() -- Get local player nickname
sampGetLocalPlayerColor() -- Get local player color
sampSetPlayerColor(id, color) -- Set player color (client-side)
sampIsPlayerDefined(id) -- Does player ped exist by player ID
sampIsVehicleDefined(id) -- Does vehicle exist by vehicle ID
```

## Installation
Directory **SFlua** copy to path **moonloader/lib**.
Copy the entire folder `sflua` into the `moonloader/lib` directory.

# Depends
SF.lua depends on the library [`SAMP-API.lua`](https://github.com/imring/SAMP-API.lua).

## Links
Official thread at BlastHack: https://blast.hk/threads/51388/
Loading