Hallo Scripter auf dieser Forum.
Ich habe eine Frage an euch..
Da ich schritt für schritt lerne wie man Scriptet und was manche sachen sind etc, möchte ich gerne wissen wie man eine Fraktion einfügt
Ich habe eine Fraktion die einwanfrei funktioniert in San Fierro deshalb will ich sie einfügen...
Die Fraktion ID soll "10" sein ...
Und ich habe mal rum geschaut .. und in fraktionen/allround.lua habe ich herausgefunden dass man sachen einfügen muss für diese Fraktion :
Das ist mein Allround.. Ich habe alles mit Fraktions ID 10 gemacht... Ist das richtig so?
Was muss ich alles sonst machen?
Spoiler anzeigen
Lua
factionVehicles = {}
factionVehicles[1] = {}
factionVehicles[2] = {}
factionVehicles[3] = {}
factionVehicles[4] = {}
factionVehicles[5] = {}
factionVehicles[6] = {}
factionVehicles[7] = {}
factionVehicles[8] = {}
factionVehicles[9] = {}
factionVehicles[10] = {}
factionSkins = {}
factionSkins[1] = { [1]=280, [2]=281, [3]=282, [4]=283, [5]=284, [6]=285, [7]=288, [8]=265, [9]=266, [10]=267 }
factionSkins[2] = { [1]=111, [2]=112, [3]=113, [4]=124, [5]=125, [6]=126, [7]=127, [8]=237, [9]=211, [10]=272 }
factionSkins[3] = { [1]=49, [2]=117, [3]=118, [4]=120, [5]=122, [6]=123, [7]=141, [8]=169, [9]=186, [10]=294 }
factionSkins[4] = { [1]=221, [2]=222, [3]=220, [4]=143, [5]=142, [6]=307 }
factionSkins[5] = { [1]=59, [2]=141, [3]=187, [4]=188, [5]=189, [6]=296 }
factionSkins[6] = { [1]=285, [2]=286, [3]=165, [4]=164, [5]=163, [6]=295 }factionSkins[7] = { [1]=173, [2]=174, [3]=175, [4]=115, [5]=114, [6]=116, [7]=293 }
factionSkins[8] = { [1]=287, [2]=312, [3]=191 }
factionSkins[9] = { [1]=100, [2]=247, [3]=248, [4]=298 }
factionSkins[10] = { [1]=274, [2]=275, [3]=276, [5]=71, [6]=70 }
fraktionNames = {}
fraktionNames = { [1]="SFPD", [2]="Mafia", [3]="Triaden", [4]="Terroristen", [5]="Reporter", [6]="FBI", [7]="Aztecas", [8]="Army", [9]="Angels of Death", [10]="Medic" }
---------------------------------------------------------------------------------------------------------------
function isPDCar ( car ) if factionVehicles[1]
[car] then return true else return false endend
function isMafiaCar ( car )
if factionVehicles[2]
[car] then return true else return false endend
function isTriadenCar ( car )
if factionVehicles[3]
[car] then return true else return false endend
function isTerrorCar ( car )
if factionVehicles[4]
[car] then return true else return false endend
function isNewsCar ( car )
if factionVehicles[5]
[car] then return true else return false endend
function isFBICar ( car )
if factionVehicles[6]
[car] then return true else return false endend
function isAztecasCar ( car )
if factionVehicles[7]
[car] then return true else return false endend
function isArmyCar ( car )
if factionVehicles[8]
[car] then return true else return false endend
function isBikerCar ( car )
if factionVehicles[9]
[car] then return true else return false endend
function isMedicCar ( car )
if factionVehicles[10]
[car] then return true else return false endend
Alles anzeigen
Ich wäre euch sehr sehr dankbar für hilfreiche antworten..
Ich sage schonmal im vorraus danke für eure hilfreiche antworten!
Mfg