26.08.2015, 15:21
You're trying to attach the object 'objectid', which isn't part of the OnPlayerEnterVehicle public call, you'd do something like:
new Object = CreateObject(bla bla bla)
And then under OnPlayerEnterVehicle
AttachObjectToVehicle(Object, vehicleid, bla bla bla)
Of course, just a basis, it's going to vary depending on what you're doing, I don't get what you're doing. You're just calling an objectid variable that's part of the syntax of the function, nothing more.
(I believe that's what's wrong, at least. Someone with more experience can always correct me, if I have gotten a detail wrong above, though.)
new Object = CreateObject(bla bla bla)
And then under OnPlayerEnterVehicle
AttachObjectToVehicle(Object, vehicleid, bla bla bla)
Of course, just a basis, it's going to vary depending on what you're doing, I don't get what you're doing. You're just calling an objectid variable that's part of the syntax of the function, nothing more.
(I believe that's what's wrong, at least. Someone with more experience can always correct me, if I have gotten a detail wrong above, though.)