Hey,
ich möchte per PHP ein Icon mit inGame Koordinaten auf die GTA Map platzieren, dazu habe ich eine 1700x1700 grosse Map.
per REQUEST (GET) möchte ich die Koordinaten einlesen, und ein Icon an der Stelle auf der Map platzieren, mein Code tut dies leider aber nicht.
Ich habe keine Ahnung, wie das funktioniert, so jedennfalls nicht:
PHP
<?php
header("Content-Type: image/jpeg");
$x = $_REQUEST['x'];
$y = $_REQUEST['y'];
$image = ImageCreateFromJPEG("map.jpg"); // 1700x1700px
$copy = ImageCreateFromPNG("car.png"); // 45x45px
ImageCopy($image, $copy, $x, $y, 0, 0, imagesx($copy), imagesy($copy));
imagejpeg($image);
?>
Google konnte mir auch nicht weiterhelfen, hoffe ihr könnt es
Lg
Lars