#form help
1 messages ยท Page 1 of 1 (latest)
Any examples? I've been lost in this for hours. I'm new to programming here.
player.setDynamicProperty('whatever', true) // setting a dynamic property's value.
player.getDynamicProperty('whatever') // getting a dynamic property's value.
dynamic properties supports a boolean, string, number, and vector3 as a value.
I will try, if I can't do it, I will share some of the code and help me, I'm stuck
I removed things, I will just leave as a parameter to choose which language you prefer
I want to do If you choose the English language, it is saved and even if you exit and re-enter the world, the language of the items persists, the language changes well, only I have not managed to make it save, when I return to Upon entering the world it appears that the default settings will be selected
as they said, use dynamic property like this
player.setDynamicProperty("language", "english");
player.getDynamicProperty("language")
I want to add translations to some descriptions of how the items in my addons work, but I'm using getLore, which I think doesn't accept translate:"itemId" because I tried to add it, and the lore comes out as [Object Object] in the game
Lore returns an array
Every string represents the line in the game
This. Coddy Coddy2 Coddy3 represents [ "Coddy", //line 1 "Coddy2", //line 2 "Coddy3" //line 3 ]
and yes it doesn't accept translate but someone said it accepts %% to translate it.
No, you can't detect language users who have rn
Can I send the codes and you tell me what I'm doing wrong?
send the code.
yeah
In desc.js, I have the translations and the lore, in form, I only have the form, and in configs.js, I'm supposed to have the language selection logic for the lore, the translations are shown but as I mentioned, I don't know how to implement player.setDynamicProperties