Jump to content

All about peds


Peti

Recommended Posts

Posted

Hi, I'm here with more questions.

1. What's the difference between creating peds on server and client?

2. If I want to make a ped that shoot people, I must do it on client or server?

3. Where do you usually create your peds (client or server)? Why?

Scripts

1. Mission: Pizza delivery [OPEN SOURCE]

  • Moderators
Posted

@Peti

1. + 3.

To answer this, you need to understand the difference between client and serverside:

1200px-Client-server-model.svg.png

 

  • The server is a computer. Which RUNS serverside.
  • The Clients are multiple computer connected to the server. Which RUNS clientside.
  • The internet and the network is in between. (ping is the delay which separates those two types of computers)
  • In case of a local-server the ping 0, but both sides are still separated.

 

And that will give the result as

@Patrick2562 said.

 

 

 

2.

You make peds created by clientside/serverside shoot at clientside. The reason why it can't be done serverside is because MTA doesn't support it yet.

 

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...