Thank you!
It works now, also i had to remove the "LIMIT 1" otherwise it will give me a syntax error, strange usually "LIMIT" is usefull and works , even then it updates corectly.
Thank you again ?.
The database should to be considered the truth of what the balance actually is, not your elementdata.
See here how to update the balance:
dbExec(conexiune,"UPDATE afacere SET balance = balance + ? WHERE NR=? LIMIT 1", payout, ID)
You need a second 'SELECT' query for updating the elementdata.
Para fazer giroflex funcional que acende de verdade (diferente dos que criam coronas coloridos tipo /alerta) é necessário que você use shaders.
Esse shader basicamente serve para substituir a textura da luz apagada por uma textura de luz acesa. Mas é necessário adaptar o veículo para que isso funcione.
Aqui tem um tutorial sobre como adaptar o veículo para criar luzes customizadas.