What can I do with the truck near the SS Anne?
The truck does nothing.
In the remakes (Fire Red and Leaf Green) you can find a Lava cookie below the truck, but in the original games, the truck is useless.
It could be leftover from a purpose that it was going to have but was removed, or it could have just been placed there to confuse players.
Source