• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Los Santos Role Play (LSRP) v3 final
#1
Heart 
Los Santos Role Play (LSRP) v3 final

Version 3 of Los Santos Role Play (LSRP) adds houses and businesses, a server-side anticheat, jobs, player families, shops, police mechanics, and a wide set of improvements to organizations, vehicles, and everyday gameplay.

Houses
  • A full house system across Los Santos.
  • Houses can be bought with cash.
  • Enter the interior and leave back onto the street.
  • Door lock and a house menu.
  • Buy a medkit at home and heal.
  • Daily house rent.
  • Pay rent at the bank several days ahead.
  • An unpaid house is seized.
  • Residence is shown in the passport and in stats.
  • Commands to sell a house to the state and to find a house by number.
  • A closet in the house for storing items.
  • An admin can clear a house without paying the owner.

Businesses
  • A business system on the map.
  • A business can be bought and sold.
  • Business tax, paid through the bank.
  • Business profit can be withdrawn at the bank.
  • 24/7 stores with goods for players.
  • Ammu-Nation, with weapons and armor for sale.
  • Clothing stores.
  • Mod shops with repair and paint.
  • Gas stations, and fuel consumption for vehicles.

Rentals and personal vehicles
  • Car rentals.
  • Personal vehicles, bought at a dealership or the motorcycle lot.
  • Park your personal car at your house.
  • A personal vehicle menu.
  • Fuel and vehicle condition are saved.

Anticheat
  • A server-side anticheat with no client plugins.
  • Checks teleports, speed, flight, health, armor, money, and weapons.
  • Legitimate server actions are tracked separately, so honest players are not punished.
  • False positives in safe zones and when falling with armor are fixed.
  • Tighter tolerances for small money and health changes.

Loader job
  • A loader job at the warehouse.
  • The player carries cargo between points and gets paid.
  • A warehouse safe zone.

Organization warehouses
  • Warehouses for state organizations, gangs, and mafias.
  • Put in and take out ammo, metal, drugs, and money under the organization's rules.
  • Warehouses have a lock and a stock display.

Army
  • An ammo workshop at the army factory.
  • Ammo crate delivery by van to law-enforcement bases.
  • Gangs can raid ammo crates at the army base.

Hospital
  • Medicine deliveries.
  • A doctor's kit, and treating players for a fee.
  • A character medical card.

Ghetto
  • Dealer Smokey, who sells drugs.
  • Gangs can collect weapons and sell weapons and drugs on their own turf.

Wanted level and documents
  • A wanted level with stars.
  • Wanted is issued for murders and by police actions.
  • Commands to issue and clear a wanted level.
  • A wanted list and tracking.
  • A military ID.
  • A medical card.
  • Showing documents to another player requires their consent.

Player families
  • Families, separate from gangs and mafias.
  • Create a family, invite members, and manage the roster.
  • Ranks, a family house, a warehouse, and family healing.
  • A family chat.

Y and N consent
  • Important offers to another player are confirmed with Y or N.
  • This covers showing documents, invitations, and some deals.

Hunger and phone
  • A hunger bar.
  • Buy food on the street and in stores.
  • A mobile phone.
  • Phone advertisements work together with the radio station.

GPS and the player menu
  • The /help command is removed. The command list opens with /mn.
  • In-game stats open with /mn.
  • GPS has new points, including jobs and organizations.
  • Menu items are numbered.

Police and FBI
  • Handcuffs, and taking them off.
  • Put a detained player into a vehicle.
  • Arrest at the station, which sends the player to prison.
  • Frisk a player and seize items.
  • The FBI can fire employees of state organizations.
  • A driver can eject a passenger from the vehicle.
  • Disconnecting while cuffed sends the player to prison.

Jobs
  • A job center at City Hall.
  • A bus driver job.
  • The bus has a route, stops, a fare, and pay for the run.
  • GPS has a marker for the bus job.

Payday
  • Gang members get a pay bonus for each turf they control.

Chat and emotions
  • Quick emotions in chat with brackets and symbols.
  • A caption appears above the head, the same way a roleplay action does.

Masks and animations
  • Masks, bought in a store.
  • Police can pull a mask off.
  • An animation menu.

Admin tools
  • Teleport to a player, and teleport a player to you.
  • Respawn a player.
  • View another player's stats.
  • Change an admin level.
  • Helper commands for houses, businesses, and families.

Other
  • Find online players by name or ID.
  • Hand cash to a player standing nearby.
  • Online member lists for an organization, and a list of leaders.
  • Organization vehicles now auto-respawn after 30 minutes.
  • Money in the interface is easier to read, with spaces in the numbers.

How to run the project
  • Node.js must be installed.
  • You need an empty MySQL database. OSPanel or any other local MySQL is fine.
  • Do not import SQL by hand. On the first start the server creates the tables and fills in the starting data.
  • In the project root, create a .env file from .env.example and set the database access.
  • In the resources folder, run npm install.
  • In the project root, run npm run build.
  • Start the server from the root with npm run start.
  • After code changes, run npm run build again and restart the server.
  • To run the unit tests, run npm test in the resources folder.

Download
  Reply
#2
This is the latest version of this mod. further development will not continue.

Most of the functionality from the regular pawn has been moved to this mod. The development was carried out not just for show, but with normal attention to detail. each functional was tested, different situations were taken into account, if possible, and the holes found were closed

This mod can already be used as a basis for further development. A lot has been done so that you can safely supplement and develop the mod later. at the time of testing, no serious bugs were found, but I still advise you to independently check the interaction between the players and different game situations.

if you decide to use this mod as a basis, I will immediately write down what basic functionality it does not have yet and what you are most likely used to seeing on other projects.

1. there is no full-fledged phone system. It can be purchased 24/7. After purchase, a unique number is generated and it becomes possible to send ads. This is the end of the phone's functionality.

2. there are no jobs that are familiar to us, such as taxi driver or trucker. now there is only a job as a bus driver. following her example, you can safely do the rest of the work.

3. there is no ATM system. there is only a bank.

4. There is no taser or bludgeon functionality for the police and the FBI to stun.

5. The mafias in fashion just exist for now. There are no business battles and no kidnapping functionality.

6. there is no casino system and various server events.

7. lawyers in the mayor's office also just exist for now. We need to add functionality so that they can get prisoners.

8. there are few jobs for beginners. now there is only a loader and a miner.

9. there is no /warn command for administrators and possibly some other familiar commands.

10. The skin store, car dealership, and motorcycle dealership already have all the necessary IDs listed. the finished object is already there, then you can add new elements following its example.

11. For bars and clubs, you need to add products so that players can buy them.

Well, everything seems to be from the main one.

a decent amount of time was spent on this mod. the main focus was on the code, so in some places you can see the same colors in chats and dialogues, as well as not so much mapping around the city.

I hope that something interesting and useful has turned out in terms of development. using typescript removes a lot of the pain that usually occurs when working with pawn.

I will be glad if the mod continues to develop and someone takes it as the basis for their project.

I wish you all a pleasant and successful development.
  Reply