Ihr könnt jetzt individuelle Dev Arbeiten für euren FiveM Server über die Mail dev@achimsommer.com anfragen.
-
Wenn man am Handy in seine Nachrichten geht stürzt das Handy ab.
Das kommt dann immer in der Konsole:
[ script:mysql-async] SCRIPT ERROR in reference call: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
[ script:mysql-async] Parameter name: index
-
Ah Vielen Dank, das war das Probmem!
-
- Moin,
Es geht um den Beitrag hier ""https://forum.achimsommer.com/thread/117-addon-cars-werden-als-null-angezeigt-dann-schau-hier-rein/".
Ich hab das selbe Problem das alle Autos von der Polizei im shot "NULL" heißen und ich hab auch alles gemacht was in deinem Beitrag stand aber es hat nichts geholen.
Hier mal mein Stand, vielleicht habe ich ja hier schon ein Fehler.
Code: vehicle_names
function AddTextEntry(key, value)
Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"), key, value)
end
Citizen.CreateThread(function()
-- AddTextEntry("model", "Name") --> Copy this and Paste it in the next line. Wihtout an ,
AddTextEntry("polgt500", "Ford Mustang GT 500")
AddTextEntry("g63amg6x6cop", "Mercedes G63 AMG 6x6")
AddTextEntry("polchiron", "Bugatti Chiron")
AddTextEntry("polaventa", "Lamborgini Aventador")
AddTextEntry("pol718", "PORSCHE CAYMAN S JUNGS!!!")
AddTextEntry("11ford", "Ford")
-- Replace "model" with the spawnname of the Vehicle
-- Replace "Name" with the Name of the Vehicle
-- Example: AddTextEntry("rs7", "Audi RS7")
-- Ambulance
-- Police
-- Aston Martin
-- Audi
-- Bentley
-- BMW
-- Bugatti
-- Camaro
-- Corvette
-- Ferrari
-- Ford
-- Königsegg
-- Lamborghini
-- Lowrider
-- McLaren
-- Mercedes
-- Motoräder
-- Nissan
-- Porsche
-- Rolls Royce
-- Tesla
end)
Alles anzeigen
Alles anzeigen
Ich hab schon versucht nach
Code
AddTextEntry("polgt500", "Ford Mustang GT 500")
immer ein Komma zu setzen bis auf das Letzte, das hat aber auch nicht Funktioniert.
__resource.lua wie immer und in der server.cfg stehts auch drinne.
MFG Marco