swkeep / keep-companion

Qbcore pet system
GNU General Public License v3.0
137 stars 57 forks source link

important steps for K9 error #38

Closed AndreasFromDanmark closed 2 years ago

AndreasFromDanmark commented 2 years ago

Skærmbillede 2022-09-14 001029 Skærmbillede 2022-09-14 001011

error is coming after i added

exports('getTruck', function(id) return Trunks[id] )

exports('getGloveboxes', function(id) return Gloveboxes[id] )

swkeep commented 2 years ago

Hey, are you using the latest qbcore version? this might be because of that.

AndreasFromDanmark commented 2 years ago

@swkeep Yes its one of the most recent version

swkeep commented 2 years ago

@AndreasFromDanmark so I tested it with the new qbcore script works fine it's a miss type on your end.

exports('getTruck', function(id)
return Trunks[id]
)

exports('getGloveboxes', function(id)
return Gloveboxes[id]
)

This is wrong you're just missing end before ) at end of functions.

exports('getTruck', function(id)
    return Trunks[id]
end)

exports('getGloveboxes', function(id)
    return Gloveboxes[id]
end)
AndreasFromDanmark commented 2 years ago

@swkeep Thanks :) it worked