Then ask don’t demand. Pretty simple. Most ppl demanding know nothing of Lua, and won’t take the time to learn. Help yourself first, then others will be more willing to help. How is he supposed to explain, if one doesn’t comprehend? He’ll give the answer and still ppl will ask for help.
Sure, I see your point. But coming out like he did, stamping people as lazy, perhabs stupid for not trying to, is just plain out a mentally braindead thing to do.
How I read what he said, if you know Lua you can fix this. If you don’t know Lua and are demanding, you don’t want to learn. And therefore I’d say rather lazy too. You get what you give, @hoegarden31 has given this community a lot with just one release. What have you given back to the community?
It’s different how you read it, and that is why, some people might understand it as a negative thing. - But no > Demanding does not equal not wanting to learn, that is exactly where you go wrong in town.
Scripts-wise, I’ve given nothing because I not nothing about LUA. Else, I’ll just given them what is working + helping people do some other stuff.
Oh, I see so basically people who have busy lives and don’t have the time to learn this type of stuff are lazy now huh? Also, we helped the community by helping the coders test out this scripts because without them the scripts wouldnt be possible.
I have no problem at all with posting changes. But saying that it doesn’t work shows for me some lack of understanding what is wrong.
The carshop was not working on my server… I changed :
AddEventHandler("es:playerLoaded", function(source, target)
local executed_query = MySQL:executeQuery("SELECT * FROM vehicles WHERE owner = '@name'", {['@name'] = target.identifier})
local result = MySQL:getResults(executed_query, {'owner', 'model', 'colour', 'scolour', 'plate', 'wheels', 'windows', 'platetype', 'exhausts', 'grills', 'spoiler'}, "identifier")
vehicle_data[source] = result
local send = {}
for k,v in ipairs(vehicle_data[source])do
send[v.model] = true
end
TriggerClientEvent("es_carshop:sendOwnedVehicles", source, send)
end)
into
AddEventHandler('es:playerLoaded', function(source)
TriggerEvent("es:getPlayerFromId", source, function(user)
local executed_query = MySQL:executeQuery("SELECT * FROM vehicles WHERE owner = '@name'", {['@name'] = user.identifier})
local result = MySQL:getResults(executed_query, {'owner', 'model', 'colour', 'scolour', 'plate', 'wheels', 'windows', 'platetype', 'exhausts', 'grills', 'spoiler'}, "identifier")
vehicle_data[source] = result
local send = {}
for k,v in ipairs(vehicle_data[source])do
send[v.model] = true
end
TriggerClientEvent("es_carshop:sendOwnedVehicles", source, send)
end)
end)
and now my cars are saved without problem.
So give some details to me and I can fix them for you if you want.
Glad you help others where and when you can. Here’s where our opinions differ. One usually demands because they can’t do it themselves. I knew nothing of Lua months ago, I sat down and played with codes for hrs everyday for months. I’m still not nowhere near his level, but without that first step one will never even try. I used to look at Lua and wish I was Neo so I could read it. But now I can, and it’s due to the time I invested not others giving me answers.
wait the car shop wasn’t working for you? that’s strange it worked me, what doesn’t work for me the is weaponshop.
I see your point.
And thank you for releasing some of the changes you did. - How would one go about the /Checkplate not showing any messages at all, when trying to do /checkplate - No error in the Rcon-console either. > Code all stuck from the dump.
Is it because it’s missing something to recognize the command or?
It worked once… then I bought a truck and boom for some reason the game failed to retrieve target.identifier…
What is your problem with the weaponshop ?
the weaponshop and the drug dealer isnt appearing on map and I added my database information in it as well
Yeah it is not working here either.
I found a problem around this line : TriggerEvent(“es_roleplay:getPlayerJob”, function(job)
When I found the problem I let you know.
drug dealer is normal. I changed all the blips in this mod. I didn’t like the way they where set.
cl_weapon.lua (16.2 KB)
This is my weapon scripts.
Maybe I should make a server dump too xD
Can you explain what was wrong with the carshop that was throwing that error? I tried fixing it myself but couldn’t get it to work. Tried your fix and got different errors i’m now trying to fix
yes do it please lol
0 error on my server, but loading screen in game blocked on “Initializing Session”, i see 0 error.
Well @hoegarden31, it seems that you are pretty strong in LUA ^^ , so, can you explain me how to had more weapons in this weapon shop please ? Because I already tried to change sv_stores.lua and cl_weapon.lua : the weapons appears in the menu, but when I buy them, they are not put into my weapons inventory. Any ideas ? (PS : Sorry for bad english : /, I’m a bad baguette)
I got a bunch of errors like this and the car was not saved in the database. After I changed the EventHandler in the same way has it is done in es_freeroam No more problems.
If you were able to fix the bugs, would you like to post the scripts without bugs?
It could help quite a lot with the advancement of servers
Sure thing. Here you can download my essential folder I use.
“link removed”
And this is the database that I use :
“link removed”
(Don’t worry if you see fields that you don’t know. It’s just some stuff i’m working on. They don’t break the server.
Tomorrow I will set this server online. So if you still doubt, you can play it 