Free releases: Releases that are released for free must contain a download other than Tebex (such as a direct download or GitHub). You may include a Tebex link but it must not be the only download.
I’m currently using the Realistic Vehicle Keys System from this script. However, I’m facing an issue where I cannot seem to get the keys for the vehicles.
I’ve followed the instructions and integrated the script into my server, but every time I try to generate the keys, I receive an error stating that the vehicle plate is null or empty. Here’s a snippet of my configuration and function setup:
Config.VehKey = {
givekey = function(vehicle)
local plate = GetVehicleNumberPlateText(vehicle)
if plate then
print("Transmission de la plaque à generateVehicleKeys: " .. plate)
TriggerServerEvent('F_RealCarKeysSystem:generateVehicleKeys', plate)
else
print("Erreur: La plaque est nulle ou vide.")
end
end,
removekey = function(plate)
if plate then
print("Transmission de la plaque à removeVehicleKeysByPlate: " .. plate)
TriggerServerEvent('F_RealCarKeysSystem:removeVehicleKeysByPlate', plate)
else
print("Erreur: La plaque est nulle ou vide.")
end
end
}
Despite ensuring the vehicle entity exists and waiting for initialization, I still encounter this issue. Can you provide any insights or suggestions on what might be causing this problem and how to resolve it?