Jump to content

Scripting Tutorial 3 - Crazy Clothes


jhxp

Recommended Posts

  • MTA Team
Posted

NOTICE: THIS TUTORIAL MAY BE OUTDATED! PLEASE READ: https://forum.multitheftauto.com/viewtopic.php?f=91&t=22270

This week we are showing you a script called "Crazy Clothes". It will teach you how to use Lua in order to pick a random piece of cloth, and automatically make the player wear it.

The tutorial can be found here.

Post your thoughts and comments about the tutorial here.

One of the [VCP] leaders // honorary member of the =PCP= gang.

 

Do not PM me your MTA:SA Client / Server support questions, Lua scripting questions, unban requests or server toplist concerns - please ask them here: MTA:SA Support subforum, here: Scripting subforum, here: Ban appeals or here: Servers instead.

For other inquiries - please expect delays in replies when messaging me.

Posted

Not to amazed by this sadly :? seems a bit pointless. Although.. having a team death match with teams randonly changing everything 30secs would be crazy! ofcource FF would be enabled.

Posted
Not to amazed by this sadly :? seems a bit pointless. Although.. having a team death match with teams randonly changing everything 30secs would be crazy! ofcource FF would be enabled.

Maybe this is a combination to show people how to change clothes and how to use a timer, it can't only do what it does in the video. That's why you can script ^^

Learn Lua - Learn to script - GUI scripting

Scripter tools - Find/fix errors yourself(!)

Don't pm me for scripting help, keep it for the Scripting subforum!

Posted
What seems pointless to you may be useful to others :wink: . I was thinking of a CTF map where players can get the "gang colors" of the other team by killing a player on the other team. Or a remake of VC's Copland mission where criminals get police uniforms :lol: .

cool idea 8)

Posted
Not to amazed by this sadly :? seems a bit pointless. Although.. having a team death match with teams randonly changing everything 30secs would be crazy! ofcource FF would be enabled.

Spose it can be done with clothing, too, so its interesting for the RPG servers out here.

Officially MTA's worst fanboy

default.pngdefault.png

default.pngdefault.pngdefault.png

Posted
Not to amazed by this sadly :? seems a bit pointless. Although.. having a team death match with teams randonly changing everything 30secs would be crazy! ofcource FF would be enabled.

i don't really think the idea of these tutorials is to amaze you, i think its more to show you what can be done with the scripts and some of the functions and events you can use so people that want to make scripts will have a good idea of how to do it at the point of release

Kevuwk

Any comments made are purely my own and do not represent the interests of the MTA Team

Posted
Is it possible to change player's skin (for example to soldier) and then put some clothes on him?

by the ooks of it, yes I suppose

:d::i::s::g::r::a::c::e:

norby89.png

Posted
Is it possible to change player's skin (for example to soldier) and then put some clothes on him?

GTA doesn't support clothes on any other skin than CJ, so no.

Do not PM me, im not going to read it anyway.

Posted (edited)
GTA doesn't support clothes on any other skin than CJ, so no.

hmm so you are saying that all 4 guys in the vid are CJ? it's a bit dark, you can't really see their faces

Edited by Guest

:d::i::s::g::r::a::c::e:

norby89.png

Posted
GTA doesn't support clothes on any other skin than CJ, so no.

hmm so you are saying that all 4 guys in th vid are CJ? it's a bit dark, you can't really see their faces

yes, all of them are CJs

Do not PM me, im not going to read it anyway.

Posted
GTA doesn't support clothes on any other skin than CJ, so no.

hmm so you are saying that all 4 guys in the vid are CJ? it's a bit dark, you can't really see their faces

yeah, they will be CJ

Kevuwk

Any comments made are purely my own and do not represent the interests of the MTA Team

Posted
Not to amazed by this sadly :? seems a bit pointless. Although.. having a team death match with teams randonly changing everything 30secs would be crazy! ofcource FF would be enabled.

In response:

What seems pointless to you may be useful to others :wink: .

i don't really think the idea of these tutorials is to amaze you, i think its more to show you what can be done with the scripts and some of the functions and events you can use so people that want to make scripts will have a good idea of how to do it at the point of release

why do i need to type things when the community can say it for me

Posted

What would hapen to these forums if all the comunity would think this way?

That's what forums are all about. Don't make a mistake, or you'll get 50 posts telling you you did!

Tell me your nightmares and maybe I'll tell you mine.

Hello, you're on K-DST.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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