Just on a readability note, you should make constants like this.mapimage and this.scale actually constants:
PHP Code:
//#CLIENTSIDE
const MAP_IMAGE = "delt_deltlite-mapimg.png";
const SCALE = 8;
const MAP_DIM = {11, 7};
const MARKER = "plisticononline.png";
function onCreated() {
SetPref();
DrawMap();
onTimeout();
}
// ...
It makes it easier for whoever is reading your script to understand that you're just working with magic numbers that never change throughout the script.
You should probably also set profile.modal = false; on the mini map control (MapContainer) so it can't accidentally steal focus from the client.
And a 0.05 second timeout is almost certainly not necessary. Ideally you'd only calculate the position a couple times per second or less, and only when the player has moved.